sessions module route (requires sessions:run:read)
const url = 'https://example.com/v1/m/sessions/runs/example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/m/sessions/runs/example \ --header 'Authorization: Bearer <token>'Returns one session run by reference.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Path parameter ref.
Header Parameters
Section titled “ Header Parameters ”Target tenant id; required when the principal can act in more than one tenant.
Responses
Section titled “ Responses ”The run, with the six facts a console shows about a session
object
object
A person launched it, a work item or agent dispatched it, or the session predates the launcher record.
The account’s display name.
Why a value is null or missing; present only then.
The account that launched the session.
object
Why a value is null or missing; present only then.
Actions of this session waiting for a person now.
object
The limit, in micro-USD, of the most restrictive budget scoped to this session or to its agent identity; present only when one applies.
The period that budget counts over.
Why a value is null or missing; present only then.
object
Why a value is null or missing; present only then.
object
The session folder and the read-only folders of its workspace.
object
Unknown when the folder’s workspace could not be read or no longer exists.
A folder on the engine host.
Hosts the session may connect to besides the engine: the bound provider’s endpoint, then the profile’s declared hosts.
Why a value is null or missing; present only then.
The operated session’s stable reference.
object
The provider account name of that profile.
Tool and account, ready to show: Claude Code · team-a.
The provider profile the session runs under.
Why no account is shown: the session runs without a provider profile, or its profile could not be read or no longer exists.
The session driver key, e.g. claude.
The tool’s display name, e.g. Claude Code.
The run’s derived lifecycle state.
Example
{ "acts_for": { "kind": "user" }, "cost": { "limit_period": "daily" }, "reaches": { "folders": [ { "access": "write" } ] }}Bad request
object
Example generated
{}Unauthenticated
object
Example generated
{}Forbidden
object
Example generated
{}Not found
object
Example generated
{}Conflict / setup required
object
Example generated
{}Rate limited
object
Example generated
{}