Skip to content

Profile

Manage your profile information and preferences.


Gets the current authenticated user’s profile.

Headers:

Authorization: Bearer eyJhbGci...

Response (200 OK):

{
"userId": "usr_abc123",
"email": "john@example.com",
"name": "John Doe",
"avatarUrl": "https://example.com/avatar.jpg",
"role": "member",
"status": "active",
"preferences": {
"theme": "dark",
"timezone": "America/New_York",
"notificationsEnabled": true,
"defaultRegion": "us-east-1"
},
"lastLoginAt": "2024-01-15T10:00:00Z",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-15T10:00:00Z"
}

Updates the current user’s profile.

Request:

{
"name": "John D. Doe",
"avatarUrl": "https://example.com/new-avatar.jpg"
}
FieldTypeRequiredDescription
namestringNoDisplay name
avatarUrlstringNoURL to avatar image

Response (200 OK): Returns updated user profile.


Updates user preferences.

Request:

{
"theme": "dark",
"timezone": "America/Los_Angeles",
"notificationsEnabled": false,
"defaultRegion": "us-west-1"
}
FieldTypeDescription
themestringUI theme: light, dark, or system
timezonestringIANA timezone (e.g., America/New_York)
notificationsEnabledbooleanWhether to receive email notifications
defaultRegionstringDefault region for new databases

Response (200 OK): Returns updated user profile.


ValueDescription
lightLight mode
darkDark mode
systemFollow system preference

Use IANA timezone identifiers:

  • America/New_York - Eastern Time
  • America/Los_Angeles - Pacific Time
  • Europe/London - GMT/BST
  • Europe/Paris - Central European Time
  • Asia/Tokyo - Japan Standard Time
  • Australia/Sydney - Australian Eastern Time

Full list of timezones

Choose from any available region:

  • us-east - Newark, NJ
  • us-west - Fremont, CA
  • eu-west - London, UK
  • eu-central - Frankfurt, Germany
  • And more…

var userResult = await client.Users.GetCurrentUserAsync();
if (userResult.IsSuccess)
{
var user = userResult.Value;
Console.WriteLine($"Name: {user.Name}");
Console.WriteLine($"Email: {user.Email}");
Console.WriteLine($"Theme: {user.Preferences.Theme}");
Console.WriteLine($"Timezone: {user.Preferences.Timezone}");
}

FieldTypeEditableDescription
userIdstringNoUnique user identifier
emailstringNoAccount email (contact support to change)
namestringYesDisplay name
avatarUrlstringYesProfile picture URL
rolestringNoRole in current organization
statusstringNoAccount status
preferencesobjectYesUser preferences
lastLoginAtdatetimeNoLast login timestamp
createdAtdatetimeNoAccount creation date
updatedAtdatetimeNoLast update timestamp

StatusDescription
activeAccount is fully operational
pendingEmail verification pending
suspendedAccount is suspended
deletedAccount has been deleted