DeluxHostAPI Reference
Support tickets

Upload a ticket attachment

POST
/v1/tickets/{id}/attachments

Ownership is checked before file access. Send raw file bytes with their actual Content-Type. File size limit 10 MiB, subject to per-ticket and per-account quotas and file validation. messageId must be a public message written by this customer. Without it a customer message is created. Administrative tokens retain customer visibility.

Authorization

apiToken tickets:write
headerAuthorizationBearer <token>

A personal API token: Authorization: Bearer dh_live_…. See Authentication for scopes.

Scope: tickets:write

Path Parameters

id*number

Query Parameters

filename*string
messageId?number

Request Body

body*fileapplication/octet-stream
Formatbinary

Response Body

Completed

application/json
  1. response
id?number
filename?string
contentType?string
sizeBytes?number
curl -X POST 'https://api.deluxhost.net/v1/tickets/0/attachments?filename=string' \  -H "Authorization: Bearer $DELUXHOST_TOKEN" \  -H 'Content-Type: application/octet-stream' \  --data-binary @./file.bin
Example Response
{  "id": 0,  "filename": "string",  "contentType": "string",  "sizeBytes": 0}