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

# GET /admin/api/api-keys/{id}



## OpenAPI

````yaml /generated/openapi.json get /admin/api/api-keys/{id}
openapi: 3.1.0
info:
  description: >-
    Forwarding, management, portal and OAuth APIs generated from Rust types.
    Input and output schemas preserve their respective Serde contracts.
    Streaming events and WebSocket messages are documented alongside HTTP
    payloads.
  title: GPROXY HTTP API
  version: 4.2.1
servers: []
security:
  - bearer: []
  - anthropicKey: []
  - googleKey: []
  - queryKey: []
paths:
  /admin/api/api-keys/{id}:
    get:
      tags:
        - Management
      summary: GET /admin/api/api-keys/{id}
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
        - description: Administrative scope selected by the caller.
          in: header
          name: x-gproxy-admin-scope
          required: false
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_ApiKeyDto'
          description: Success
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Output_Envelope'
          description: Gateway error
      security:
        - consoleSession: []
        - bearer: []
        - anthropicKey: []
        - googleKey: []
components:
  schemas:
    Output_ApiKeyDto:
      properties:
        enabled:
          type: boolean
        expiresAtMs:
          format: int64
          type:
            - integer
            - 'null'
        hasSecret:
          description: |-
            Whether the instance retained a sealed copy of the key text, i.e.
            whether `reveal` can answer. The bytes themselves have no field.
          type: boolean
        id:
          type: string
        kind:
          description: >-
            `user` or `oauth`. An `oauth` key is a grant's internal key and is
            not

            a bearer credential; it is listed so an operator can see it, never

            created or revealed through this family.
          type: string
        management:
          description: Whether the key may manage; see `api_keys.management`.
          type: boolean
        name:
          type: string
        organizationId:
          type:
            - string
            - 'null'
        prefix:
          description: >-
            The first eight characters of the key body, for recognising a key in
            a

            list. Not a secret and not enough of one to be useful.
          type: string
        teamId:
          type:
            - string
            - 'null'
        userId:
          type: string
      required:
        - id
        - userId
        - name
        - prefix
        - kind
        - organizationId
        - teamId
        - expiresAtMs
        - enabled
        - management
        - hasSecret
      type: object
    Output_Envelope:
      properties:
        error:
          $ref: '#/components/schemas/Output_EnvelopeBody'
      required:
        - error
      type: object
    Output_EnvelopeBody:
      properties:
        code:
          type: string
        message:
          type: string
      required:
        - code
        - message
      type: object
  securitySchemes:
    bearer:
      scheme: bearer
      type: http
    anthropicKey:
      in: header
      name: x-api-key
      type: apiKey
    googleKey:
      in: header
      name: x-goog-api-key
      type: apiKey
    queryKey:
      in: query
      name: key
      type: apiKey
    consoleSession:
      in: cookie
      name: gproxy_session
      type: apiKey

````

## Related topics

- [GET /admin/api/api-keys/{id}/secret](https://gproxy.leenhawk.com/api-reference/management/get-adminapiapi-keys-secret.md)
- [Users and API keys](https://gproxy.leenhawk.com/guides/users-and-keys.md)
- [GET /admin/api/api-keys](https://gproxy.leenhawk.com/api-reference/management/get-adminapiapi-keys.md)
- [DELETE /admin/api/api-keys/{id}](https://gproxy.leenhawk.com/api-reference/management/delete-adminapiapi-keys.md)
- [PATCH /admin/api/api-keys/{id}](https://gproxy.leenhawk.com/api-reference/management/patch-adminapiapi-keys.md)


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