Troupeby AliveDocsSign in

Reference

account

The caller's own identity, sign-in sessions and re-authentication. Index · shared schemas · errors.

ProcedureSummaryRESTMCP toolStability
account.getWho the caller is: the signed-in user, the org API key, or the access token, with its scopesGET—experimental
account.sessionsList the signed-in user's active sessions, newest firstGET—experimental
account.revokeSessionSign out one of the user's own sessions; revoking the current one signs this caller outPOST—experimental
account.reauthenticateConfirm the user's password on the current session; trust-class procedures then accept it for 15 minutes. A wrong password answers FORBIDDEN (reauth-required) and spends this session's re-auth budget (5 in 15 minutes) and the user's (20 across sessions); a right one spends nothing.POST—experimental
account.grantsList the apps the signed-in user let act for them (the CLI's device sign-in, the studio, MCP clients), newest first, with when each was last usedGET—experimental
account.revokeGrantRevoke one of the user's grants: its refresh tokens stop at once, its access tokens within 10 minutes. NOT_FOUND (grant) for another user's or an ended one.POST—experimental

account.get

Who the caller is: the signed-in user, the org API key, or the access token, with its scopes

RESTGET /v1/account/get (input as query parameters)
RPC/rpc/v2/account/get
MCPnot a tool (a cloud platform procedure; the cloud MCP surface is the curated device tools); hints: read-only, idempotent
Authsession: any authenticated principal, no scope check
Tenancynone
Troupe Cloudanswered by the control plane
Stabilityexperimental, since 1.0

Input:

TypeScript
{}

Output:

TypeScript
{
  principal: 'user' | 'apiKey' | 'delegated' | …
  user?: User
  signIn?: { password: boolean; providers: { id: string; name: string }[] }
  apiKey?: { id: ApiKeyId; orgId: OrgId; projectId?: ProjectId; scopes: CloudScopeOut[] }
  delegated?: {
    subject: string
    clientId: string
    orgId: OrgId
    projectId?: ProjectId
    audience: string
    scopes: CloudScopeOut[]
    grant: 'code' | 'refresh' | 'device' | 'exchange' | …
    actor?: string
    expiresAt: Timestamp
  }
}

Errors: U.

Named types: ApiKeyId, CloudScopeOut, OrgId, ProjectId, Timestamp, User.

account.sessions

List the signed-in user's active sessions, newest first

RESTGET /v1/account/sessions (input as query parameters)
RPC/rpc/v2/account/sessions
MCPnot a tool (a cloud platform procedure; the cloud MCP surface is the curated device tools); hints: read-only, idempotent
Authaccount:read
Tenancynone
Troupe Cloudanswered by the control plane
Stabilityexperimental, since 1.0

Input:

TypeScript
{}

Output:

TypeScript
{ sessions: AuthSessionInfo[] }

Errors: U.

Named types: AuthSessionInfo.

account.revokeSession

Sign out one of the user's own sessions; revoking the current one signs this caller out

RESTPOST /v1/account/revoke-session (input as a JSON body)
RPC/rpc/v2/account/revokeSession
MCPnot a tool (a cloud platform procedure; the cloud MCP surface is the curated device tools); hints: idempotent, destructive
Authaccount:write
Tenancynone
Troupe Cloudanswered by the control plane
Stabilityexperimental, since 1.0

Input:

TypeScript
{ sessionId: AuthSessionId }

Output:

TypeScript
{ revoked: boolean }

Errors: U, NOT_FOUND.

Named types: AuthSessionId.

account.reauthenticate

Confirm the user's password on the current session; trust-class procedures then accept it for 15 minutes. A wrong password answers FORBIDDEN (reauth-required) and spends this session's re-auth budget (5 in 15 minutes) and the user's (20 across sessions); a right one spends nothing.

RESTPOST /v1/account/reauthenticate (input as a JSON body)
RPC/rpc/v2/account/reauthenticate
MCPnot a tool (a cloud platform procedure; the cloud MCP surface is the curated device tools); hints: none
Authaccount:write
Tenancynone
Troupe Cloudanswered by the control plane
Stabilityexperimental, since 1.0

Input:

TypeScript
{ password: Password }

Output:

TypeScript
{ reauthenticatedAt: Timestamp }

Errors: U.

Named types: Password, Timestamp.

account.grants

List the apps the signed-in user let act for them (the CLI's device sign-in, the studio, MCP clients), newest first, with when each was last used

RESTGET /v1/account/grants (input as query parameters)
RPC/rpc/v2/account/grants
MCPnot a tool (a cloud platform procedure; the cloud MCP surface is the curated device tools); hints: read-only, idempotent
Authaccount:read
Tenancynone
Troupe Cloudanswered by the control plane
Stabilityexperimental, since 1.0

Input:

TypeScript
{}

Output:

TypeScript
{ grants: AccountGrant[] }

Errors: U.

Named types: AccountGrant.

account.revokeGrant

Revoke one of the user's grants: its refresh tokens stop at once, its access tokens within 10 minutes. NOT_FOUND (grant) for another user's or an ended one.

RESTPOST /v1/account/revoke-grant (input as a JSON body)
RPC/rpc/v2/account/revokeGrant
MCPnot a tool (a cloud platform procedure; the cloud MCP surface is the curated device tools); hints: idempotent, destructive
Authaccount:write
Tenancynone
Troupe Cloudanswered by the control plane
Stabilityexperimental, since 1.0

Input:

TypeScript
{ grantId: GrantId }

Output:

TypeScript
{ revoked: boolean }

Errors: U, NOT_FOUND.

Named types: GrantId.

esc

    Type to search every page, the protocol reference and the cloud API.