/{app_slug}/v1/meAuthUpdate the signed-in EndUser profile
Editable fields: `display_name` and `username`. The username is unique per app (case-insensitive, same rule as signup); sending the current username is a no-op. Usernames cannot be cleared.
Path parameters
app_slug*stringSlug of the app.
Request body
display_namestringNew display name. Pass an empty string to clear it; omit to leave unchanged.
Example: "Ada Lovelace"
usernamestringNew username. Unique per app, case-insensitive. 3-32 chars: letters, numbers, dot, underscore, hyphen. Omit to leave unchanged — cannot be cleared. 409 `USERNAME_TAKEN` when another account in the app holds it.
Example: "jane_doe"
Response · 200 Updated account row.
id*stringEndUser account id (UUID).
app_id*stringOwning app UUID.
seq_id*stringMonotonic per-table sequence id (Postgres int8, serialized as a string).
Example: "42"
username*stringUsername inside the app.
Example: "ada"
display_name*stringHuman-readable name of the account.
Example: "Ada Lovelace"
status*stringAccount status: `active`, `suspended` or `deactivated`.
Example: "active"
locale*stringPreferred locale (BCP 47 tag, e.g. `pt-PT`), or `null`.
Example: "en-GB"
time_zone*stringPreferred time zone (IANA name, e.g. `Europe/Lisbon`), or `null`.
Example: "Europe/Lisbon"
metadata*objectFree-form metadata blob stored on the account row.
created_at*string · date-timeWhen the account was created (ISO 8601).
updated_at*string · date-timeWhen the account was last changed (ISO 8601).
Example
Request
PATCH https://api.auth.productcraft.co/{app_slug}/v1/me
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
{
"display_name": "Ada Lovelace",
"username": "jane_doe"
}Response
{
"id": "string",
"app_id": "string",
"seq_id": "42",
"username": "ada",
"display_name": "Ada Lovelace",
"status": "active",
"locale": "en-GB",
"time_zone": "Europe/Lisbon",
"metadata": {},
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}