Account

Get the authenticated user's account information including role, tier, and company details.

SDK Usage:

const account = await client.getAccount();
get/api/user/account

Request

Response

Account information

idstring uuid
emailstring email
firstNamestring
lastNamestring
rolestring
tierstring
statusstring
trialActiveboolean
companyIdstring

Example response

{
  "role": "admin",
  "tier": "pro",
  "status": "active"
}

Changes

    • breaking

      the response's body type changed from no type to object for status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      endpoint added