POST
/v1/organizations/{organizationId}/projects/{projectId}/agent-configuration-appliesApply or recover one complete Agent Configuration
Apply the exact previewed Agent Configuration under optimistic preconditions, or resume the same idempotent request from its durable Configuration Revision.
Authentication
Send an API key as a Bearer token in the Authorization header.
Parameters
Request body
Required.
application/jsonobject- unknown properties allowed
false
requestIdrequiredstringThe idempotency key for this exact apply attempt.All of- minimum length
1
- maximum length
200
- minimum length
desiredrequired- DesiredAgentConfigurationThe complete desired Test Agent Configuration accepted during preview.
manifestDigestrequiredstringThe lowercase SHA-256 manifest digest returned by preview.preconditionsrequired- AgentConfigurationPreconditionsThe exact mutable Product State observed during preview.
sourcerequired- AgentConfigurationSourceThe source revision and automation run requesting the apply.
Responses
200ApplyAgentConfigurationResultapplication/json400The request path, headers, query, or JSON body did not satisfy the published schema401Unauthorizedapplication/json403Forbiddenapplication/json404NotFoundapplication/json409Conflictapplication/json412PreconditionFailedapplication/jsonReusable schemas
ApplyAgentConfigurationResult
object- unknown properties allowed
false
revisionrequired- ConfigurationRevisionJsonEncodingThe monotonically increasing revision within the Agent Definition.
configurationrequired- AgentConfigurationJsonEncodingThe current Agent Configuration after the apply.
UnauthorizedJsonEncoding
object- unknown properties allowed
false
_tagrequiredstringThe stable machine-readable error type.- allowed values
"Unauthorized"
- allowed values
reasonrequiredstringA safe explanation of why the credential was rejected.
ForbiddenJsonEncoding
object- unknown properties allowed
false
_tagrequiredstringThe stable machine-readable error type.- allowed values
"Forbidden"
- allowed values
permissionrequiredstringThe permission required by the refused operation.
NotFoundJsonEncoding
object- unknown properties allowed
false
_tagrequiredstringThe stable machine-readable error type.- allowed values
"NotFound"
- allowed values
resourcerequiredstringThe resource type relevant to the error.idrequiredstringThe identifier supplied for the resource that was not found.
ConflictJsonEncoding
object- unknown properties allowed
false
_tagrequiredstringThe stable machine-readable error type.- allowed values
"Conflict"
- allowed values
resourcerequiredstringThe resource type relevant to the error.reasonrequiredstringA safe explanation of the state conflict.
PreconditionFailedJsonEncoding
object- unknown properties allowed
false
_tagrequiredstringThe stable machine-readable error type.- allowed values
"PreconditionFailed"
- allowed values
resourcerequiredstringThe resource type relevant to the error.- allowed values
"agent", "agentDefinition", "agentConfiguration"
- allowed values
currentAgentReleaseIdrequired- The current Agent Release identifier, or null before the first activation.Any of
stringAll of- maximum length
64
A Cantora Agent Release identifier, prefixed with `agent_release_`.- pattern
^agent_release_[\s\S]+$
null - maximum length
currentEtagrequiredstringThe current strong ETag required for the next conditional activation.All of- maximum length
12
The current strong Agent Release ETag, including its double quotes.- pattern
^"(?:0|[1-9][0-9]{0,9})"$
- maximum length
DesiredAgentConfiguration
object- unknown properties allowed
false
intentrequiredstringWhether the configuration creates a new binding or updates an identified Agent Definition.- allowed values
"create", "update"
- allowed values
agentDefinitionIdrequired- The Agent Definition identifier.Any of
stringAll of- maximum length
64
A Cantora Agent Definition identifier, prefixed with `agentdef_`.- pattern
^agentdef_[\s\S]+$
null - maximum length
keyrequiredstringThe stable, human-authored Agent Definition key.displayNamerequiredstringThe human-readable resource name.manifestrequired- AgentVersionManifestThe complete immutable Agent behavior and execution-budget declaration.
testReleaserequiredobjectThe desired Test Environment and activation reason.- unknown properties allowed
false
environmentIdrequiredstringThe Environment identifier.All of- maximum length
64
A Cantora Environment identifier, prefixed with `env_`.- pattern
^env_[\s\S]+$
- maximum length
reasonrequiredstringThe human-readable reason for activating the Test Agent Version.
- unknown properties allowed
AgentConfigurationPreconditions
object- unknown properties allowed
false
agentDefinitionIdrequired- The Agent Definition identifier.Any of
stringAll of- maximum length
64
A Cantora Agent Definition identifier, prefixed with `agentdef_`.- pattern
^agentdef_[\s\S]+$
null - maximum length
definitionKeyrequired- The stable Agent Definition key.Any of
stringnull definitionDisplayNamerequired- The Agent Definition display name observed during preview, or null when creating it.Any of
stringnull definitionStatusrequired- The Agent Definition lifecycle status observed during preview, or null when creating it.Any of
string- allowed values
"active", "disabled"
null - allowed values
configurationAuthorityrequired- The one surface allowed to change this Agent Definition and publish its Versions.Any of
string- allowed values
"ApiManaged", "DashboardManaged"
null - allowed values
testAgentPrincipalIdrequired- The Test Agent Principal identifier, or null before it is created.Any of
stringAll of- maximum length
64
A Cantora Principal identifier, prefixed with `principal_`.- pattern
^principal_[\s\S]+$
null - maximum length
testReleaseGenerationrequiredintegerThe current Test Agent Release generation, starting at zero before activation.All of- minimum
0
- minimum
currentManifestDigestrequired- The current Test Agent Version manifest digest, or null before the first activation.Any of
stringnull
AgentConfigurationSource
object- unknown properties allowed
false
repositoryrequiredstringThe source repository identifier.All of- minimum length
1
- maximum length
500
- minimum length
commitrequiredstringThe immutable source revision.All of- minimum length
1
- maximum length
500
- minimum length
pathrequiredstringThe path within the source repository.All of- minimum length
1
- maximum length
500
- minimum length
workflowrequiredstringThe source automation workflow identifier.All of- minimum length
1
- maximum length
500
- minimum length
runrequiredstringThe source automation run identifier.All of- minimum length
1
- maximum length
500
- minimum length
actorrequiredstringThe source-control or automation actor that requested the change.All of- minimum length
1
- maximum length
500
- minimum length
ConfigurationRevisionJsonEncoding
object- unknown properties allowed
false
configurationRevisionIdrequiredstringThe durable Configuration Revision identifier.All of- maximum length
64
A Cantora Configuration Revision identifier, prefixed with `configuration_revision_`.- pattern
^configuration_revision_[\s\S]+$
- maximum length
requestIdrequiredstringThe request identifier used for logs and support.organizationIdrequiredstringThe Organization identifier.All of- maximum length
64
A Cantora Organization identifier, prefixed with `org_`.- pattern
^org_[\s\S]+$
- maximum length
projectIdrequiredstringThe Project identifier.All of- maximum length
64
A Cantora Project identifier, prefixed with `proj_`.- pattern
^proj_[\s\S]+$
- maximum length
testEnvironmentIdrequiredstringThe Test Environment identifier, or null before it can be resolved.All of- maximum length
64
A Cantora Environment identifier, prefixed with `env_`.- pattern
^env_[\s\S]+$
- maximum length
agentDefinitionIdrequired- The Agent Definition identifier.Any of
stringAll of- maximum length
64
A Cantora Agent Definition identifier, prefixed with `agentdef_`.- pattern
^agentdef_[\s\S]+$
null - maximum length
testAgentPrincipalIdrequired- The Test Agent Principal identifier, or null before it is created.Any of
stringAll of- maximum length
64
A Cantora Principal identifier, prefixed with `principal_`.- pattern
^principal_[\s\S]+$
null - maximum length
agentVersionIdrequired- The immutable Agent Version identifier.Any of
stringAll of- maximum length
64
A Cantora Agent Version identifier, prefixed with `agent_version_`.- pattern
^agent_version_[\s\S]+$
null - maximum length
testAgentReleaseIdrequired- The Test Agent Release identifier, or null before it is activated.Any of
stringAll of- maximum length
64
A Cantora Agent Release identifier, prefixed with `agent_release_`.- pattern
^agent_release_[\s\S]+$
null - maximum length
manifestDigestrequiredstringThe lowercase SHA-256 digest of the normalized manifest.statusrequiredstringThe current lifecycle status.- allowed values
"Pending", "Running", "Succeeded", "Failed"
- allowed values
progressrequired- ConfigurationRevisionProgressHow the Surface presents progress while work runs.
sourcerequired- AgentConfigurationSourceThe source revision and automation provenance.
failurerequired- The safe failure detail, or null unless the Configuration Revision failed.Any of
null createdAtrequiredstringWhen the resource was created, in UTC.- format
date-time
- format
updatedAtrequiredstringWhen the resource was last updated, in UTC.- format
date-time
- format
AgentConfigurationJsonEncoding
object- unknown properties allowed
false
organizationIdrequiredstringThe Organization identifier.All of- maximum length
64
A Cantora Organization identifier, prefixed with `org_`.- pattern
^org_[\s\S]+$
- maximum length
projectIdrequiredstringThe Project identifier.All of- maximum length
64
A Cantora Project identifier, prefixed with `proj_`.- pattern
^proj_[\s\S]+$
- maximum length
agentDefinitionIdrequiredstringThe Agent Definition identifier.All of- maximum length
64
A Cantora Agent Definition identifier, prefixed with `agentdef_`.- pattern
^agentdef_[\s\S]+$
- maximum length
keyrequiredstringThe stable, human-authored Agent Definition key.displayNamerequiredstringThe human-readable resource name.statusrequiredstringThe current lifecycle status.- allowed values
"active", "disabled"
- allowed values
configurationAuthorityrequiredstringThe one surface allowed to change this Agent Definition and publish its Versions.- allowed values
"ApiManaged", "DashboardManaged"
- allowed values
testEnvironmentIdrequired- The Test Environment identifier, or null before it can be resolved.Any of
stringAll of- maximum length
64
A Cantora Environment identifier, prefixed with `env_`.- pattern
^env_[\s\S]+$
null - maximum length
testAgentPrincipalIdrequired- The Test Agent Principal identifier, or null before it is created.Any of
stringAll of- maximum length
64
A Cantora Principal identifier, prefixed with `principal_`.- pattern
^principal_[\s\S]+$
null - maximum length
testAgentStatusrequired- The Test Agent lifecycle status, or null before it is created.Any of
stringnull currentAgentVersionIdrequired- The current Test Agent Version identifier, or null before the first activation.Any of
stringAll of- maximum length
64
A Cantora Agent Version identifier, prefixed with `agent_version_`.- pattern
^agent_version_[\s\S]+$
null - maximum length
currentManifestrequired- The current Test Agent Version manifest, or null before the first activation.Any of
null currentManifestDigestrequired- The current Test Agent Version manifest digest, or null before the first activation.Any of
stringnull currentTestAgentReleaseIdrequired- The current Test Agent Release identifier, or null before the first activation.Any of
stringAll of- maximum length
64
A Cantora Agent Release identifier, prefixed with `agent_release_`.- pattern
^agent_release_[\s\S]+$
null - maximum length
currentTestAgentReleaseReasonrequired- The current Test Agent Release reason, or null before the first activation.Any of
stringnull testReleaseGenerationrequiredintegerThe current Test Agent Release generation, starting at zero before activation.All of- minimum
0
- minimum
testReleaseEtagrequiredstringThe strong ETag for the current Test Agent Release generation.latestConfigurationRevisionIdrequired- The latest Configuration Revision for this Agent Definition, or null before an apply.Any of
stringAll of- maximum length
64
A Cantora Configuration Revision identifier, prefixed with `configuration_revision_`.- pattern
^configuration_revision_[\s\S]+$
null - maximum length
AgentVersionManifest
object- unknown properties allowed
false
schemaVersionrequiredstringThe Agent Version manifest schema identifier.- allowed values
"config.cantora.ai/agent-version/v1alpha2"
- allowed values
instructionsrequiredstringThe complete natural-language instructions for the Agent Version.All of- maximum length
262144
- maximum length
modelrequired- AgentVersionModelThe exact provider model and behavior settings pinned by the Agent Version.
toolsrequired- AgentVersionDependenciesThe tool keys the Agent Version may call.
requiredBindingsrequired- AgentVersionDependenciesThe configuration bindings the Agent Version requires at runtime.
budgetsrequired- AgentVersionBudgetsThe finite execution limits enforced for the Agent Version.
ConfigurationRevisionProgress
object- unknown properties allowed
false
agentDefinitionrequiredstringWhether the Agent Definition step has completed.- allowed values
"Pending", "Succeeded"
- allowed values
testAgentrequiredstringWhether the Test Agent step has completed.- allowed values
"Pending", "Succeeded"
- allowed values
agentVersionrequiredstringWhether the Agent Version step has completed.- allowed values
"Pending", "Succeeded"
- allowed values
testReleaserequiredstringThe desired Test Environment and activation reason.- allowed values
"Pending", "Succeeded"
- allowed values
ConfigurationRevisionFailureJsonEncoding
object- unknown properties allowed
false
coderequiredstringThe stable machine-readable condition code.messagerequiredstringThe safe human-readable condition detail.
AgentVersionModel
Any of
object- unknown properties allowed
false
providerrequiredstringThe model or Surface provider key.- allowed values
"googleVertex"
- allowed values
modelrequiredstringThe exact provider model and behavior settings pinned by the Agent Version.All of- minimum length
1
- maximum length
256
- minimum length
settingsrequired- GoogleVertexModelSettingsThe provider-native settings that change model behavior.
object- unknown properties allowed
false
providerrequiredstringThe model or Surface provider key.- allowed values
"openai"
- allowed values
modelrequiredstringThe exact provider model and behavior settings pinned by the Agent Version.All of- minimum length
1
- maximum length
256
- minimum length
settingsrequired- OpenAiModelSettingsThe provider-native settings that change model behavior.
AgentVersionDependencies
arrayItems
stringAll of
- minimum length
1
- maximum length
100
- pattern
^[a-z][a-z0-9_]*$
All of
- at most items
100
- unique items
true
AgentVersionBudgets
object- unknown properties allowed
false
maxModelStepsrequiredintegerThe maximum number of model calls in one Run.All of- maximum
100 - minimum
1
- maximum
maxToolCallsrequiredintegerThe maximum number of tool calls in one Run.All of- maximum
100 - minimum
0
- maximum
totalWallTimeMsrequiredintegerThe maximum total Run duration in milliseconds.All of- maximum
300000 - minimum
1000
- maximum
modelStepTimeMsrequiredintegerThe maximum duration of one model step in milliseconds.All of- maximum
300000 - minimum
1000
- maximum
streamStallTimeMsrequiredintegerThe maximum duration without stream progress in milliseconds.All of- maximum
300000 - minimum
1000
- maximum
maxInputTokensrequiredintegerThe maximum number of model input tokens.All of- maximum
10000000 - minimum
1
- maximum
maxOutputTokensrequiredintegerThe maximum number of model output tokens.All of- maximum
1000000 - minimum
1
- maximum
maxReasoningTokensrequiredintegerThe maximum number of model reasoning tokens.All of- maximum
1000000 - minimum
0
- maximum
maxTotalTokensrequiredintegerThe maximum total model tokens in one Run.All of- maximum
10000000 - minimum
1
- maximum
maxToolResultBytesrequiredintegerThe maximum aggregate tool-result size in bytes.All of- maximum
10000000 - minimum
1
- maximum
maxEstimatedCostMicrosrequiredintegerThe maximum estimated model cost in millionths of the billing currency.All of- maximum
1000000000 - minimum
1
- maximum
GoogleVertexModelSettings
object- unknown properties allowed
false
thinkingLevelrequiredstringThe Google Vertex-native thinking level.- allowed values
"minimal", "low", "medium", "high"
- allowed values
OpenAiModelSettings
object- unknown properties allowed
false
reasoningEffortrequiredstringThe OpenAI-native reasoning effort.- allowed values
"none", "low", "medium", "high", "xhigh", "max"
- allowed values
reasoningModerequiredstringThe OpenAI-native reasoning mode.- allowed values
"standard", "pro"
- allowed values