/v1/meReturns the account the API key belongs to, including the workspaces you are an active member of and your role and permissions in each.
billing_country is the country used for tax: the value you set with
Update your profile, or the country detected when you
signed up if you never set one.
Authentication
Send your API key as Authorization: Bearer <token>.
Response
Your profile.
successbooleanRequiredtrue when the request succeeded.
messagestringRequiredHuman-readable status message.
dataobjectShow attributesHide attributes
uidstringRequiredYour user ID.
usernamestringRequiredYour username.
emailstringRequiredYour email address.
rolestringRequiredYour platform role. This is user for customers and is unrelated to your workspace roles.
One ofuseradmin
verifiedbooleanRequiredWhether you have verified your email address. Most workspace endpoints return 403 with action: verify_email until you have.
joined_atstring (date-time)RequiredWhen the account was created.
auth_methodstringRequiredHow the account signs in, e.g. password or google.
avatar_urlstringAPI-relative path of your profile picture, with a cache-busting v parameter. Omitted when you have no picture.
billing_countrystringCountry used for tax (ISO 3166-1 alpha-2). Your declared billing country, or the country detected at signup when you have not set one. Omitted when neither is known.
tax_idstringYour VAT or tax ID. Omitted when not set.
billing_statusstringRequiredYour payment standing. When it is not active, creating new paid resources returns
402 with action: past_due, as do starting VMs and building, redeploying or
restarting deployments. While suspended, your VMs, databases, Kubernetes clusters and
deployments are powered off; storage is kept. Once the account is active again,
everything suspension powered off is started again automatically within about a
minute (resources you had stopped yourself stay stopped).
One ofactivepast_duesuspendedterminated
workspacesarray of objectsWorkspaces you are an active member of, newest first. Omitted when you have none.
Show item attributesHide item attributes
uidstringRequiredUnique identifier of the workspace.
namestringRequiredDisplay name.
slugstringRequiredSlug to send in X-Workspace-Slug.
descriptionstringRequiredFree-text description. Empty when not set.
is_defaultbooleanRequiredWhether this is the owner's default workspace.
rolestringYour role in the workspace. Omitted when not known in this context.
One ofowneradmindeveloperviewer
permissionsarray of stringsThe permissions your role grants. Omitted when not known in this context.
One ofworkspace.readworkspace.manageresource.writeruntime.connectsecrets.readsecrets.managemembers.manageaudit.readbilling.readbilling.manageworkspace.transferworkspace.delete
member_countintegerRequiredNumber of active members. Only filled in on your profile. Other responses return 0.
two_factor_enabledbooleanRequiredWhether authenticator-app two-factor authentication is on.
signed_up_via_referralbooleanRequiredWhether the account was created through a referral link.
referred_by_codestringThe invite code used at signup. Omitted when you were not referred.
Errors
| Status | Meaning |
|---|---|
401 | The API key is missing, invalid, expired or revoked. |
403 | You cannot access the workspace, your role does not allow this action, or the account is suspended. |
Errors use the standard error format.