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

# Get API Keys

> Retrieves all API keys for the authenticated user



## OpenAPI

````yaml GET /api-keys
openapi: 3.0.0
info:
  title: DeFindex API
  description: API documentation for DeFindex endpoints
  version: 1.0.0
  contact: {}
  x-logo:
    url: https://links.paltalabs.io/defindex-full.svg
    backgroundColor: '#0e0e0e'
    altText: DeFindex Logo
    href: https://defindex.io
servers: []
security: []
tags: []
paths:
  /api-keys:
    get:
      tags:
        - API Keys
      summary: Get API Keys
      description: Retrieves all API keys for the authenticated user
      operationId: ApiKeysController_getUserApiKeys
      parameters: []
      responses:
        '200':
          description: API keys retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: number
                      description: Unique identifier for the API key
                    name:
                      type: string
                      description: Name of the API key
                    key:
                      type: string
                      description: The API key value
                    createdAt:
                      type: string
                      description: Creation timestamp
                    lastUsedAt:
                      type: string
                      nullable: true
                      description: Last usage timestamp
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

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