Get the current user and their team memberships
Changed onRequest
- Base URLhttps://api.session.services
- AuthAPI key in header x-tenant-id
Response
OK
Response payload for GET /users/me providing the current user, tenant admin status, and team memberships.
User entity containing profile and audit information scoped to a specific tenant
Whether the current user has admin privileges for the tenant
All team memberships for the current user within this tenant.
Example response
{
"user": {
"id": "usr_01k5hbpkfje048zccqmqfhjpep",
"createdAt": "2025-09-19T16:07:46.418Z",
"updatedAt": "2025-09-19T16:07:46.418Z",
"email": "j@1f.io",
"firstName": "Jay",
"lastName": "McMullen",
"imageUrl": "https://assets.session.services/examples/avatar.jpg"
},
"isAdmin": true,
"members": [
{
"id": "mbr_01jps5cgsec5ge0b1bxa6gzkkk",
"createdAt": "2025-09-25T03:25:46.080Z",
"updatedAt": "2025-09-25T03:25:46.080Z",
"teamId": "tem_01jqpjksnsen9vprw95et60t2m",
"userId": "usr_01k5hbpkfje048zccqmqfhjpep",
"user": {
"id": "usr_01k5hbpkfje048zccqmqfhjpep",
"email": "j@1f.io",
"firstName": "Jay",
"lastName": "McMullen",
"imageUrl": "https://assets.session.services/examples/avatar.jpg"
},
"permissions": [
"*"
],
"isOwner": true,
"tenantId": "tnt_01abc123"
}
]
}Changes
- info
the
members/items/access/promoterIds/anyOf[subschema #1]/itemsresponse's property pattern^pmt_[0-9a-z]{26}$was added for the status - info
the
members/items/idresponse's property pattern^mbr_[0-9a-z]{26}$was added for the status - info
the
members/items/permissions/itemsresponse's property pattern^-?(?:\*|(?:[a-z][a-z0-9-]*)(?:\.[a-z][a-z0-9-]*)*(?:\.\*|\.bypass|\.[a-z]{3}_[0-9a-z]{26})?)$was added for the status
4 more changes in this revision
- info