API Keys
Create a new API key
Generates a new workspace-scoped API key. The full key_value is returned only in this response — Audioscrape stores a SHA-256 hash and the prefix only, so save the raw key immediately on the client side. If you lose it, rotate the key.
Accepts either a session cookie or an existing API key as auth.
post/api/keys
Request
- Base URL: https://www.audioscrape.com
- URL: https://www.audioscrape.com/api/keys
- Auth: HTTP bearer
Request body
Example request
{
"expires_at": "2027-01-01T00:00:00Z",
"key_name": "acme-dev-connector-v1",
"workspace_id": 42
}Response
Key created. key_value is shown in full here for the only time.
Example response
{
"created_at": "2026-05-16T08:30:00Z",
"key_name": "acme-dev-connector-v1",
"key_prefix": "sk_abc123def...",
"key_value": "sk_abc123base64encodedrandombytes...",
"last_used": "2026-05-16T08:30:00Z",
"last_used_ip": "203.0.113.7",
"workspace_id": 42
}Changes
No recorded changes to this operation across all 1 revision of this API.