List divisions

The Exact Online companies (divisions) your account can work in.

GET https://cotlet.dev/api/v1/exact-online/divisions

read

Returns every division your account has access to, with its code and name. Use the code as the division parameter of the other tools. When a tool gets no division, it uses the current division of your account.

Parameters

No parameters.

Request

cURL
curl https://cotlet.dev/api/v1/exact-online/divisions \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("exact-online", "list_divisions")
Node.js
const result = await cotlet.call('exact-online', 'list_divisions');
CLI
cotlet call exact-online list_divisions

Example response

JSON

{
  "divisions": [
    {
      "division": 1234567,
      "name": "Example BV",
      "is_current": true
    },
    {
      "division": 1234568,
      "name": "Example Holding BV",
      "is_current": false
    }
  ]
}

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.