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

# List platform API keys

> Lists the caller's own API keys, newest first, revoked ones included, each with the organization it is pinned to; the raw key is never shown again.

Use this tool when you need to:
- Show the caller's API keys and when each was last used
- Find the id of a key to revoke, by its name or prefix

Examples:
- GET /user/platform-keys

Hints:
- Takes no parameters and is not paged: items holds every key with its id, org_id, org_name, name, prefix (the raw key's first 12 characters), created_at, last_used_at (refreshed at most once a minute) and revoked_at, null while it is live.
- A key is deleted with the caller's membership in its organization, so one pinned to an organization they left is not listed.
- Use createPlatformKey instead to mint one and revokePlatformKey instead to revoke one.
- Any authenticated caller may list their own: a session always passes, and an API key is checked in its pinned organization, where a viewer or billing role is refused with 403 org_role_insufficient.



## OpenAPI

````yaml api-reference/openapi.json GET /user/platform-keys
openapi: 3.1.0
info:
  title: Aether API
  version: 0.1.0
servers:
  - url: https://api.runaether.dev
security:
  - bearerAuth: []
paths:
  /user/platform-keys:
    get:
      tags:
        - platform-keys
      summary: List platform API keys
      description: >-
        Lists the caller's own API keys, newest first, revoked ones included,
        each with the organization it is pinned to; the raw key is never shown
        again.


        Use this tool when you need to:

        - Show the caller's API keys and when each was last used

        - Find the id of a key to revoke, by its name or prefix


        Examples:

        - GET /user/platform-keys


        Hints:

        - Takes no parameters and is not paged: items holds every key with its
        id, org_id, org_name, name, prefix (the raw key's first 12 characters),
        created_at, last_used_at (refreshed at most once a minute) and
        revoked_at, null while it is live.

        - A key is deleted with the caller's membership in its organization, so
        one pinned to an organization they left is not listed.

        - Use createPlatformKey instead to mint one and revokePlatformKey
        instead to revoke one.

        - Any authenticated caller may list their own: a session always passes,
        and an API key is checked in its pinned organization, where a viewer or
        billing role is refused with 403 org_role_insufficient.
      operationId: listPlatformKeys
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ListPlatformKey'
          description: OK
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlatformKeysErrorResponse'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrgAuthorizationErrorResponse'
          description: Forbidden
        '410':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlatformKeysErrorResponse'
          description: Gone
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlatformKeysErrorResponse'
          description: Internal Server Error
components:
  schemas:
    ListPlatformKey:
      additionalProperties: false
      properties:
        items:
          items:
            $ref: '#/components/schemas/PlatformKey'
          type: array
      required:
        - items
      type: object
    PlatformKeysErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - bad_gateway
            - bad_request
            - cli_upgrade_required
            - client_outdated
            - conflict
            - forbidden
            - gateway_timeout
            - gone
            - internal_error
            - method_not_allowed
            - not_acceptable
            - not_found
            - not_implemented
            - payment_required
            - precondition_failed
            - rate_limited
            - request_canceled
            - request_timeout
            - request_too_large
            - service_unavailable
            - session_auth_required
            - unauthenticated
            - unsupported_media_type
            - validation_failed
          minLength: 1
          type: string
        error:
          minLength: 1
          type: string
        errors:
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type: array
      required:
        - error
        - code
      type: object
    OrgAuthorizationErrorResponse:
      additionalProperties: false
      properties:
        code:
          enum:
            - org_membership_required
            - org_role_insufficient
            - org_suspended
            - account_deleting
            - agent_host_route_not_allowed
            - credential_kind_not_admitted
            - grant_scope_insufficient
          type: string
        error:
          minLength: 1
          type: string
      required:
        - error
        - code
      type: object
    PlatformKey:
      additionalProperties: false
      properties:
        created_at:
          format: date-time
          type: string
        id:
          format: uuid
          type: string
        key:
          minLength: 1
          type: string
        last_used_at:
          format: date-time
          type:
            - string
            - 'null'
        name:
          minLength: 1
          type: string
        org_id:
          format: uuid
          type: string
        org_name:
          minLength: 1
          type: string
        prefix:
          minLength: 1
          type: string
        revoked_at:
          format: date-time
          type:
            - string
            - 'null'
        user_id:
          format: uuid
          type: string
      required:
        - id
        - user_id
        - org_id
        - org_name
        - name
        - prefix
        - created_at
        - last_used_at
        - revoked_at
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.