List locations
Locations of your Deputy install with their IDs.
GET https://cotlet.dev/api/v1/deputy/locations
read
Returns every location your account can see, with the location_id the other tools take. Run it first when the prompt names a location by its name. A location is the business site a team works at.
Parameters
No parameters.
Request
curl https://cotlet.dev/api/v1/deputy/locations \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("deputy", "list_locations") const result = await cotlet.call('deputy', 'list_locations'); cotlet call deputy list_locations Example response
{
"locations": [
{
"location_id": 1,
"name": "Harbour Cafe"
},
{
"location_id": 2,
"name": "Harbour Bakery"
}
]
}