GET
/
api
/
departments
Get all departments
curl --request GET \
  --url https://api.atendai.com/api/departments \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "name": "<string>",
    "color": "<string>",
    "companyId": "<string>",
    "createdAt": "<string>",
    "updatedAt": "<string>"
  }
]

Authorizations

Authorization
string
header
required

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

Response

Successful response

id
string

The unique identifier of the department

name
string

The name of the department

color
string

The color associated with the department

companyId
string

The ID of the company to which the department belongs

createdAt
string

The date and time when the department was created

updatedAt
string

The date and time when the department was last updated