Open a ticket
curl --request POST \
--url https://my.server.express/api/v1/client/tickets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subject": "<string>",
"message": "<string>",
"priority": "normal",
"department": "general",
"attachmentIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
subject: '<string>',
message: '<string>',
priority: 'normal',
department: 'general',
attachmentIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://my.server.express/api/v1/client/tickets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/client/tickets"
payload = {
"subject": "<string>",
"message": "<string>",
"priority": "normal",
"department": "general",
"attachmentIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Tickets
Open a ticket
Creates the ticket with your message as its first reply and attaches up to 5 pending uploads. An unknown or inactive
department falls back to general; an unknown priority falls back to normal. Emails you a confirmation and alerts
staff by email and Telegram (failures there never fail the request). 409 if an attachment is no longer pending.
POST
/
v1
/
client
/
tickets
Open a ticket
curl --request POST \
--url https://my.server.express/api/v1/client/tickets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"subject": "<string>",
"message": "<string>",
"priority": "normal",
"department": "general",
"attachmentIds": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
subject: '<string>',
message: '<string>',
priority: 'normal',
department: 'general',
attachmentIds: ['3c90c3cc-0d44-4b50-8888-8dd25736052a']
})
};
fetch('https://my.server.express/api/v1/client/tickets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/client/tickets"
payload = {
"subject": "<string>",
"message": "<string>",
"priority": "normal",
"department": "general",
"attachmentIds": ["3c90c3cc-0d44-4b50-8888-8dd25736052a"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Authorizations
bearerAuthapiToken
Session access token (JWT) from POST /v1/auth/login or /v1/auth/refresh. A session satisfies every API scope.
Body
application/json
Minimum string length:
1Minimum string length:
1Available options:
low, normal, high, critical Department slug, from GET /v1/client/departments.
Your own pending uploads from POST /v1/client/ticket-attachments.
Maximum array length:
5