Skip to main content

Get Profile

curl -X GET "https://panel.example.com/api/account/profile" \
  -H "Authorization: Bearer YOUR_API_KEY"
Retrieve the authenticated user’s profile information.

Response

data
object
The user profile object.
{
  "data": {
    "id": "clx1a2b3c4d5e6f7g8h9i0j1",
    "username": "johndoe",
    "email": "[email protected]",
    "role": "user"
  }
}

Update Profile

curl -X PUT "https://panel.example.com/api/account/profile" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "username": "newusername",
    "email": "[email protected]"
  }'
Update the authenticated user’s profile information.

Request Body

username
string
New username for the account. Must be between 3 and 191 characters.
email
string
New email address for the account. Must be a valid email and under 191 characters.
If email configuration is enabled, a verification email will be sent and the change will be pending until verified.
At least one field (username or email) must be provided.

Response

data
object
The updated user profile object.
{
  "data": {
    "id": "clx1a2b3c4d5e6f7g8h9i0j1",
    "username": "newusername",
    "email": "[email protected]",
    "role": "user"
  }
}

Error Codes

409
error
Username is already in use by another account.
400
error
Invalid request body or validation failed.
404
error
User not found.

Build docs developers (and LLMs) love