Routes
Get Route
Get a single route with operator assignments.
GET /api/routes/:id
Returns a single route with its operator links.
Auth: Required — MANAGE_ROUTES permission
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | UUID | Route ID |
Example
curl https://api.reten.ai/api/routes/dd0e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer <token>" \
-H "x-tenant-id: <tenant-id>"import axios from 'axios';
const response = await axios.get(
'https://api.reten.ai/api/routes/dd0e8400-e29b-41d4-a716-446655440000',
{
headers: {
Authorization: 'Bearer <token>',
'x-tenant-id': '<tenant-id>',
},
}
);Response 200 OK
{
"id": "dd0e8400-e29b-41d4-a716-446655440000",
"name": "North Zone",
"code": "ZONE-NORTH",
"description": "Northern territory coverage",
"isActive": true,
"operatorLinks": [
{
"operatorId": "cc0e8400-e29b-41d4-a716-446655440000",
"role": "LEAD",
"isActive": true,
"operator": {
"id": "cc0e8400-e29b-41d4-a716-446655440000",
"firstName": "John",
"lastName": "Doe",
"type": "SALESMAN"
}
}
]
}