cURL
curl --request POST \ --url https://api.example.com/api/v1/api-keys \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "scopes": [ {} ] } '
{ "id": "...", "name": "Production Backend", "key": "org_live_abc123xyz...", "scopes": ["usage.write"], "status": "ACTIVE", "created_at": "2025-01-01T00:00:00Z" }
Create a new scoped API key.
usage.write
usage.read
key
Was this page helpful?