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

# List API keys

> List all API keys for the authenticated user. Returns key metadata including name, token prefix, creation date, and active status. The `last_used` field is the most recent usage timestamp, or null if usage data is not available. Full tokens are never returned - only the first 8 characters where the first 4 are "key_".




## OpenAPI

````yaml https://app.herondata.io/swagger get /api/credentials/keys
openapi: 3.0.0
info:
  contact:
    email: support@herondata.io
    name: Support
  title: Heron Data API
  version: '2021-07-19'
servers:
  - description: Production
    url: https://app.herondata.io
security:
  - ApiKeyAuth:
      - key_XXX
externalDocs:
  description: Read Tutorial
  url: https://docs.herondata.io/
paths:
  /api/credentials/keys:
    get:
      tags:
        - Credentials
      summary: List API keys
      description: >
        List all API keys for the authenticated user. Returns key metadata
        including name, token prefix, creation date, and active status. The
        `last_used` field is the most recent usage timestamp, or null if usage
        data is not available. Full tokens are never returned - only the first 8
        characters where the first 4 are "key_".
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  keys:
                    items:
                      $ref: '#/components/schemas/ApiKeyWithLastUsedSchema'
                    type: array
                type: object
          description: List of API keys
components:
  schemas:
    ApiKeyWithLastUsedSchema:
      properties:
        created:
          format: date-time
          readOnly: true
          type: string
        heron_id:
          readOnly: true
          type: string
        is_active:
          readOnly: true
          type: boolean
        last_used:
          format: date-time
          nullable: true
          readOnly: true
          type: string
        name:
          readOnly: true
          type: string
        token_prefix:
          readOnly: true
          type: string
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: x-api-key
      type: apiKey

````