> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tazolabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List API keys

> Lists the signed-in account's keys, newest first. Expired and revoked keys stay for about 30 days. Secrets are never returned.



## OpenAPI

````yaml /api-reference/openapi.yaml get /v1/api-keys
openapi: 3.1.0
info:
  title: Tazo API
  version: 0.1.0
  description: >-
    Turn spoken audio into typed decisions. Send audio and questions, and get
    probability-backed answers.
servers:
  - url: https://api.tazolabs.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Decisions
  - name: Models
  - name: API keys
  - name: Health
paths:
  /v1/api-keys:
    get:
      tags:
        - API keys
      summary: List API keys
      description: >-
        Lists the signed-in account's keys, newest first. Expired and revoked
        keys stay for about 30 days. Secrets are never returned.
      operationId: listApiKeys
      responses:
        '200':
          description: The account's keys.
          headers:
            Cache-Control:
              $ref: '#/components/headers/NoStore'
          content:
            application/json:
              schema:
                type: object
                required:
                  - keys
                properties:
                  keys:
                    type: array
                    items:
                      $ref: '#/components/schemas/ApiKey'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/RequiresLogin'
        '503':
          $ref: '#/components/responses/KeysUnavailable'
      security:
        - accessToken: []
components:
  headers:
    NoStore:
      description: Always `no-store`.
      schema:
        type: string
        enum:
          - no-store
  schemas:
    ApiKey:
      type: object
      required:
        - id
        - name
        - last4
        - createdAt
        - expiresAt
        - revokedAt
        - lastUsedAt
      properties:
        id:
          type: string
          description: Key ID, used to revoke the key.
        name:
          type: string
        last4:
          type: string
          description: Last four characters of the secret.
        createdAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
          nullable: true
        revokedAt:
          type: string
          format: date-time
          nullable: true
        lastUsedAt:
          type: string
          format: date-time
          nullable: true
          description: Best effort. Updated at most once a minute.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - retryable
          properties:
            code:
              type: string
              description: Stable machine-readable code. Branch on this, not `message`.
              example: model_not_found
            message:
              type: string
              example: Unknown model. Choose 'tazo-large' or 'tazo-small'.
            retryable:
              type: boolean
              description: Whether repeating the same request can succeed.
        request_id:
          type: string
          description: Present on `decision_pending` responses.
  responses:
    Unauthorized:
      description: >-
        The credential is missing (`missing_access_token`) or invalid
        (`invalid_access_token`, `invalid_api_key`).
      headers:
        WWW-Authenticate:
          schema:
            type: string
            enum:
              - Bearer
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RequiresLogin:
      description: >-
        An API key was used to manage keys
        (`api_key_management_requires_login`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    KeysUnavailable:
      description: >-
        API keys are not configured (`api_keys_not_configured`), sign-in is not
        configured (`authentication_not_configured`), or key storage is
        unavailable (`api_key_service_unavailable`).
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An API key (`tazo_sk_...`). Also accepts a sign-in access token.
    accessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: A signed-in user's OIDC access token. Required to manage API keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.