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

# Get Active API Key

> Returns the currently active API key metadata for the authenticated user. Does not return the key value itself.



## OpenAPI

````yaml GET /auth/api-keys
openapi: 3.0.0
info:
  title: Limitless Exchange API
  description: >-
    Production-ready REST API for prediction market trading, portfolio
    management, and market data on Limitless Exchange (Base L2).
  version: '1.0'
  contact:
    name: API Support
    url: https://limitless.exchange
    email: help@limitless.network
servers:
  - url: https://api.limitless.exchange
    description: Production API
security: []
tags:
  - name: Authentication
    description: User authentication and session management
  - name: Markets
    description: Browse, search, and analyze prediction markets
  - name: Market Navigation
    description: Navigation tree, market pages, and property filters
  - name: Trading
    description: Create, manage, and cancel orders
  - name: Portfolio
    description: Position tracking, trade history, and performance
  - name: API Tokens
    description: Scoped API token management for partner integrations
  - name: Partner Accounts
    description: Sub-account creation and allowance recovery for partner integrations
  - name: System
    description: Public API state and availability information
paths:
  /auth/api-keys:
    get:
      tags:
        - Authentication
      summary: Get active API key
      description: >-
        Returns the currently active API key metadata for the authenticated
        user. Does not return the key value itself.
      operationId: ApiKeyController_getActiveKey
      parameters: []
      responses:
        '200':
          description: Active API key metadata, or null if no active key exists
          content:
            application/json:
              schema:
                type: object
                nullable: true
                properties:
                  keyId:
                    type: string
                    description: Unique identifier for the API key
                    example: key_abc123def456
                  createdAt:
                    type: string
                    format: date-time
                    description: When the key was created
                    example: '2025-06-15T10:30:00Z'
                  lastUsedAt:
                    type: string
                    format: date-time
                    nullable: true
                    description: When the key was last used
                    example: '2025-06-16T08:00:00Z'

````