API reference
Restore an agent session
Restore a revoked StableOps Agent session by ID so it can request actions again within its original organization and environment, subject to the active policy.
POST
/v1/agent/sessions/{id}/restoreAuthorization
bearerAuth AuthorizationBearer <token>
Paste your API key from the dashboard.
In: header
Path Parameters
id*unknown
Agent session id.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/agent/sessions/{id}/restore"{
"id": "string",
"label": "string",
"created_at": "string",
"expires_at": "string",
"revoked_at": "string"
}{
"statusCode": -9007199254740991,
"message": "string",
"error": "string"
}{
"statusCode": -9007199254740991,
"message": "string",
"error": "string"
}How is this guide?
Last updated
Revoke an agent session POST
Revoke a StableOps Agent session by ID to prevent further actions from that session, while retaining its organization, environment, and existing audit context.
Get agent policy GET
Retrieve the StableOps Agent policy for your organization and environment, or its default policy, to inspect allowed tools and approval rules before acting.