Skip to main content

Look up the zone serving points

POST /v1/service_zones/lookup

For each point, returns the highest-priority enabled zone that contains it.

Authentication​

Send a token issued in the Zoopit dashboard as Authorization: Bearer <token>.

Request body​

FieldTypeRequired
ownerstringyes
pointsarray of objectyes
atstring
group_idstring

Responses​

200​

resource: array of object

FieldTypeRequired
idstringyes
zone_idnull or stringyes
codenull or stringyes
depot_idnull or stringyes
group_idnull or stringyes

Example​

curl -X POST 'https://routes-api.cloud.zoopit.no/v1/service_zones/lookup'
-H 'Authorization: Bearer <token>'
-H 'Content-Type: application/json'
-d '{ ... }'

Try it in the interactive Routes API reference.

Field descriptions, guides and worked examples are in the full reference, available to customers in the Zoopit dashboard under Accounts → Developer.