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
curl https://cotlet.dev/api/v1/deputy/locations \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("deputy", "list_locations")
Node.js
const result = await cotlet.call('deputy', 'list_locations');
CLI
cotlet call deputy list_locations

Example response

JSON

{
  "locations": [
    {
      "location_id": 1,
      "name": "Harbour Cafe"
    },
    {
      "location_id": 2,
      "name": "Harbour Bakery"
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.