Skip to content

get_api_identity_me

GET
/api/identity/me
curl --request GET \
--url https://example.com/api/identity/me \
--header 'Authorization: Bearer <token>'

The actual OAuth-bound Actor and current frozen authorization of this connection. No credential is returned.

OK

Media typeapplication/json
object
actor_id
required
string format: uuid
deployment_id
required
string format: uuid
effective_authority
required

Canonical GrantBounds: current rights intersected with the session ceiling.

object
budget_ceiling
required

Counter ceilings by budget dimension (messages, model_tokens, …).

object
key
additional properties
integer format: int64
expires_at
required
string format: date-time
export_allowed
required
boolean
identity
required
object
granted
required

Granted identity capabilities by their snake_case name.

Array<string>
max_depth
required
integer format: int32
onward_delegation
required
boolean
project
required
object
by_project
required

Rights per concrete project; never an all-projects wildcard.

object
key
additional properties
object
capabilities
required
Array<string>
operations

Present only for an exact operation mask; an empty mask admits nothing.

Array<string> | null
public_share_allowed
required
boolean
resources
required
object
document_scope
required

restricted or all_granted_projects.

string
documents
required
Array<string>
mailboxes
required

Canonical kind:id mailbox addresses.

Array<string>
projects
required
Array<string>
scope
required
object
id
required
string format: uuid
kind
required

root, project, actor, installation or session.

string
environment
required
string
expires_at
required
string format: date-time
grant_id
required
string format: uuid
installation_id
required
string format: uuid
issuer
required

This deployment’s public issuer URL, distinct from the OAuth issuer.

string
principal_kind
required
string
profile
required
object
config_digest
required
string
profile_id
required
string format: uuid
version
required
integer format: int32
resource
required
string
schema_version
required
integer format: int32
session
One of:
object
epoch
required

Exact epoch string; never rounded through a JavaScript number.

string
id
required
string format: uuid
incarnation
string | null format: uuid
mode
required
string
workspace_id
required
string format: uuid

Example generated

