POST/desk/api/v2/tickets.json
Create a new ticket.
Body Params
- Name
agent- Type
- object
- Name
bcc- Type
- array
- Description
- List of BCC for the initial message
- Name
cc- Type
- array
- Description
- List of CC for the initial message
- Name
customer- Type
- object
- Description
- Customer ID or Email is required, but not both.
- Name
customfields- Type
- array
- Description
- The list of custom fields for available to the ticket
- Name
editMethod- Type
- string
- Description
- The default input method for editing tickets. Options are html and markdown.
- Name
email- Type
- string
- Description
- The email of a customer that should be created and then associated with the ticket. DEPRECATED please use customer.email
- Name
files- Type
- array
- Description
- List of attachment
- Name
fromThreadId- Type
- integer
- Description
- When set, this message body and customer will be used to create this ticket, FromTicketID is also required if ticket is archived
- Name
fromTicketId- Type
- integer
- Description
- When set, the message body and customer from the thread specified in FromThreadID will be used to create this ticket, this field is only required if ticket is archived
- Name
inbox- Type
- object
- Name
message- Type
- string
- Description
- The ticket's initial message
- Name
notifyCustomer- Type
- boolean
- Description
- Whether to notify the customer when an agent creates a ticket on behalf of the customer
- Name
parent- Type
- object
- Name
priority- Type
- object
- Name
scheduledEmail- Type
- object
- Description
- ScheduledEmail represents a ScheduledEmail.
- Name
sendFrom- Type
- string
- Description
- Use an inbox alias to send email notifications
- Name
source- Type
- object
- Name
status- Type
- object
- Name
subject- Type
- string
- Description
- The ticket's subject
- Name
tags- Type
- array
- Description
- The list of word the ticket was tagged with
- Name
tickettemplate- Type
- object
- Name
type- Type
- object
Responses
- Code
- 200
- Type
- object
- Schema
- Description
- 200 OK
TicketAPIBody is the request/response format for the API
- Code
- 400
- Type
- object
- Schema
- Description
- 400 Bad Request
Validator hold the validation errors. Typically you shouldn't create this directly but use the New() function.
200 OK
TicketAPIBody
{ "delayed": true, "included": { "addresses": [ { "city": "string", "country": "string", "firstLine": "string", "id": 0, "postalCode": "string", "secondLine": "string", "state": "string" } ], "agentsnotified": [ { "autoFollowOnCC": true, "avatarURL": "string",