Skip to content

Get the current user

GET
/core/api/users/profile/
curl --request GET \
--url https://app.nebty.de/core/api/users/profile/ \
--header 'Authorization: <Authorization>'

Returns the profile of the user the API key belongs to: id, username, email, account type, plan and two-factor state. A 200 also confirms that the key is valid and active.

Media typeapplication/json

Serializer for user profile information.

object
id
required
string format: uuid
username
required

Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.

string
<= 150 characters /^[\w.@+-]+$/
email
required
string format: email
pending_email
required

Unconfirmed replacement address; the current email remains active.

string format: email
is_active
required
Active

Designates whether this user should be treated as active. Unselect this instead of deleting accounts.

boolean
account_type
required

Multi-brand account tier. Standard users derive their capabilities from the brands they have access to. Partner/Enterprise users have elevated write access across every brand they’re a member of.

  • standard - Standard
  • partner - Partner
  • enterprise - Enterprise
string
Allowed values: standard partner enterprise
display_plan
required
string
nullable
can_access_billing
required
boolean
can_start_customer_view
required
boolean
two_factor_enabled

Enable email-based two-factor authentication for this user. Mandatory for staff and superusers.

boolean
created_at
required
string format: date-time
updated_at
required
string format: date-time
Example
{
"account_type": "standard"
}

The API key is missing, invalid, revoked or belongs to an inactive user.

Media typeapplication/json
object
detail
required
string
Examplegenerated
{
"detail": "example"
}

Too many requests or failed authentication attempts. Try again later.

Media typeapplication/json
object
detail
required
string
Examplegenerated
{
"detail": "example"
}