Create Ticket
All API requests should contain authorization headers.

Request

1
POST /tickets
Copied!

Query Parameters.

This endpoint doesn't require query parameters.

Request Body

1
{
2
"Attachments": [{
3
"Url": "https://your.attachment.url/filename.png",
4
"Name": "filename.png"
5
}
6
],
7
"CategoryId": 15597,
8
"Cc": ["[email protected]"],
9
"Creator": {
10
"Name": "Bill Smith",
11
"Email": "[email protected]",
12
"Image": null,
13
"PhoneNumber": null
14
},
15
"CustomFields": [{
16
"Id": 42623,
17
"Value": "Oslo"
18
}
19
],
20
"Message": "Hello I want to buy a new car, how can I get a price list?",
21
"Sentiment": "question",
22
"Tags": [],
23
"Title": "New car price list."
24
}
Copied!
Body of request should contain the following model serialized to JSON.
Field
Type
Comments
Attachments
array of Base Attachment models
Ticket Attachments
CategoryId
nullabe integer
Unique Id of category ticket should belong to. If value is null ticket will be created uncategorized
Cc
Array of strings
CC emails of ticket. Team member replies will be sent not only to ticket author but also to these emails
Creator
model contains ticket creator data.
CustomFields
List of models containing custom field ids and values.
Message
string
Ticket message
Sentiment
string
Sentiment of ticket. Can be question, praise, suggestion, complaint.
SourceName
string
Name of ticket source. Can have any string as value (for example page or channel name).
Tags
array of string
Ticket tags' names
Title
string
Title of the ticket

Response

1
{
2
"data": 4484636,
3
"errorCode": -1,
4
"errorText": null
5
}
Copied!
Data field will contain ticket Id (type integer).
Last modified 1yr ago
Copy link