API reference
Revoke an agent session
Revoke a StableOps Agent session by ID to prevent further actions from that session, while retaining its organization, environment, and existing audit context.
POST
/v1/agent/sessions/{id}/revokeAuthorization
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}/revoke"{
"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
List agent sessions GET
List StableOps Agent sessions in the current organization and environment, newest first, to inspect automation identities and manage their access lifecycle.
Restore an agent session POST
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.