Skip to content

Update your profile

PATCH/v1/me

Updates 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_countrystring

Your 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_idstring

Your VAT number or tax identification number. Trimmed. Send "" to clear it.

max length 64

Response

200

The profile was updated. Returns your full profile.

successbooleanRequired

true when the request succeeded.

messagestringRequired

Human-readable status message.

dataobject
Show attributes
uidstringRequired

Your user ID.

usernamestringRequired

Your username.

emailstringRequired

Your email address.

rolestringRequired

Your platform role. This is user for customers and is unrelated to your workspace roles.

One ofuseradmin

verifiedbooleanRequired

Whether you have verified your email address. Most workspace endpoints return 403 with action: verify_email until you have.

joined_atstring (date-time)Required

When the account was created.

auth_methodstringRequired

How the account signs in, e.g. password or google.

avatar_urlstring

API-relative path of your profile picture, with a cache-busting v parameter. Omitted when you have no picture.

billing_countrystring

Country 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_idstring

Your VAT or tax ID. Omitted when not set.

billing_statusstringRequired

Your 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 objects

Workspaces you are an active member of, newest first. Omitted when you have none.

Show item attributes
uidstringRequired

Unique identifier of the workspace.

namestringRequired

Display name.

slugstringRequired

Slug to send in X-Workspace-Slug.

descriptionstringRequired

Free-text description. Empty when not set.

is_defaultbooleanRequired

Whether this is the owner's default workspace.

rolestring

Your role in the workspace. Omitted when not known in this context.

One ofowneradmindeveloperviewer

permissionsarray of strings

The 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_countintegerRequired

Number of active members. Only filled in on your profile. Other responses return 0.

two_factor_enabledbooleanRequired

Whether authenticator-app two-factor authentication is on.

signed_up_via_referralbooleanRequired

Whether the account was created through a referral link.

referred_by_codestring

The invite code used at signup. Omitted when you were not referred.

Errors

StatusMeaning
400Validation 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.
401The API key is missing, invalid, expired or revoked.
403You cannot access the workspace, your role does not allow this action, or the account is suspended.

Errors use the standard error format.