{
"actor_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"deployment_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"effective_authority": {
"budget_ceiling": {
"additionalProperty": 1
},
"expires_at": "2026-04-15T12:00:00Z",
"export_allowed": true,
"identity": {
"granted": [
"example"
]
},
"max_depth": 1,
"onward_delegation": true,
"project": {
"by_project": {
"additionalProperty": {
"capabilities": [
"example"
],
"operations": [
"example"
]
}
}
},
"public_share_allowed": true,
"resources": {
"document_scope": "example",
"documents": [
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
],
"mailboxes": [
"example"
],
"projects": [
"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
]
},
"scope": {
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"kind": "example"
}
},
"environment": "example",
"expires_at": "2026-04-15T12:00:00Z",
"grant_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"installation_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"issuer": "example",
"principal_kind": "example",
"profile": {
"config_digest": "example",
"profile_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"version": 1
},
"resource": "example",
"schema_version": 1,
"session": {
"epoch": "example",
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"incarnation": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"mode": "example"
},
"workspace_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

Unauthorized

Media typeapplication/json

The canonical JSON body of every error response. Every AppError serializes as this exact shape; code is the generated stable machine-readable vocabulary.

object
cap
One of:

Present only on an MCP budget refusal (429) — the refusing layer + retry hint.

object
layer
required

The refusing layer.

string
limit
required

The layer’s budget.

integer format: int64
retry_after_seconds

Seconds until a retry can pass, or null when it never will for this session.

integer | null format: int64
used
required

Calls already counted in the layer.

integer format: int64
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden license_required license_expired fresh_auth_required source_not_released bad_request unprocessable precondition_failed conflict artifact_staging_busy artifact_staging_store_unavailable intervention_attachment_limit method_not_allowed rate_limited too_many_requests quota_exceeded mcp_cap_exceeded form_schema_invalid autosave_not_offered submit_not_offered idempotency_key_reused response_cap_reached required_missing database_error docker_error vault_error internal_error artifact_frames_unavailable identity_native_custody_unconfigured launch_concurrency_limit launch_already_active launch_not_pending launch_budget_exhausted launch_draining launch_side_effects_disabled launch_dispatch_disabled no_eligible_runner launch_image_unavailable pull_request_no_git_branch pull_request_no_project project_credential_missing project_credential_expired project_credential_revoked project_credential_substitution project_parent_credential_not_current project_lineage_invalid project_binding_missing project_binding_mismatch project_not_found project_capability_not_granted project_capability_unknown project_capabilities_required project_history_is_not_authority project_task_not_found project_task_project_missing project_task_not_active project_native_origin_missing project_broader_scope_required project_system_scope_required project_lifetime_invalid project_lifetime_not_finite project_lifetime_exceeds_maximum project_delegation_exceeds_parent project_renewal_not_allowed project_delegation_widened project_audience_mismatch project_deployment_claim_missing project_authority_disabled project_issuer_not_current project_operation_not_durable project_dispatch_gate_refused
details
One of:

Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.

object
key
required

The entitlement feature key that was hit, e.g. apps.max_count.

string
limit
required

The plan’s limit for this key.

integer format: int64
upgrade_url
required

Where to send the user to upgrade.

string
used
required

Current usage (count or bytes, per the key).

integer format: int64
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
launch
One of:

Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.

object
active

Weighted workspace slots already held by starting/running agent runs.

integer | null format: int64
cap_usd

The budget cap that refused.

number | null format: double
effective_spend_usd

Effective spend of the refusing budget scope (spend + in-flight reservations).

number | null format: double
max

The workspace’s configured agent-concurrency cap.

integer | null format: int64
provider

The provider whose budget cap refused; absent for the workspace-wide cap.

string | null
required_labels

Runner labels a fail-policy placement required and no runner offered.

Array<string>

Example

{
"code": "not_found"
}

Forbidden

Media typeapplication/json

The canonical JSON body of every error response. Every AppError serializes as this exact shape; code is the generated stable machine-readable vocabulary.

object
cap
One of:

Present only on an MCP budget refusal (429) — the refusing layer + retry hint.

object
layer
required

The refusing layer.

string
limit
required

The layer’s budget.

integer format: int64
retry_after_seconds

Seconds until a retry can pass, or null when it never will for this session.

integer | null format: int64
used
required

Calls already counted in the layer.

integer format: int64
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden license_required license_expired fresh_auth_required source_not_released bad_request unprocessable precondition_failed conflict artifact_staging_busy artifact_staging_store_unavailable intervention_attachment_limit method_not_allowed rate_limited too_many_requests quota_exceeded mcp_cap_exceeded form_schema_invalid autosave_not_offered submit_not_offered idempotency_key_reused response_cap_reached required_missing database_error docker_error vault_error internal_error artifact_frames_unavailable identity_native_custody_unconfigured launch_concurrency_limit launch_already_active launch_not_pending launch_budget_exhausted launch_draining launch_side_effects_disabled launch_dispatch_disabled no_eligible_runner launch_image_unavailable pull_request_no_git_branch pull_request_no_project project_credential_missing project_credential_expired project_credential_revoked project_credential_substitution project_parent_credential_not_current project_lineage_invalid project_binding_missing project_binding_mismatch project_not_found project_capability_not_granted project_capability_unknown project_capabilities_required project_history_is_not_authority project_task_not_found project_task_project_missing project_task_not_active project_native_origin_missing project_broader_scope_required project_system_scope_required project_lifetime_invalid project_lifetime_not_finite project_lifetime_exceeds_maximum project_delegation_exceeds_parent project_renewal_not_allowed project_delegation_widened project_audience_mismatch project_deployment_claim_missing project_authority_disabled project_issuer_not_current project_operation_not_durable project_dispatch_gate_refused
details
One of:

Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.

object
key
required

The entitlement feature key that was hit, e.g. apps.max_count.

string
limit
required

The plan’s limit for this key.

integer format: int64
upgrade_url
required

Where to send the user to upgrade.

string
used
required

Current usage (count or bytes, per the key).

integer format: int64
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
launch
One of:

Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.

object
active

Weighted workspace slots already held by starting/running agent runs.

integer | null format: int64
cap_usd

The budget cap that refused.

number | null format: double
effective_spend_usd

Effective spend of the refusing budget scope (spend + in-flight reservations).

number | null format: double
max

The workspace’s configured agent-concurrency cap.

integer | null format: int64
provider

The provider whose budget cap refused; absent for the workspace-wide cap.

string | null
required_labels

Runner labels a fail-policy placement required and no runner offered.

Array<string>

Example

{
"code": "not_found"
}