List organizations

Organizations you belong to, with ID, name and your role in each.

GET https://cotlet.dev/api/v1/hubstaff/organizations

read

Returns every Hubstaff organization your account belongs to, with your role in it. Run it first: the other tools take an organization ID. What your agent can do in an organization follows your role there.

Parameters

No parameters.

Request

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

Example response

JSON

{
  "organizations": [
    {
      "organization_id": 412093,
      "name": "Northwind Studio",
      "role": "owner"
    }
  ]
}

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.