Create API key
curl --request POST \
--url https://api.turos.app/v1/api_keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "local-dev"
}
'import requests
url = "https://api.turos.app/v1/api_keys"
payload = { "label": "local-dev" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: 'local-dev'})
};
fetch('https://api.turos.app/v1/api_keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "api_key",
"id": "key_123",
"createdAt": "2026-06-27T21:00:00.000Z",
"livemode": false,
"orgId": "org_123",
"label": "local-dev",
"keyPrefix": "secapi_live_abcd",
"scopes": [
"read:sec"
],
"status": "active",
"lastUsedAt": null,
"secret": "secapi_live_abcd...copy_this_once"
}API keys
Create API key
Create a new API key for the current organization and reveal its secret exactly once.
POST
/
v1
/
api_keys
Create API key
curl --request POST \
--url https://api.turos.app/v1/api_keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "local-dev"
}
'import requests
url = "https://api.turos.app/v1/api_keys"
payload = { "label": "local-dev" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({label: 'local-dev'})
};
fetch('https://api.turos.app/v1/api_keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "api_key",
"id": "key_123",
"createdAt": "2026-06-27T21:00:00.000Z",
"livemode": false,
"orgId": "org_123",
"label": "local-dev",
"keyPrefix": "secapi_live_abcd",
"scopes": [
"read:sec"
],
"status": "active",
"lastUsedAt": null,
"secret": "secapi_live_abcd...copy_this_once"
}Authorizations
Body
application/json
Optional API key label. Scopes and livemode are derived server-side for the current organization.
Response
API key created. The secret field is revealed exactly once in this response.