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

# Get current API key information

> Returns information about the API key being used for authentication



## OpenAPI

````yaml get /api/projects/api-key/info
openapi: 3.0.0
info:
  title: LeanMCP SDK API
  description: >-
    API endpoints for LeanMCP SDK integration. These endpoints use API key
    authentication and are designed for programmatic access from the CLI and
    SDK.
  version: 1.0.0
servers:
  - url: https://api.leanmcp.com
    description: Production
  - url: http://localhost:3001
    description: Local Development
security: []
tags:
  - name: builds-sdk
  - name: chat-messages-api-key
  - name: chats-api-key
  - name: deployments-api-key
  - name: deployments-sdk
  - name: mapping-sdk
  - name: projects-api-key
paths:
  /api/projects/api-key/info:
    get:
      tags:
        - projects-api-key
      summary: Get current API key information
      description: Returns information about the API key being used for authentication
      operationId: ProjectsApiKeyController_getApiKeyInfo
      parameters: []
      responses:
        '200':
          description: API key information retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  apiKeyId:
                    type: string
                  name:
                    type: string
                  scopes:
                    type: array
                    items:
                      type: string
                  userId:
                    type: string
                  firebaseUid:
                    type: string
                  lastUsedAt:
                    type: string
                    nullable: true
                  expiresAt:
                    type: string
                    nullable: true
                  isExpired:
                    type: boolean
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: Enter your LeanMCP API key

````