Users
Update the current user's profile
Changed onpatch/users/me
Request
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Request body
object required
Input for updating the current user's profile
firstName, string
lastName, string
imageUrl, string uri nullable
metadata, object
refreshToken, string
Current refresh token. When provided, new tokens with updated user data will be returned.
Response
OK
object required
Response payload for PATCH /users/me containing the updated user profile.
user, object required
The updated user profile
tokens, object
New JWT tokens with updated user data. Present when refresh token was provided in request.
Example response
{
"user": {
"id": "usr_01jps5cgsd4tzjghtnt45qnhn0",
"createdAt": "2026-12-02T02:43:23.594Z",
"updatedAt": "2026-12-02T02:43:23.596Z",
"email": "test@session.services",
"firstName": "Jay",
"lastName": "McMullen",
"imageUrl": "https://assets.session.services/examples/avatar.jpg",
"tenantId": "tnt_01jqpj2t2kfvmstt6f6tzkbaf2"
}
}Changes
- breaking
the
firstNamerequest property's minLength was increased from0to1 - breaking
the
lastNamerequest property's minLength was increased from0to1 - breaking
the
imageUrl/anyOf[subschema #1]request property format changed from no format touri
- breaking