Get the current user
const url = 'https://app.nebty.de/core/api/users/profile/';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Serializer for user profile information.
object
Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
Unconfirmed replacement address; the current email remains active.
Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
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- Standardpartner- Partnerenterprise- Enterprise
Enable email-based two-factor authentication for this user. Mandatory for staff and superusers.
Example
{ "account_type": "standard"}The API key is missing, invalid, revoked or belongs to an inactive user.
object
Examplegenerated
{ "detail": "example"}Too many requests or failed authentication attempts. Try again later.
object
Examplegenerated
{ "detail": "example"}