Delivery API
Locations and points
Register the places your deliveries start and end.
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.coordinatesis a flat list of[lng, lat]pairs, not GeoJSON's nested rings.GET /locations/{id}/pathsreturns 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 placesdropoff. Onlypickuppoints 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:
| Form | Example |
|---|---|
| Our id | { "id": "V1StGXR8Z5jdHi6BmyT2q" } |
| Your id | { "external_id": "kitchen-north" } |
| Coordinates | { "lat": 4.6602, "lng": -74.0521 } |
- With an id,
name,contactandazimuthyou send override the point's for that delivery. - Coordinates can be linked to a registered point with
matching:exact(within 5 m),snap(nearest withinradiusmeters, use its coordinates) orassociate(nearest withinradius, keep yours). Addrequired: trueto 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.