Docs

Authorize Department

GET /Departments/{departmentId}/authorize

GET/Departments/{departmentId}/authorize

Exchanges the organization token for a department token for the department, sent as the x-Department-Token header. The department id comes from Organizations_GetDepartments. Fails when the department does not exist or belongs to another organization, and (403) when the caller is neither a member of it, nor granted anything there, nor an organization admin.

Path Parameters

FieldTypeRequiredDescription
departmentIduuidRequired

Response

FieldTypeDescription
tokenstring| null