API

Me

The calling user: read or change the profile, choose the active organization, or request account deletion (actions).

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/me/account_deletion create Success
POST /api/v1/me/app_promotion create Updated app promotion eligibility
GET /api/v1/me load Current authenticated session
GET /api/v1/me/account_deletion load Current request or null when none exists
GET /api/v1/me/landing load Final organization or project destination
GET /api/v1/me/workspace_suggestion load Suggested workspace name and address
DELETE /api/v1/me/profile_image remove Authenticated session
PATCH /api/v1/me update Updated authenticated session
PUT /api/v1/me/active_organization update Active organization updated
PUT /api/v1/me/profile_image update Authenticated session

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

me, err := client.Me(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(me)
updated, err := client.Me(nil).Update(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)

Lua

Construct client as shown in the Lua setup, then call the operations:

local me, err = client:Me():load({ id = "example_id" })
local updated, err = client:Me():update({ id = "example_id" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$me = $client->Me()->load(["id" => "example_id"]);
$updated = $client->Me()->update(["id" => "example_id"]);

Python

Construct client as shown in the Python setup, then call the operations:

me = client.Me().load({"id": "example_id"})
updated = client.Me().update({"id": "example_id"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

me = client.Me.load({ "id" => "example_id" })
updated = client.Me.update({ "id" => "example_id" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const me = await client.Me().load({ id: "example_id" })
const updated = await client.Me().update({ id: "example_id" })

Fields

Field Type Required Description
active_organization any Yes Active Organization
analytics_distinct_id string No Analytics Distinct Id
analytics_internal boolean Yes Staff, team or test account; its product analytics are marked internal.
api_base_url string No Api Base Url
api_token string No Api Token
app_promotion object Yes App Promotion
commit_author_email string Yes Commit Author Email
email string Yes Email
enabled_features array Yes Enabled Features
github_pr_user_authorization_connected boolean Yes Github Pr User Authorization Connected
github_pr_user_authorization_login one,string,null Yes Github Pr User Authorization Login
github_prs_authored_by_change_author boolean Yes Github Prs Authored By Change Author
id string Yes Id
impersonation one,object,null No Impersonation
name one,string,null Yes Name
next_path string No Present on a sign-in that created the person's first workspace; its setup page, where they go next.
onboarding object Yes V2 agent onboarding progress.
openai_sign_in_connected boolean No Openai Sign In Connected
openai_sign_in_enabled boolean No Openai Sign In Enabled
organizations array Yes Organizations
pending_organization_invitation_count integer Yes Pending Organization Invitation Count
pending_organization_invitation_count_label string Yes Pending Organization Invitation Count Label
picture_url one,string,null Yes Picture Url
superadmin boolean No Present and true only for Composal staff superadmins, not while impersonating.
time_zone one,string,null No The IANA zone the person chose for their agents' replies; null follows their app.

create

POST /api/v1/me/account_deletion

Operation ID: post_api_v1_me_account_deletion.

Authentication: bearer token (bearerAuth).

Request body

application/json

Property Type Required Description
confirmation string Yes

Responses

200: Success

application/json

The response is object.

202: Durable deletion request recorded

application/json

Property Type Required Description
request null or object Yes
401: Sign-in required
403: Runtime, system or impersonation credentials cannot request deletion
404: Not found
422: Explicit confirmation required
502: Bad gateway

POST /api/v1/me/app_promotion

Operation ID: api_v1_me_app_promotion.

Authentication: bearer token (bearerAuth).

Request body

application/json

Property Type Required Description
action_name enum: desktop_installed, mobile_installed, request_ios_testing, request_android_testing Yes

Responses

200: Updated app promotion eligibility

application/json

Property Type Required Description
android_testing_requested boolean Yes
desktop boolean Yes Whether to offer the desktop app.
ios_testing_requested boolean Yes
mobile boolean Yes Whether to offer mobile testing.
401: Authentication required
403: Forbidden
404: Not found
422: Invalid promotion action
502: Bad gateway

load

GET /api/v1/me

Operation ID: api_v1_me.

Authentication: bearer token (bearerAuth).

Responses

200: Current authenticated session

application/json

Property Type Required Description
active_organization object or null Yes
api_base_url string (uri) No
api_token string No
app_promotion object Yes
app_promotion.android_testing_requested boolean Yes
app_promotion.desktop boolean Yes Whether to offer the desktop app.
app_promotion.ios_testing_requested boolean Yes
app_promotion.mobile boolean Yes Whether to offer mobile testing.
email string (email) Yes
github_pr_user_authorization_connected boolean Yes
github_pr_user_authorization_login string Yes
github_prs_authored_by_change_author boolean Yes
id string Yes
name string Yes
onboarding object Yes V2 agent onboarding progress. Each finished step pays its reward_cents once; an invited person finishing every step pays the inviter referral.reward_cents.
onboarding.claimed_count integer Yes Steps paid so far.
onboarding.earned_cents integer Yes Credit paid so far
onboarding.finished boolean Yes Every step is paid.
onboarding.organization object,null Yes The workspace where steps count and credit is paid; null when the person belongs to none.
onboarding.organization.name string Yes
onboarding.organization.slug string Yes
onboarding.referral object Yes
onboarding.referral.open boolean Yes Whether more referrals can still pay.
onboarding.referral.reward_cents integer Yes
onboarding.referral.rewarded_count integer Yes
onboarding.remaining_reward_cents integer Yes Credit the unpaid steps still pay.
onboarding.steps array of object Yes
onboarding.steps[].key enum: subscription, integration, github, automation, pull_request, call Yes
onboarding.steps[].reward_cents integer Yes Credit this step pays.
onboarding.steps[].state enum: todo, claimable, claimed Yes
onboarding.total_reward_cents integer Yes Credit for paying every step.
onboarding.visible boolean Yes Whether to show the onboarding card.
openai_sign_in_connected boolean No
openai_sign_in_enabled boolean No
organizations array of object Yes
organizations[].activated_products array of enum: transcripts, vcs Yes Products this organization has activated (PRD 144). Activation is what makes a product's surfaces visible; it is neither permission nor entitlement.
organizations[].agents_only boolean No Whether this organization uses the agents-only interface; older responses may omit this value.
organizations[].can_activate_products boolean Yes Whether the current user may activate a product for this organization: the organization-admin rule the activation endpoint enforces.
organizations[].created_at string (date-time) Yes
organizations[].created_at_label string Yes
organizations[].github_prs_authored_by_change_author boolean Yes
organizations[].id string Yes
organizations[].logo_url string Yes
organizations[].member_count integer Yes
organizations[].name string Yes
organizations[].pending_invitation_count integer Yes
organizations[].personal boolean Yes
organizations[].repository_count integer Yes
organizations[].role string Yes
organizations[].sandbox_region enum: us-was-1, us-pdx-1, eu-lon-1, eu-fra-1, auto Yes
organizations[].shared_agent_personal_accounts_enabled boolean No Whether a shared agent may use one person's account for everyone who chats with it. Present only where agent integrations are on.
organizations[].slug string Yes
organizations[].source_control_providers array of enum: github, gitlab No Connected source control providers for this organization. Missing values mean no providers are known.
organizations[].source_ui_enabled boolean No Organization-scoped Source workspace rollout; missing values mean disabled.
organizations[].timezone string Yes Default IANA timezone for organization-local schedules such as nightly dreaming.
organizations[].updated_at string (date-time) Yes
organizations[].updated_at_label string Yes
organizations[].verify_pr_scenario_writing_enabled boolean Yes
pending_organization_invitation_count integer Yes
pending_organization_invitation_count_label string Yes
picture_url string Yes
superadmin boolean No
time_zone string No The IANA zone the person chose for their agents' replies; null follows their app.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/me/account_deletion

Operation ID: api_v1_me_account_deletion.

Authentication: bearer token (bearerAuth).

Responses

200: Current request or null when none exists

application/json

Property Type Required Description
request null or object Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/me/landing

Operation ID: api_v1_me_landing.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
organization_slug query string No Resolve a workspace without changing the active organization. Defaults to the active workspace.

Responses

200: Final organization or project destination

application/json

Property Type Required Description
path string Yes
401: Authentication required
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

GET /api/v1/me/workspace_suggestion

Operation ID: api_v1_me_workspace_suggestion.

Authentication: bearer token (bearerAuth).

Responses

200: Suggested workspace name and address

application/json

Property Type Required Description
name string Yes
slug string Yes
401: Authentication required
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

remove

DELETE /api/v1/me/profile_image

Operation ID: delete_api_v1_me_profile_image.

Authentication: bearer token (bearerAuth).

Responses

200: Authenticated session

application/json

The response is object and object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

update

PATCH /api/v1/me

Operation ID: patch_api_v1_me.

Authentication: bearer token (bearerAuth).

Request body

application/json

The request body is object.

Responses

200: Updated authenticated session

application/json

Property Type Required Description
active_organization object or null Yes
api_base_url string (uri) No
api_token string No
app_promotion object Yes
app_promotion.android_testing_requested boolean Yes
app_promotion.desktop boolean Yes Whether to offer the desktop app.
app_promotion.ios_testing_requested boolean Yes
app_promotion.mobile boolean Yes Whether to offer mobile testing.
email string (email) Yes
github_pr_user_authorization_connected boolean Yes
github_pr_user_authorization_login string Yes
github_prs_authored_by_change_author boolean Yes
id string Yes
name string Yes
onboarding object Yes V2 agent onboarding progress. Each finished step pays its reward_cents once; an invited person finishing every step pays the inviter referral.reward_cents.
onboarding.claimed_count integer Yes Steps paid so far.
onboarding.earned_cents integer Yes Credit paid so far
onboarding.finished boolean Yes Every step is paid.
onboarding.organization object,null Yes The workspace where steps count and credit is paid; null when the person belongs to none.
onboarding.organization.name string Yes
onboarding.organization.slug string Yes
onboarding.referral object Yes
onboarding.referral.open boolean Yes Whether more referrals can still pay.
onboarding.referral.reward_cents integer Yes
onboarding.referral.rewarded_count integer Yes
onboarding.remaining_reward_cents integer Yes Credit the unpaid steps still pay.
onboarding.steps array of object Yes
onboarding.steps[].key enum: subscription, integration, github, automation, pull_request, call Yes
onboarding.steps[].reward_cents integer Yes Credit this step pays.
onboarding.steps[].state enum: todo, claimable, claimed Yes
onboarding.total_reward_cents integer Yes Credit for paying every step.
onboarding.visible boolean Yes Whether to show the onboarding card.
openai_sign_in_connected boolean No
openai_sign_in_enabled boolean No
organizations array of object Yes
organizations[].activated_products array of enum: transcripts, vcs Yes Products this organization has activated (PRD 144). Activation is what makes a product's surfaces visible; it is neither permission nor entitlement.
organizations[].agents_only boolean No Whether this organization uses the agents-only interface; older responses may omit this value.
organizations[].can_activate_products boolean Yes Whether the current user may activate a product for this organization: the organization-admin rule the activation endpoint enforces.
organizations[].created_at string (date-time) Yes
organizations[].created_at_label string Yes
organizations[].github_prs_authored_by_change_author boolean Yes
organizations[].id string Yes
organizations[].logo_url string Yes
organizations[].member_count integer Yes
organizations[].name string Yes
organizations[].pending_invitation_count integer Yes
organizations[].personal boolean Yes
organizations[].repository_count integer Yes
organizations[].role string Yes
organizations[].sandbox_region enum: us-was-1, us-pdx-1, eu-lon-1, eu-fra-1, auto Yes
organizations[].shared_agent_personal_accounts_enabled boolean No Whether a shared agent may use one person's account for everyone who chats with it. Present only where agent integrations are on.
organizations[].slug string Yes
organizations[].source_control_providers array of enum: github, gitlab No Connected source control providers for this organization. Missing values mean no providers are known.
organizations[].source_ui_enabled boolean No Organization-scoped Source workspace rollout; missing values mean disabled.
organizations[].timezone string Yes Default IANA timezone for organization-local schedules such as nightly dreaming.
organizations[].updated_at string (date-time) Yes
organizations[].updated_at_label string Yes
organizations[].verify_pr_scenario_writing_enabled boolean Yes
pending_organization_invitation_count integer Yes
pending_organization_invitation_count_label string Yes
picture_url string Yes
superadmin boolean No
time_zone string No The IANA zone the person chose for their agents' replies; null follows their app.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

PUT /api/v1/me/active_organization

Operation ID: api_v1_me_active_organization.

Authentication: bearer token (bearerAuth).

Request body

application/json

Property Type Required Description
organization_id string Yes

Responses

200: Active organization updated

application/json

Property Type Required Description
active_organization object or null Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway

PUT /api/v1/me/profile_image

Operation ID: api_v1_me_profile_image.

Authentication: bearer token (bearerAuth).

Request body

application/json

The request body is object.

multipart/form-data

Property Type Required Description
image string (binary) Yes

Responses

200: Authenticated session

application/json

The response is object and object.

401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway