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

# Get all API keys for the current tenant



## OpenAPI

````yaml api-reference/openapi.json get /api/api-keys
openapi: 3.0.0
info:
  title: Bigcapital
  description: Financial accounting software
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /api/api-keys:
    get:
      tags:
        - Api keys
      summary: Get all API keys for the current tenant
      operationId: AuthApiKeysController_getApiKeys
      parameters:
        - name: Authorization
          in: header
          description: >-
            Value must be 'Bearer <token>' where <token> is an API key prefixed
            with 'bc_' or a JWT token.
          required: true
          schema:
            type: string
            example: Bearer bc_1234567890abcdef
        - name: organization-id
          in: header
          description: >-
            Required if Authorization is a JWT token. The organization ID to
            operate within.
          required: true
          schema:
            type: string
      responses:
        '200':
          description: List of API keys
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ApiKeyListItemDto'
components:
  schemas:
    ApiKeyListItemDto:
      type: object
      properties:
        id:
          type: number
          example: 1
          description: API key ID
        name:
          type: string
          example: My API Key
          description: API key name
        token:
          type: string
          example: bc_1234...
          description: First 8 characters of the API key token
        createdAt:
          format: date-time
          type: string
          example: '2024-01-01T00:00:00.000Z'
          description: Creation date
        expiresAt:
          format: date-time
          type: string
          example: '2024-12-31T23:59:59.000Z'
          description: Expiration date
        revoked:
          type: boolean
          example: false
          description: Whether the key is revoked
      required:
        - id
        - name
        - token
        - createdAt
        - revoked

````