cURL
curl --request POST \ --url https://api.suprlogs.com/v1/api-keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "ownerType": "user", "clerkOwnerId": "<string>", "name": "<string>", "scopeMode": "all_projects", "projectIds": [ "3c90c3cc-0d44-4b50-8888-8dd25736052a" ] } '
{ "plaintextKey": "<string>", "apiKey": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "key_prefix": "<string>", "scope_mode": "all_projects", "project_ids": [ "3c90c3cc-0d44-4b50-8888-8dd25736052a" ] } }
Creates a new API key in the owner context and returns plaintext key once.
Send API key as Authorization: Bearer .
user
org
all_projects
selected_projects
API key created (plaintext shown once).
Show child attributes