Create agent bootstrap token
curl --request POST \
--url https://api.turos.app/v1/agent/bootstrap_tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "research-agent",
"scopes": [
"read:sec"
],
"ttlSeconds": 900
}
'import requests
url = "https://api.turos.app/v1/agent/bootstrap_tokens"
payload = {
"label": "research-agent",
"scopes": ["read:sec"],
"ttlSeconds": 900
}
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: 'research-agent', scopes: ['read:sec'], ttlSeconds: 900})
};
fetch('https://api.turos.app/v1/agent/bootstrap_tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "agent_bootstrap_token",
"id": "agtok_example",
"orgId": "org_example",
"actorPrincipalId": "user_example",
"label": "research-agent",
"tokenPrefix": "agtok_example",
"scopes": [
"read:sec"
],
"livemode": false,
"expiresAt": "2026-03-19T12:15:00.000Z",
"usedAt": null,
"usedByPrincipalId": null,
"createdAt": "2026-03-19T12:00:00.000Z",
"updatedAt": "2026-03-19T12:00:00.000Z",
"secret": "agtok_example_secret_returned_once",
"requestId": "req_example_123"
}Agent
Create agent bootstrap token
Issue a short-lived, single-use sponsor token for agent bootstrap under the current organization.
POST
/
v1
/
agent
/
bootstrap_tokens
Create agent bootstrap token
curl --request POST \
--url https://api.turos.app/v1/agent/bootstrap_tokens \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"label": "research-agent",
"scopes": [
"read:sec"
],
"ttlSeconds": 900
}
'import requests
url = "https://api.turos.app/v1/agent/bootstrap_tokens"
payload = {
"label": "research-agent",
"scopes": ["read:sec"],
"ttlSeconds": 900
}
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: 'research-agent', scopes: ['read:sec'], ttlSeconds: 900})
};
fetch('https://api.turos.app/v1/agent/bootstrap_tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "agent_bootstrap_token",
"id": "agtok_example",
"orgId": "org_example",
"actorPrincipalId": "user_example",
"label": "research-agent",
"tokenPrefix": "agtok_example",
"scopes": [
"read:sec"
],
"livemode": false,
"expiresAt": "2026-03-19T12:15:00.000Z",
"usedAt": null,
"usedByPrincipalId": null,
"createdAt": "2026-03-19T12:00:00.000Z",
"updatedAt": "2026-03-19T12:00:00.000Z",
"secret": "agtok_example_secret_returned_once",
"requestId": "req_example_123"
}Authorizations
Body
application/json
Requires a human organization member authenticated with a bearer token. API keys cannot create sponsor tokens.
Response
Sponsor token issued. The secret is returned once.