Delivery API

Locations and points

Register the places your deliveries start and end.

Markdown

Deliveries start and end at places. Register them once and refer to them by id.

Partner

POST /partners creates your account for your key, once: just a name.

Locations

A location is the area your bots serve: a name, a 3 to 4 character short_name, a country and a polygon (POST /locations).

  • polygon.coordinates is a flat list of [lng, lat] pairs, not GeoJSON's nested rings.
  • GET /locations/{id}/paths returns the sidewalks and crossings bots drive there, as GeoJSON.

Points

A point is a named place in a location: a kitchen, a store, an entrance (POST /points).

  • Tag kitchens and stores pickup, drop places dropoff. Only pickup points report kitchen availability.
  • Give each one your own external_id, so you never have to store ours.

Three ways to name a place

A delivery's pickup and dropoff take any of these:

FormExample
Our id{ "id": "V1StGXR8Z5jdHi6BmyT2q" }
Your id{ "external_id": "kitchen-north" }
Coordinates{ "lat": 4.6602, "lng": -74.0521 }
  • With an id, name, contact and azimuth you send override the point's for that delivery.
  • Coordinates can be linked to a registered point with matching: exact (within 5 m), snap (nearest within radius meters, use its coordinates) or associate (nearest within radius, keep yours). Add required: true to fail when nothing matches.

Bots

GET /bots lists the bots that serve you. can_take_delivery says whether a new delivery could start on one right now. GET /bots/{id} adds its position, battery and door.