List support departments

Retrieve a list of all available support departments for ticket routing. This information is used to allow you to select the correct department when creating a support ticket. The endpoint also returns department IDs needed for subsequent API calls.

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data object
GET https://cloud.hostup.se/api/support/departments
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/support/departments" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "departments": [
      {
        "id": 0,
        "name": "string",
        "description": "string",
        "email": "string",
        "visible": true
      }
    ]
  }
}