POST /v1/projects/{projectId}/api-keys
Creates a key bound to the selected project using the supplied name, permissions and optional expiry. The secret is returned only in this response and in idempotent replays of it; store it securely because other reads never return it. The key is scoped to this project and does not grant account-level access. Supply the required Idempotency-Key header.
- TypeScript
- Python
- Rust
TypeScript
Parameters
string
required
Identifies one logical mutation across retries.
string
required
Body
string (date-time)
string
required
array of ApiKeyPermission
required
Returns
201 The created key, with its secret. The secret is returned only in this response and in idempotent replays of it, and cannot be recovered through any other operation. CreateProjectApiKeyResponse
ApiKey
required
string
required