Update the caller's profile
Updates the per-caller profile. Both fields are optional; a caller can update one without touching the other. `displayName` is trimmed and capped to 80 characters; an empty string is treated as `null` and clears the saved value. `avatarId` is the 1-based index of the chosen Putty brand avatar (`avatar-1.png` … `avatar-20.png`); values outside the range are rejected with a 400.
Updates the per-caller profile. Both fields are optional; a caller can update one without touching the other. displayName is trimmed and capped to 80 characters; an empty string is treated as null and clears the saved value. avatarId is the 1-based index of the chosen Putty brand avatar (avatar-1.png … avatar-20.png); values outside the range are rejected with a 400.
Authorization
bearerAuth A bearer token. The Account routes accept a Privy access token; the MCP transport accepts an sk- API key issued by POST /account/api-keys.
In: header
Request Body
application/json
The fields to update.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/account/me" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "string", "displayName": "string", "avatarId": 1}Read the caller's profile GET
Returns the per-caller profile: the visitor's display name and the chosen Putty brand avatar. Both fields are nullable; a fresh visitor has not set them yet, and the Settings page renders an empty form in that case.
List your brand kits GET
Returns the caller's brand kits, most recently updated first. Every kit carries its `contrast` report, recomputed on read, so a client can render the per-swatch badge without running the maths itself.