Skip to content

Users API ​

Endpoints ​

text
GET    /api/v1/users/me
PATCH  /api/v1/users/me
GET    /api/v1/users/:id
POST   /api/v1/users/me/emergency-contacts
POST   /api/v1/users/me/relationships

Profile ​

text
GET   /api/v1/users/me
PATCH /api/v1/users/me

PATCH /users/me updates permitted profile fields only. status, account_type and anything verification-related are not writable by the user — a client must not be able to set itself to ACTIVE or VERIFIED.

GET /users/:id returns only the public representation of another user: display name, verification state and rating summary. It never returns mobile numbers, email addresses, date of birth, identity references or journey history.

Emergency contacts ​

text
POST /api/v1/users/me/emergency-contacts
json
{
  "name": "Emergency Contact",
  "mobile": "+971500000000",
  "relationship": "FAMILY"
}

Used by the emergency workflow. A journey with no emergency contact on file is surfaced to the driver before publication.

Relationships ​

text
POST /api/v1/users/me/relationships
json
{
  "relatedUserId": "usr_02...",
  "relationshipType": "CO_WORKER"
}
json
{
  "id": "rel_01...",
  "status": "PENDING"
}

The relationship is recorded as platform data. Whether it satisfies a particular regulatory criterion is determined by the applicable approved rules — the application never decides that a relationship legally qualifies.

Types: FRIEND, RELATIVE, CO_WORKER, SAME_EMPLOYER, SAME_SCHOOL, SAME_COMMUNITY, OTHER.

Verification states: UNVERIFIED, SELF_DECLARED, INVITED, VERIFIED, REJECTED, REVIEW.

A self-declaration is a starting state, not a qualification.

Identity ​

Emirates ID numbers and identity documents are never stored in ordinary user records. Identity information is isolated in user_identities, encrypted, and referenced by hash.

GET /users/:id never returns an identity reference, in any form, to any caller including an administrator.

KHAWI — same route, go together.