Calseta is under active development. APIs and features may change. We welcome feedback and contributions on GitHub.
cURL
curl --request POST \ --url https://api.example.com/v1/api-keys \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "scopes": [ "<string>" ], "key_type": "human", "expires_at": "2023-11-07T05:31:56Z", "allowed_sources": [ "<string>" ] } '
{ "data": { "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "key_prefix": "<string>", "key": "<string>", "scopes": [ "<string>" ], "key_type": "<string>", "is_active": true, "created_at": "2023-11-07T05:31:56Z", "expires_at": "2023-11-07T05:31:56Z", "allowed_sources": [ "<string>" ] }, "meta": {} }
Human-readable label
1 - 255
Granted scopes
1
Key type: 'human' or 'agent'
Optional expiry (UTC ISO 8601)
Restrict ingestion to these source names (null = unrestricted)
Successful Response
Returned only by POST /v1/api-keys. Contains the full plain-text key (shown once).
Show child attributes