コンテンツにスキップ
Subako Docs
日本語
Esc
移動開く⌘Jプレビュー

Get the authenticated caller

GET/v1/me
Authorization
AuthorizationBearer token · headerrequired
Responses
200The authenticated caller's identity.
organizationMeOrgBodyrequired
Show properties
handlestringrequired
idstring<uuid>required
namestringrequired
roleOrgRoleBodyrequired
What a member may do in the organization. An admin manages members, invitations, and billing; a member does not.
Allowed:adminmember
userMeUserBodyrequired
Show properties
display_namestring | nullrequired
idstring<uuid>required
primary_emailstring | nullrequired
401Missing, malformed, or invalid bearer token.
errorErrorDetailrequired
What went wrong: a `code` to branch on and a `message` to show. The message is written for a person and may change; the code will not.
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
Try it
Server
Authorization
Request
curl -X GET "https://api.us.cloud.subako.ai/v1/me" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "organization": {
    "handle": "string",
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "name": "string"
  },
  "role": "admin",
  "user": {
    "display_name": "string",
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "primary_email": "string"
  }
}