Skip to content

AgentTokenCreate

View as Markdown
Field Type Description
name * string
description string
scopes * array of Scope
projects array of string or null
environments * array of string
budget AgentTokenBudget
expires_in string Lifetime, at most 365d. Default 30d.
approval_channel array of ApprovalChannel Default ["push","email"].

* always present

{
"name": "claude-code-on-stewart-laptop",
"scopes": [
"projects:read",
"deploy:preview",
"deploy:staging",
"logs:read",
"secrets:write-only",
"db:branch"
],
"environments": [
"preview",
"staging"
],
"budget": {
"spend_increase_per_day": {
"amount": "10.00",
"currency": "GBP"
}
},
"expires_in": "30d",
"approval_channel": [
"push",
"email"
]
}