Browse documentation
Create an agent deployment
Creates an immutable deployment record. Requires agents:write.
The CLI creates the record before uploading the compiled manifest and source archive.
/agents/{agentId}/deploymentsAuthorization
AuthorizationBearer <token>Path parameters
agentIdstringrequired- format
"uuid"
Bodyrequired
sourceKindstring- maxLength
64
repositoryUrlstring | null- format
"uri"
repositoryFullNamestring | null- maxLength
256
branchstring | null- maxLength
256
commitShastring | null- maxLength
128
commitUrlstring | null- format
"uri"
commitMessagestring | null- maxLength
500
deployMessagestring | null- maxLength
500
runtimeConfigobjectrequiredAdditional properties are not allowed.
Show nested schema
sandboxRegionstring- enum
["us","eu"]
egressPolicyModestringrequired- enum
["restricted","full-open"]
egressAllowlistarrayrequired- maxItems
100
Show nested schema
credentialExchangesobject- maxProperties
10
Show nested schema
Additional properties are not allowed.
requestobjectrequiredAdditional properties are not allowed.
Show nested schema
hoststringrequiredmethodstringrequired- const
"POST"
pathstringrequired- maxLength
2048
contentTypestringrequired- const
"application/x-www-form-urlencoded"
requiredFieldsobjectrequired- minProperties
1- maxProperties
8
Show nested schema
- maxLength
256
secretFieldsobjectrequired- minProperties
1- maxProperties
4
Show nested schema
- pattern
"^[A-Z][A-Z0-9_]{0,127}$"
responseobjectrequiredAdditional properties are not allowed.
Show nested schema
contentTypestringrequired- const
"application/json"
credentialFieldstringrequiredtokenTypeFieldstringrequiredexpectedTokenTypestringrequired- const
"Bearer"
expiresInFieldstringrequiredaccessobjectrequiredAdditional properties are not allowed.
Show nested schema
allowedHostsarrayrequired- minItems
1- maxItems
25- uniqueItems
true
Show nested schema
workspaceUpgradePolicystringrequired- enum
["automatic","new-run-only"]
otlpEndpointOverridestring | null- format
"uri"
otelIncludeContentOverrideboolean | nullsandboxImageModestringrequiredSalambo-managed immutable sandbox image.
- const
"managed"
brainSummaryobjectAdditional properties are allowed.
sandboxSummaryobjectAdditional properties are allowed.
metadataobjectAdditional properties are allowed.
Response
Created deployment
idstringrequired- format
"uuid"
objectstringrequired- const
"agent_deployment"
agent_idstringrequired- format
"uuid"
version_numberinteger | nullrequiredsourceobjectShow nested schema
kindstringrequiredrepository_urlstring | nullrequiredrepository_full_namestring | nullrequiredbranchstring | nullrequiredcommit_shastring | nullrequiredcommit_urlstring | nullrequiredcommit_messagestring | nullrequireddeploy_messagestring | nullrequireddeployed_by_user_idstring | null- format
"uuid"
source_archiveobject | nullAdditional properties are allowed.
manifestobject | nullAdditional properties are allowed.
imageobject | nullAdditional properties are allowed.
sandbox_imageobjectShow nested schema
modestringrequired- enum
["managed","custom"]
base_imageobject | nullrequiredAdditional properties are allowed.
sandbox_regionstring | null- enum
["us","eu",null]
runtime_configobjectrequiredAdditional properties are not allowed.
Show nested schema
versionintegerrequired- const
1
sandboxobjectrequiredAdditional properties are not allowed.
Show nested schema
regionstringrequired- enum
["us","eu"]
egressobjectrequiredAdditional properties are not allowed.
Show nested schema
modestringrequired- enum
["restricted","full-open"]
allowlistarrayrequired- maxItems
100
Show nested schema
credentialExchangesobject- maxProperties
10
Show nested schema
Additional properties are not allowed.
requestobjectrequiredAdditional properties are not allowed.
Show nested schema
hoststringrequiredmethodstringrequired- const
"POST"
pathstringrequired- maxLength
2048
contentTypestringrequired- const
"application/x-www-form-urlencoded"
requiredFieldsobjectrequired- minProperties
1- maxProperties
8
Show nested schema
- maxLength
256
secretFieldsobjectrequired- minProperties
1- maxProperties
4
Show nested schema
- pattern
"^[A-Z][A-Z0-9_]{0,127}$"
responseobjectrequiredAdditional properties are not allowed.
Show nested schema
contentTypestringrequired- const
"application/json"
credentialFieldstringrequiredtokenTypeFieldstringrequiredexpectedTokenTypestringrequired- const
"Bearer"
expiresInFieldstringrequiredaccessobjectrequiredAdditional properties are not allowed.
Show nested schema
allowedHostsarrayrequired- minItems
1- maxItems
25- uniqueItems
true
Show nested schema
workspaceobjectrequiredAdditional properties are not allowed.
Show nested schema
upgradePolicystringrequired- enum
["automatic","new-run-only"]
telemetryobjectrequiredAdditional properties are not allowed.
Show nested schema
endpointstring | nullrequired- format
"uri"
includeContentbooleanrequiredstatusstringrequired- enum
["queued","uploading_source","source_uploaded","building_image","pushing_image","preparing_runtime","ready","failed","cancelled"]
failed_stagestring | nullbrain_summaryobjectAdditional properties are allowed.
sandbox_summaryobjectAdditional properties are allowed.
errorobject | nullShow nested schema
codestringmessagestringmetadataobjectAdditional properties are allowed.
created_atintegerrequiredupdated_atintegerrequiredfinished_atinteger | null