Skip to content

Get retreat points

GET {{baseUrl}}/retreat_points

Lists retreat points. Source: endpoints/retreat_points.ts GET /retreat_points — for role: runner this is scoped to the driver’s active territory (findByTerritory()); admins get every retreat point on the operator instead.

Response fields (array of RetreatPoint): id, name, latitude/longitude, territory_id, transport_type (car|bike), internal (staging-only, not customer-visible), timezone.

Terminal window
curl --request GET 'https://api.firstdelivery.com/api/retreat_points'
[
{
"id": "c1d2e3f4-1111-4a2b-9c3d-4e5f6a7b8c9d",
"name": "Downtown Hub",
"latitude": 39.95,
"longitude": -75.16,
"territory_id": "b2b1c1a0-1111-4a2b-9c3d-4e5f6a7b8c9d",
"transport_type": "car",
"internal": false,
"timezone": "America/New_York"
}
]