Skip to content
Console
Menu

Alerts and status pages

App store purchases

Credits

Knowledge

KV

Notifications

Organizations

Storage

Workflows

API reference

Getting Started

Authentication

KV Store

Queue execution on an agent session

Explicitly reserves existing captured authority for one future turn, without executing it.

Explicitly reserves existing captured authority for one future turn, without executing it.

  • Path POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session:queueExecution
  • Scope agents:sessions
  • Effect write — a successful call changes state.
  • Collection agent_sessions

#Request

FieldTypeWhat it is
namestringExisting owning Session. Required.
executionSessionTurnExecutionExisting handles captured by this caller for this exact future turn. Required.
goalstringExact current Goal, or empty only when the Session has no Goal.
expected_goal_versionint32Required for a Goal; its observed contract version when granting authority.
operation_idstringPermanent caller mutation identity, at most 128 bytes. Required.
expected_generationint64Zero on first creation; replacing authority requires its exact generation.
automaticboolExplicitly authorize automatic ready-wait resume with these exact captures. Default false only reserves them. Requires captured agents:sessions as well as runtime permissions; owner holds and ordinary admission still apply.

#SessionTurnExecution

FieldTypeWhat it is
turnint64The expected next turn. A concurrent admission never changes this pin. Required.
runtime_credential_handlestringSame-turn captured caller authority for Workflows and lazy Sandbox APIs. Required. Never returned again.
credentialsmap<string, CredentialBinding>Same-turn execution handles by alias, including inference and any pinned tool or repository capabilities. Each retains its existing permission gate.

#CredentialBinding

FieldTypeWhat it is
secretstringA Kernel Secret of this environment, by name. One of the source group.
connectionstringA Kernel Connection (a third-party OAuth installation), by name. One of the source group.
end_user_providerstringThe end user's own grant in Sylphx Auth's agent token vault, by provider id; the session's end user must hold it. One of the source group.
placementstringHow the value is sent: bearer (default), header:<Name> or query:<name>.
handlestringAn opaque credential handle issued for this session, resolved only at egress. This is never a credential value. Never returned again. One of the source group.

#Response

FieldTypeWhat it is
namestringExact Session and reserved public turn number.
uidstringImmutable platform Resource UID. Output only.
metaResourceMetaStandard metadata. Output only.
turnint64Exact future turn; never selected by a model or a Task. Output only.
statestringqueued, consumed, superseded or cancelled. Queued does not run inference. Output only.
goalstringOptional exact Goal whose objective and budget this authority covers. Output only.
expire_timetimestampEarliest captured handle expiry; ordinary admission revalidates all grants. Output only.
create_timetimestampWhen the caller reserved this execution. Output only.
update_timetimestampWhen the state last changed. Output only.
generationint64Configuration generation, advanced only by explicit replacement. Output only.
automaticboolWhether the caller explicitly authorized automatic wait readmission. Output only.
continuation_statestringdisabled, unscheduled, pending, waiting or finished; no inference implied. Output only.
blocked_reasonstringCurrent delivery/authority/owner hold, when automatic continuation is blocked. Output only.

#ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/agent_sessions/agent-session:queueExecution" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"execution":{"runtime_credential_handle":"…","turn":1},"operation_id":"…"}'