Profile

Retrieve the current user profile and switch the active account.
View as Markdown

Some user-scoped workflows need to know which account the current user is working in.

The profile endpoints return the current authenticated user and let user credentials set the active account for subsequent user-scoped requests.

Profile operations require a user principal. They are not suitable for account credentials.

Retrieve profile

Retrieve the current authenticated user’s profile.

GET
/me
1curl https://api.hi.umnai.com/me \
2 -H "Authorization: Bearer <token>"
Response
1{
2 "data": [
3 {
4 "id": "ea8b745ead39ec442fc3b4fba359bf98",
5 "name": "Sample Organisation",
6 "status": "ACTIVE",
7 "created_at": "2026-03-11T16:04:19.749000Z",
8 "updated_at": null
9 }
10 ],
11 "pagination": {
12 "total_items": 1,
13 "items_per_page": 10,
14 "current_page": 1,
15 "total_pages": 1
16 }
17}

The response includes the accounts available to the user and the current active account.

Switch active account

Set the active account for the current user.

PATCH
/me
1curl -X PATCH https://api.hi.umnai.com/me \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "active_account_id": "dc66642c4ccd0bea3a6aecc94a618a65"
6}'

Switching the active account changes the account context for subsequent user-scoped requests. Make sure you are using the intended account id.