---
title: "Get a temporary API key"
method: GET
path: "/api/temporary-keys/{id}/"
tags: ["Temporary API Keys"]
---

# Get a temporary API key

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

## Request

- Base URL: `https://api.respan.ai`
- URL: `https://api.respan.ai/api/temporary-keys/{id}/`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Response `200`

API key details.

- object
  - `id` string: API key ID.
  - `name` string: Key name.
  - `prefix` string: Key prefix.
  - `is_test` boolean: Test or production key.
  - `expiry_date` string, date-time: Expiry date.
  - `max_usage` integer: Max usage count. -1 = unlimited.
  - `rate_limit` number, nullable: Requests per minute. null uses the organization default.
  - `spending_limit` number, nullable: Spending limit in USD. `null` when not set.
  - `created` string, date-time: When the API key was created.
  - `unique_organization_id` string, nullable: Owning organization UUID.

## Other responses

- `403`: The API key is missing, invalid or expired.
- `404`: Not Found

## Changes

- **2026-10-21** `c30bcb383ee8`: 5 breaking, 3 info
  - the response property `rate_limit` became nullable for the status `200`
  - the response property `spending_limit` became nullable for the status `200`
  - the response property `unique_organization_id` became nullable for the status `200`
  - the `rate_limit` response's property type changed from `number, null` to `number`, and format from `double` to no format for status `200`
  - …4 more
- **2026-10-02** `b830b79cfd52`: 1 breaking, 2 info
  - the response property `spending_limit` became nullable for the status `200`
  - added the non-success response with the status `403`
  - removed the non-success response with the status `401`
- **2026-09-17** `6fa8242da8c2`: 1 warning, 1 info
  - deleted the `header` request parameter `Authorization`
  - the endpoint scheme security `RespanApiKey` was added to the API
- **2026-09-12** `22b868ef3f22`: 1 info
  - api operation id `retrieve-api-key` removed and replaced with `temporaryApiKeys_retrieveApiKey`

[Operation history](https://skmtc.dev/respan/apis/respan-api/changes/api/temporary-keys/:id/get.md)

---

[API](https://skmtc.dev/respan/apis/respan-api.md) - [All operations](https://skmtc.dev/respan/apis/respan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/respan/apis/respan-api/revisions/900841387635?raw)
