Skip to main content
GET
List departments
Version:v4

Authorizations

Authorization
string
header
required

Sesame Public API consumer token (Authorization: Bearer )

Query Parameters

page
integer
default:1
limit
integer
default:20
Required range: x <= 300
name
string

Departments whose name contains this text, case-insensitive.

departmentIds
string<uuid>[]

Comma-separated department ids. An id that does not exist in the company is ignored.

archived
enum<string>

true or 1: only archived. false or 0: only not archived. Absent: both.

Available options:
true,
false,
1,
0
createdFrom
string<date-time>

Created at or after this ISO 8601 date-time with zone. Encode + as %2B.

createdTo
string<date-time>

Created at or before this ISO 8601 date-time with zone. Encode + as %2B.

updatedFrom
string<date-time>

Updated at or after this ISO 8601 date-time with zone. Encode + as %2B.

updatedTo
string<date-time>

Updated at or before this ISO 8601 date-time with zone. Encode + as %2B.

sort
string
default:createdAt

Comma-separated fields: name, createdAt, updatedAt, archivedAt. A leading - sorts descending. Ties are broken by id ascending.

Response

The paginated departments.

data
object[]
meta
object