Skip to content

Get current user

GET {{baseUrl}}/me

Returns the signed-in driver’s full profile plus operator/retreat-point context. Source: endpoints/users.ts GET /me.

Response fields:

  • Top-level fields are the driver’s raw user row (id, first_name/last_name, phone, role, tier, transportation, active, active_territory_id, operator_id, self_assign/self_assign_cap, location_status, etc).
  • latest_pin — the most recent SMS verification PIN sent to this phone (internal use).
  • current_operator / root_operator — the operator this driver belongs to (and its top-level parent, if this operator is a fleet sub-operator). Same object unless fleet-scoped.
  • retreat_points — every retreat point under the driver’s operator.
  • fleet_operators_to_operators — fleet-level territory filters; empty unless the operator is a fleet operator.
  • show_fleet / show_blocks — only present for role: "vendor", not relevant for drivers.
Terminal window
curl --request GET 'https://api.firstdelivery.com/api/me'
{
"id": "8e17d5db-da6e-453c-966f-bfc72c125094",
"first_name": "Jane",
"last_name": "Doe",
"phone": "5551234567",
"username": "5551234567",
"role": "runner",
"tier": 1,
"transportation": "Car",
"active": true,
"active_territory_id": "b2b1c1a0-1111-4a2b-9c3d-4e5f6a7b8c9d",
"operator_id": 42,
"self_assign": true,
"self_assign_cap": 3,
"location_status": "always",
"latest_pin": 123456,
"current_operator": {
"id": 42,
"name": "First Delivery",
"default_runner_commission": 0.8,
"runner_pay_interval": "weekly"
},
"root_operator": {
"id": 42,
"name": "First Delivery"
},
"retreat_points": [
{
"id": "c1d2e3f4-1111-4a2b-9c3d-4e5f6a7b8c9d",
"name": "Downtown Hub",
"latitude": 39.95,
"longitude": -75.16
}
],
"fleet_operators_to_operators": []
}