Skip to main content
Retrieve every currently active AI session associated with your account. Each session represents an authorized AI client — such as Cursor, Claude, or ChatGPT — that has been granted permission to initiate Stellar transactions on your behalf within the bounds of a spending policy. Use this endpoint to audit which AI assistants are active and to identify sessions that should be revoked.

Endpoint

Authentication

All requests must include a valid bearer token in the Authorization header, or a pay3_session cookie obtained during wallet authentication.

Response

Returns an array of active AI session objects, ordered newest first. Only sessions with ACTIVE status and a future expiry time are returned — expired and revoked sessions are excluded. To revoke a session, see Revoke Sessions.

Response fields

string
required
Unique UUID identifying this AI session.
string
required
The AI client associated with this session. One of CURSOR, CLAUDE, CHATGPT, GEMINI, or OTHER.
string
required
The Ed25519 public key (Stellar G-address) of the ephemeral session keypair registered on-chain. This key signs transactions submitted by the AI on your behalf.
string
required
ISO 8601 timestamp after which the session automatically becomes inactive.
string
required
ISO 8601 timestamp when the session was created.
object
required
Summary of the spending policy governing this session’s transaction limits.
object
required
The smart account (Soroban contract) this session is authorized to operate on.

Example request

Example response

This endpoint returns only active sessions — those that are currently valid and have not yet expired. To revoke one or all sessions, see Revoke Sessions. Revoked and expired sessions are not returned here, but their associated transactions remain visible in GET /api/transactions.