For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordPlatform
DocumentationIntegrationsAPI referenceSDKsChangelog
DocumentationIntegrationsAPI referenceSDKsChangelog
  • API Reference
      • POSTCreate an API key
      • GETList API keys
      • GETRetrieve an API key
      • PATCHUpdate an API key
      • DELDelete an API key
  • Reference
    • Filters API Reference
LogoLogo
DiscordPlatform
API ReferenceTemporary API Keys

Retrieve an API key

GET
https://api.respan.ai/api/temporary-keys/:id/
GET
/api/temporary-keys/:id/
$curl https://api.respan.ai/api/temporary-keys/id/ \
> -H "Authorization: Bearer sk_live_4f3b2a1c9d8e7f6a5b4c3d2e" \
> -H "Content-Type: application/json"
1{
2 "id": "tmpkey_123e4567-e89b-12d3-a456-426614174000",
3 "name": "Temporary Read-Only Key",
4 "prefix": "tmp_abc123",
5 "is_test": false,
6 "expiry_date": "2024-12-31T23:59:59Z",
7 "max_usage": 1000,
8 "rate_limit": 60,
9 "spending_limit": 50,
10 "created_at": "2024-01-15T09:30:00Z"
11}
Retrieve an API key by ID.
Was this page helpful?
Previous

Update an API key

Next
Built with

Path parameters

idstringRequired
The ID of the temporary API key to retrieve.

Headers

AuthorizationstringRequired

Bearer token. Use Bearer YOUR_API_KEY.

Response

API key details.
idstring
API key ID.
namestring
Key name.
prefixstring
Key prefix.
is_testboolean
Test or production key.
expiry_datedatetime
Expiry date.
max_usageinteger

Max usage count. -1 = unlimited.

rate_limitinteger
Calls per minute.
spending_limitdouble
Spending limit in USD.
created_atdatetime

Errors

401
Unauthorized Error
404
Not Found Error