/v1/meUpdates your billing details. Only the fields you send are changed. Send an empty string to clear a field.
Your billing country decides the tax applied to your invoices and the currency amounts are displayed and charged in. A tax ID marks you as a business customer and is printed on your invoices.
Returns your full profile, the same shape as Get your profile.
Authentication
Send your API key as Authorization: Bearer <token>.
Request body
billing_countrystringYour tax residence as a 2-letter ISO 3166-1 country code. Trimmed and upper-cased. Send "" to clear it, in which case the country detected at signup is used again.
tax_idstringYour VAT number or tax identification number. Trimmed. Send "" to clear it.
max length 64
Response
The profile was updated. Returns your full 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 |
|---|---|
400 | Validation failed: invalid request (malformed JSON or a field is not a string), billing_country must be a 2-letter ISO country code, or tax_id is too long. |
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.