Users API
Endpoints
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/relationshipsProfile
GET /api/v1/users/me
PATCH /api/v1/users/mePATCH /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
POST /api/v1/users/me/emergency-contacts{
"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
POST /api/v1/users/me/relationships{
"relatedUserId": "usr_02...",
"relationshipType": "CO_WORKER"
}{
"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.
