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

# Get API key context

> Returns the organization, project, and environment resolved from your API key. Useful for confirming which environment a key is bound to before making other calls.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/me
openapi: 3.1.0
info:
  title: Memic API
  description: >-
    Memic is a memory layer for AI applications. The Memic API lets you ingest
    documents, run semantic search and chat, and manage prompts — all scoped to
    an environment via a single API key.
  version: 1.0.0
servers:
  - url: https://api.memic.ai
    description: Production
security:
  - MemicApiKey: []
tags:
  - name: Endpoints
    description: All 10 Memic API endpoints.
paths:
  /api/v1/me:
    get:
      tags:
        - Endpoints
      summary: Get API key context
      description: >-
        Returns the organization, project, and environment resolved from your
        API key. Useful for confirming which environment a key is bound to
        before making other calls.
      operationId: getApiKeyContext
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiKeyInfoResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - MemicApiKey: []
components:
  schemas:
    ApiKeyInfoResponse:
      properties:
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        organization_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Organization Name
        project_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Project Id
        project_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Project Name
        environment_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Environment Id
        environment_slug:
          anyOf:
            - type: string
            - type: 'null'
          title: Environment Slug
      type: object
      required:
        - organization_id
      title: ApiKeyInfoResponse
      description: Response for API key info endpoint.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    MemicApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        Memic API key. Every key is bound to exactly one environment — get one
        from the Memic dashboard under API Keys.

````