Individual departments can be retrieved by using the following URL along with the department slug.
| Method | URL |
| GET | https://api.fairwarningsoftware.com/v1.1.1/department/slug/[slug] |
| Status | Response |
| 200 | { "department_id": <department_id>, "company_id": <company_id>, "department_active": <department_active>, "department_name": <department_name>, "department_contact_name": <department_contact_name>, "department_contact_email": <department_contact_email>, "department_copy": <department_copy>, "department_image": { "base" : [url-base], "parts" : { "large" : [url-addition], "medium" : [url-addition], "small" : [url-addition] } } } |
| 401 | {"error":"The API keys provided are invalid."} |
| 403 | {"error":"API keys are missing."} |
| 500 | {"error": <custom error>} |
| Field | Type | Description |
| department_id | int | The unique identifier for the department |
| company_id | int | The ID for your company |
| department_active | bool | Whether the auction is active or not |
| department_name | string | The name of the department |
| department_copy | string | The copy for the department |
| department_image | object | An object containing the base and paths to the different image sizes of the primary image |
| base | string | The base will contain the first part of the URL needed to retrieve the specified image. |
| parts | object | This will contain an array of URL parts for the different sizes of images. |
| large | string | The end of the URL to retrieve a large-sized image. |
| medium | string | The end of the URL to retrieve a medium-sized image. |
| small | string | The end of the URL to retrieve a small-sized image. |
| department_contact_name | string | The name of the contact person for the department |
| department_contact_email | string | The email of the contact person for the department |
| department_contact_title | string | The title of the contact person for the department |
| department_contact_phone | string | The phone number of the contact person for the department |
| department_contact_image | object | An object containing the base and paths to the different image sizes of the contact's image |
| base | string | The base will contain the first part of the URL needed to retrieve the specified image. |
| parts | object | This will contain an array of URL parts for the different sizes of images. |
| large | string | The end of the URL to retrieve a large-sized image. |
| medium | string | The end of the URL to retrieve a medium-sized image. |
| small | string | The end of the URL to retrieve a small-sized image. |