Create a support ticket for service assistance

Create a new support ticket when you need help with your services. The ticket will be sent to the appropriate department based on its content, and you will receive a unique ticket ID to track or reference in future communication.

Headers

Accept Example
Content-Type Example

Body

required
application/json
dept_id integer required
subject string required
body string required
priority integer required
context object
ai_summary string

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/support/tickets
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/support/tickets" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "dept_id": 0,
    "subject": "string",
    "body": "string",
    "priority": 0,
    "context": {
      "service_type": "string",
      "service_id": "string",
      "service_name": "string"
    },
    "ai_summary": "string"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "ticket": {
      "number": 0,
      "id": "string",
      "parent_id": "string",
      "date": "string",
      "lastreply": "string",
      "lastupdate": "string",
      "lastedit": "string",
      "editby": "string",
      "ticket_number": "string",
      "acc_hash": "string",
      "dept_id": "string",
      "client_id": "string",
      "creator_id": "string",
      "name": "string",
      "email": "string",
      "cc": "string",
      "bcc": "string",
      "subject": "string",
      "body": "string",
      "status": "string",
      "priority": "string",
      "flags": 0,
      "tags": [
        "string"
      ],
      "admin_read": "string",
      "client_read": "string",
      "type": "string",
      "request_type": "string",
      "senderip": "string",
      "escalated": "string",
      "sla_id": "string",
      "start_date": "string",
      "resolve_date": "string",
      "owner_id": "string",
      "metadata": [
        "string"
      ],
      "brand_id": "string",
      "deadline": "string",
      "deptname": "string",
      "viewtime": "string",
      "share": "string",
      "share_tag": "string",
      "client_group": "string",
      "status_color": "string",
      "org_deptname": "string",
      "from": "string",
      "subscriptions": [
        "string"
      ],
      "owner": {
        "id": "string",
        "username": "string",
        "firstname": "string",
        "lastname": "string",
        "email": "string",
        "status": "string"
      },
      "replies": [
        "string"
      ],
      "attachments": [
        "string"
      ],
      "notes": [
        "string"
      ]
    }
  }
}
Request Body
{
  "dept_id": 0,
  "subject": "string",
  "body": "string",
  "priority": 0,
  "context": {
    "service_type": "string",
    "service_id": "string",
    "service_name": "string"
  },
  "ai_summary": "string"
}