get https://subdomain.workable.com/spi/v3/departments
Returns a collection of your account departments. Required scope: r_account
. Accessible with all token types.
This endpoint uses
r_account
scope. This is a new scope that is not currently supported by access tokens already used for ATS related endpoints. You need to contact support to enable it for your account tokens.
Integrating with Partner tokens through OAuth 2.0 works out of the box
Results
Calling the /departments
endpoint will return a collection of the defined departments
for the account. An example of the response follows:
[
{
"id": "3ff4d641",
"name": "Commercial",
"parent_id": null
},
{
"id": "3ff4d642",
"name": "Customer Success",
"parent_id": "3ff4d641"
},
{
"id": "3ff4d643",
"name": "Support",
"parent_id": "3ff4d642"
},
{
"id": "3ff4d644",
"name": "Marketing",
"parent_id": "3ff4d641"
},
{
"id": "3ff4d645",
"name": "Content",
"parent_id": "3ff4d644"
},
{
"id": "3ff4d646",
"name": "Sales",
"parent_id": "3ff4d641"
},
{
"id": "3ff4d647",
"name": "Account Executive",
"parent_id": "3ff4d646"
},
{
"id": "3ff4d648",
"name": "Business Development",
"parent_id": "3ff4d646"
},
{
"id": "3ff4d649",
"name": "Engineering",
"parent_id": null
},
{
"id": "3ff4d64a",
"name": "Finance",
"parent_id": null
},
{
"id": "3ff4d64b",
"name": "HR",
"parent_id": null
}
]
Each department
will have the following keys:
key | type | description |
---|---|---|
id | string | The department identifier. Note that this id should be used when creating or updating an employee using the POST and PATCH endpoints respectively. |
name | string | The name of the department |
parent_id | string | The department identifier of the parent department or null if it is a top level department |
archived | boolean | Indicates weather the department has been archived or not |