Viewport daemon, relay, and hosted runtime are available in alpha. Surfaces may change.
VIEWPORT
ReferenceAPI reference

Sessions

37 operations in the Sessions group.

37 of 37 operations on this page are generated contract stubs: the routes are real, the schemas are placeholders pending the owning subsystem's contract pass.

GET /api/sessions

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessions

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessions

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSession

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/access

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionAccess

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/access-requests

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionAccessRequests

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/access-requests/{accessRequestId}/decision

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionAccessRequestsAccessRequestIdDecision

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring
accessRequestIdpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

DELETE /api/sessions/{agentSession}/access/{aclEntry}

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: deleteApiSessionsAgentSessionAccessAclEntry

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring
aclEntrypathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
204No content
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}/adapter-receipts

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSessionAdapterReceipts

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}/approval-audit

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSessionApprovalAudit

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/attempt-graph

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionAttemptGraph

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}/collaboration

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSessionCollaboration

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/collaboration-events

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionCollaborationEvents

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}/compute-evidence

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSessionComputeEvidence

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/context-corrections

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionContextCorrections

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/context-working-set

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionContextWorkingSet

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}/effective-policy

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSessionEffectivePolicy

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}/events

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSessionEvents

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/fan-in-review

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionFanInReview

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}/governance

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSessionGovernance

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}/guardrail-evidence

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSessionGuardrailEvidence

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}/mcp-tools

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSessionMcpTools

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/memory-retrieval

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionMemoryRetrieval

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/model-routing-decision

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionModelRoutingDecision

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/policy-change-proposals

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionPolicyChangeProposals

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/policy-change-proposals/open-pr

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionPolicyChangeProposalsOpenPr

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}/readiness

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSessionReadiness

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}/receipt-export

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSessionReceiptExport

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}/relay-subscription

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSessionRelaySubscription

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}/room

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSessionRoom

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/routing-decisions

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionRoutingDecisions

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/run-attempts

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionRunAttempts

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}/spend

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSessionSpend

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}/support-debug

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSessionSupportDebug

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

GET /api/sessions/{agentSession}/trace-export

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: getApiSessionsAgentSessionTraceExport

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/verification-attempts

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionVerificationAttempts

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/verification-pack

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionVerificationPack

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

POST /api/sessions/{agentSession}/verification-repair-handoffs

Generated contract stub — the route is real and served, but its request/response schema has not been hand-tightened yet.

Operation ID: postApiSessionsAgentSessionVerificationRepairHandoffs

Parameters

NameInRequiredTypeDescription
agentSessionpathyesstring

Request bodyapplication/json · object

Responses

StatusDescriptionSchema
200Successful responseGenericApiResponse
201Successful responseGenericApiResponse
401Authentication is requiredErrorEnvelope
403Permission deniedErrorEnvelope
422Validation failedErrorEnvelope
500Server errorErrorEnvelope

On this page

GET /api/sessionsPOST /api/sessionsGET /api/sessions/{agentSession}POST /api/sessions/{agentSession}/accessPOST /api/sessions/{agentSession}/access-requestsPOST /api/sessions/{agentSession}/access-requests/{accessRequestId}/decisionDELETE /api/sessions/{agentSession}/access/{aclEntry}GET /api/sessions/{agentSession}/adapter-receiptsGET /api/sessions/{agentSession}/approval-auditPOST /api/sessions/{agentSession}/attempt-graphGET /api/sessions/{agentSession}/collaborationPOST /api/sessions/{agentSession}/collaboration-eventsGET /api/sessions/{agentSession}/compute-evidencePOST /api/sessions/{agentSession}/context-correctionsPOST /api/sessions/{agentSession}/context-working-setGET /api/sessions/{agentSession}/effective-policyGET /api/sessions/{agentSession}/eventsPOST /api/sessions/{agentSession}/fan-in-reviewGET /api/sessions/{agentSession}/governanceGET /api/sessions/{agentSession}/guardrail-evidenceGET /api/sessions/{agentSession}/mcp-toolsPOST /api/sessions/{agentSession}/memory-retrievalPOST /api/sessions/{agentSession}/model-routing-decisionPOST /api/sessions/{agentSession}/policy-change-proposalsPOST /api/sessions/{agentSession}/policy-change-proposals/open-prGET /api/sessions/{agentSession}/readinessGET /api/sessions/{agentSession}/receipt-exportGET /api/sessions/{agentSession}/relay-subscriptionGET /api/sessions/{agentSession}/roomPOST /api/sessions/{agentSession}/routing-decisionsPOST /api/sessions/{agentSession}/run-attemptsGET /api/sessions/{agentSession}/spendGET /api/sessions/{agentSession}/support-debugGET /api/sessions/{agentSession}/trace-exportPOST /api/sessions/{agentSession}/verification-attemptsPOST /api/sessions/{agentSession}/verification-packPOST /api/sessions/{agentSession}/verification-repair-handoffs