Get all departments of a company

GET {{baseUrl}}/v1/companies/:company_uuid/departments

Get all of the departments for a given company with the employees and contractors assigned to that department.

scope: departments:read

HEADERS

KeyDatatypeRequiredDescription
X-Gusto-API-VersionstringDetermines the date-based API version associated with your API call. If none is provided, your application's minimum API version is used.
Acceptstring

RESPONSES

status: OK

[{"uuid":"56260b3d-c375-415c-b77a-75d99f717193","company_uuid":"7087a288-8349-4632-b92e-bc94fb79f29e","title":"Stage Hand","version":"d90440dd464601d1c8f4e9e240dfb7a6","employees":[{"uuid":"41199375-a999-4414-9f40-d9bf596b134d"}],"contractors":[]},{"uuid":"ec5c8a85-3233-4f39-a9f5-fb1ab7b5f5f3","company_uuid":"7087a288-8349-4632-b92e-bc94fb79f29e","title":"Actors","version":"34f39a30b45d077cb83aed2df4810d74","employees":[{"uuid":"7ee4aca1-814b-4034-b0f8-07f93cc679d1"}],"contractors":[]},{"uuid":"1802465d-4f68-4865-920c-1307ab095f12","company_uuid":"7087a288-8349-4632-b92e-bc94fb79f29e","title":"Band","version":"1fe3076d35ef7c97d0ae68c5f4df0acd","employees":[{"uuid":"a73955be-c009-44dc-915e-6246e2bdedbb"}],"contractors":[{"uuid":"3488549f-60e4-494f-a34a-9d8aad3aabf5"}]}]