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

# Get My Api Key

> Return the caller's API key details for the active organization.

Only the prefix and timestamps — the key itself is unrecoverable once
generated. Returns ``null`` when no key has been created yet.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json get /users/me/api-key
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /users/me/api-key:
    get:
      tags:
        - users
      summary: Get My Api Key
      description: |-
        Return the caller's API key details for the active organization.

        Only the prefix and timestamps — the key itself is unrecoverable once
        generated. Returns ``null`` when no key has been created yet.
      operationId: get_my_api_key_users_me_api_key_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ApiKeyInfo'
                  - type: 'null'
                title: Response Get My Api Key Users Me Api Key Get
components:
  schemas:
    ApiKeyInfo:
      properties:
        key_prefix:
          anyOf:
            - type: string
            - type: 'null'
          title: Key Prefix
        created_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Created At
      type: object
      title: ApiKeyInfo
      description: >-
        Non-secret description of a user's API key for one organization.


        Deliberately carries no ``key_hash``: the full key is returned exactly
        once,

        when it is generated, and only its prefix is retrievable afterwards.


        No expiry field: ``api_keys`` has no ``expires_at`` column in any
        deployed

        environment (verified against staging and production), and nothing in
        the

        auth path enforces one — ``_auth_from_api_key`` matches on ``key_hash``

        alone. Surfacing an expiry would promise a guarantee that does not
        exist.

````