POST
/v1/organizations/{organizationId}/projects/{projectId}/agent-configuration-previewsPreview one complete Agent Configuration without changing Product State
Return the canonical actions, manifest digest, warnings, and state preconditions for one complete desired Test Agent Configuration without changing Product State.
Authentication
Send an API key as a Bearer token in the Authorization header.
Parameters
Request body
Required.
application/jsonobject- unknown properties allowed
false
desiredrequired- DesiredAgentConfigurationThe complete desired Test Agent Configuration to evaluate without writing.
Responses
200AgentConfigurationPreviewapplication/json400The request path, headers, query, or JSON body did not satisfy the published schema401Unauthorizedapplication/json403Forbiddenapplication/json404NotFoundapplication/json409Conflictapplication/jsonReusable schemas
AgentConfigurationPreviewJsonEncoding
object- unknown properties allowed
false
manifestDigestrequiredstringThe lowercase SHA-256 digest of the normalized manifest.actionsrequiredarrayThe ordered configuration actions required to converge Product State.Itemsstring- allowed values
"createAgentDefinition", "updateAgentDefinition", "createTestAgent", "publishAgentVersion", "reuseAgentVersion", "activateTestRelease", "reuseTestRelease"
- allowed values
preconditionsrequired- AgentConfigurationPreconditionsThe exact mutable Product State observed during preview.
warningsrequiredarrayNon-blocking conditions the caller should review before applying.
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.
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
AgentConfigurationWarningJsonEncoding
object- unknown properties allowed
false
coderequiredstringThe stable machine-readable condition code.messagerequiredstringThe safe human-readable condition detail.
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.
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