Skip to main content
Bot is allowed on POST /api/users/get via the Authorization: <user_id> <token> header. See the Bots guide.
The Users API lets you fetch the public profile of any Clody account — including your own. You identify the user by either their username or their numeric ID, and Clody returns everything you need to render their profile card: display name, avatar, accent color, status text, bio, and your relationship with them. You must be logged in with a verified email address to use this endpoint.

POST /api/users/get

Looks up a single user profile by username or numeric ID.
Pass either username or id — you do not need both. If you include both, id takes precedence.
The special ID 0 always returns the built-in system user Clody regardless of any other parameters. This account is always shown as online. Note that the system user response omits the thought, color, and description fields — only username, id, display_name, is_friend, is_enemy, online, and avatar are returned.

Request body

string
The exact username of the user to look up. Case-sensitive.
integer
The numeric ID of the user to look up. Use 0 to retrieve the system user Clody.

Response

200 OK:
string
The user’s unique username.
integer
The user’s numeric account ID. 0 for the system user Clody.
string
The user’s chosen display name. May differ from username.
boolean
true if this user is in your friends list.
boolean
true if you have blocked this user.
boolean
true if the user currently has an active Socket.IO connection. Always true for the system user.
string | null
URL of the user’s avatar image, or null if none is set.
string
The user’s current short status or quote (up to 100 characters). Empty string if not set.
string
The user’s accent color as a hex string (e.g. "#a78bfa" or "#f0f"). Empty string if not set.
string
The user’s bio or profile description (up to 300 characters). Empty string if not set.

Error codes

If a user sets accepts_friend_requests to false in their privacy settings, their profile becomes private. You will receive a 403 when attempting to look them up unless you are already friends or you are looking up your own account.