Get user locations
This endpoint returns a list of an organization's locations.
Last updated 1 year ago
Successful operation
const response = await fetch('https://api.getdor.com/dtm-api/v1/locations', { method: 'GET', headers: { "Authorization": "basic <token>" }, }); const data = await response.json();
{ "data": [ { "id": "loc_xxxxx", "name": "Mike's Bikes", "type": "Residential", "address": { "name": "Mike's Bikes Address", "address_1": "1234 Demo Street", "address_2": "text", "city": "San Francisco", "administrative_area": "CA", "country": "United States", "postal_code": 94110 }, "organization": { "id": 123, "name": "lovely_aquamarine_bonobo" } } ] }