Skip to main content
GET
Get Self

Permissions

No permission is required. Any valid v3 credential can call this endpoint to discover its own identity: service users, personal access token (PAT) users, Devin sessions, and Windsurf sessions. The response shape depends on the caller’s principal_type (service_user, pat_user, devin_brain, or windsurf_session).

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Response

Successful Response

Identity information for an authenticated service user.

principal_type
string
required
Allowed value: "service_user"
service_user_id
string
required
service_user_name
string
required
org_id
string | null