---
title: "Get Api Key"
method: GET
path: "/api/v1/api-keys/{id}"
tags: ["API Keys"]
---

# Get Api Key

`GET /api/v1/api-keys/{id}`

## Path parameters

- `id` string, required

## Response `200`

Successful response

- object
  - `apiKey` union, required
    - object
      - `id` string, required
      - `createdAt` integer, required — Epoch milliseconds.
      - `updatedAt` integer, required — Epoch milliseconds.
      - `livemode` boolean, required
      - `organizationId` string, required
      - `name` string, required
      - `token` string, required
      - `active` boolean, required
      - `type` 'secret', required
      - `expiresAt` integer, nullable — Epoch milliseconds.
      - `stackAuthHostedBillingUserId` string, nullable, required
      - `hashText` string, nullable, required
    - object
      - `id` string, required
      - `createdAt` integer, required — Epoch milliseconds.
      - `updatedAt` integer, required — Epoch milliseconds.
      - `livemode` boolean, required
      - `organizationId` string, required
      - `name` string, required
      - `token` string, required
      - `active` boolean, required
      - `type` 'publishable', required
      - `expiresAt` integer, nullable — Epoch milliseconds.
      - `stackAuthHostedBillingUserId` string, nullable, required
      - `hashText` string, nullable, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `404` — Not found
- `500` — Internal server error

## Changes

- **2025-12-08** `d53efdb1a902` — 1 info
  - removed `#/components/schemas/HostedBillingPortalApiKeyClientSelectSchema` from the `apiKey` response property `oneOf` list for the response status `200`
- **2025-10-18** `a1eeb4fac4d6` — 2 breaking, 6 info
  - added `#/components/schemas/SecretApiKeyClientSelectSchema, #/components/schemas/HostedBillingPortalApiKeyClientSelectSchema, subschema #2` to the `apiKey` response property `oneOf` list for the response status `200`
  - the `apiKey` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - …4 more
- **2025-04-28** `00982324965d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/flowglad/apis/flowglad-api/changes/api/v1/api-keys/:id/get.md)

---

[API](https://skmtc.dev/flowglad/apis/flowglad-api.md) · [All operations](https://skmtc.dev/flowglad/apis/flowglad-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flowglad/flowglad-api/revisions/06c4dd78e137/schema)
