Guides
Emergency Contacts
Store up to 2 emergency contacts per user for safety during roadside assistance
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Store up to 2 emergency contacts per user for safety during roadside assistance
PUT /api/v1/users/me/emergency-contacts
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json
{
"contacts": [
{
"name": "Mom",
"phone": "+919876543210",
"relationship": "mother"
},
{
"name": "Dad",
"phone": "+919876543211",
"relationship": "father"
}
]
}
{
"data": [
{
"id": "uuid",
"user_id": "uuid",
"name": "Mom",
"phone": "+919876543210",
"relationship": "mother",
"sort_order": 0,
"created_at": "2026-08-04T10:00:00.000Z",
"updated_at": "2026-08-04T10:00:00.000Z"
},
{
"id": "uuid",
"user_id": "uuid",
"name": "Dad",
"phone": "+919876543211",
"relationship": "father",
"sort_order": 1,
"created_at": "2026-08-04T10:00:00.000Z",
"updated_at": "2026-08-04T10:00:00.000Z"
}
]
}
GET /api/v1/users/me/emergency-contacts
Authorization: Bearer ACCESS_TOKEN
{
"data": [
{
"id": "uuid",
"user_id": "uuid",
"name": "Mom",
"phone": "+919876543210",
"relationship": "mother",
"sort_order": 0,
"created_at": "2026-08-04T10:00:00.000Z",
"updated_at": "2026-08-04T10:00:00.000Z"
}
]
}
| Field | Rule |
|---|---|
name | Required, 1–100 characters |
phone | Required, must match +91XXXXXXXXXX |
relationship | Optional, max 50 characters |
contacts array | 1–2 items |
// Save emergency contacts
await http.put(
Uri.parse('$baseUrl/api/v1/users/me/emergency-contacts'),
headers: {
'Authorization': 'Bearer $accessToken',
'Content-Type': 'application/json',
},
body: jsonEncode({
'contacts': [
{'name': 'Mom', 'phone': '+919876543210', 'relationship': 'mother'},
],
}),
);
// Fetch contacts
final response = await http.get(
Uri.parse('$baseUrl/api/v1/users/me/emergency-contacts'),
headers: {'Authorization': 'Bearer $accessToken'},
);
Was this page helpful?
