Profile

Profile API #

Profile API Reference #

Profile #

The Profile endpoint retrieves information about a user profile. Below is the field description for the profile object.

FieldTypeDescription
idstringUnique identifier for the user profile.
usernamestringUser’s display name or username.
emailstringUser’s email address.
avatarstring (URL)URL to the user’s avatar image.
createdstring (datetime)Timestamp when the profile was created.
updatedstring (datetime)Timestamp when the profile was last updated.
rolesarray[string]List of roles assigned to the user, e.g., ["admin", "editor"].
preferencesobjectUser-specific preferences or settings.
preferences.themestringPreferred theme, e.g., dark or light.
preferences.languagestringPreferred language, e.g., en, fr.

Get Profile #

Request #

curl -XGET http://localhost:9000/profile

Response #

{
  "id": "user123",
  "username": "jdoe",
  "email": "jdoe@example.com",
  "avatar": "https://example.com/images/avatar.jpg",
  "created": "2024-01-01T10:00:00Z",
  "updated": "2025-01-01T10:00:00Z",
  "roles": ["admin", "editor"],
  "preferences": {
    "theme": "dark",
    "language": "en"
  }
}
Edit Edit this page