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

# Get API key

> Admin-only endpoint to retrieve the API key



## OpenAPI

````yaml https://raw.githubusercontent.com/InsForge/InsForge/main/openapi/metadata.yaml get /api/metadata/api-key
openapi: 3.0.3
info:
  title: Insforge Metadata API
  version: 1.0.0
servers: []
security: []
paths:
  /api/metadata/api-key:
    get:
      tags:
        - Admin
      summary: Get API key
      description: Admin-only endpoint to retrieve the API key
      responses:
        '200':
          description: API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  apiKey:
                    type: string
              example:
                apiKey: ins_1234567890abcdef1234567890abcdef
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error: INSUFFICIENT_PERMISSIONS
                message: Only admin users can access API keys
                statusCode: 403
                nextAction: Contact an administrator for API key access
      security:
        - bearerAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      required:
        - error
        - message
        - statusCode
      properties:
        error:
          type: string
          description: Error code for programmatic handling
        message:
          type: string
          description: Human-readable error message
        statusCode:
          type: integer
          description: HTTP status code
        nextAction:
          type: string
          description: Suggested action to resolve the error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````