Skip to main content
GET
/
api
/
departments
List all departments in the organization
curl --request GET \
  --url https://your-instance.example.com/api/departments \
  --header 'Authorization: Bearer <token>'
{
  "departments": [
    {
      "_id": "65c1a0b0c0d0e0f0a0b0c0d1",
      "name": "Sales",
      "organizationId": "65a0e0e0e0e0e0e0e0e0e0e0"
    },
    {
      "_id": "65c1a0b0c0d0e0f0a0b0c0d2",
      "name": "Support",
      "organizationId": "65a0e0e0e0e0e0e0e0e0e0e0"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Departments returned

departments
object[]