- Enqueue create ticket
Enqueues ticket creation for asynchronous processing, returning if the job was enqueued successfully to be processed. We attempt to perform a best-effort validation on inputs before tasks are enqueued. If the given parameters are incorrect, we won't enqueue the job.
Intercom API version.
By default, it's equal to the version set in the app package.
The list of contacts (users or leads) affected by this ticket. Currently only one is allowed
[ { "id": "1234" } ]
The ID of the conversation you want to link to the ticket. Here are the valid ways of linking two tickets:
- conversation | back-office ticket
- customer tickets | non-shared back-office ticket
- conversation | tracker ticket
- customer ticket | tracker ticket
The ID of the company that the ticket is associated with. The unique identifier for the company which is given by Intercom
The time the ticket was created. If not provided, the current time will be used.
The attributes set on the ticket. When setting the default title and description attributes, the attribute keys that should be used are _default_title_ and _default_description_. When setting ticket type attributes of the list attribute type, the key should be the attribute name and the value of the attribute should be the list item id, obtainable by listing the ticket type. For example, if the ticket type has an attribute called priority of type list, the key should be priority and the value of the attribute should be the guid of the list item (e.g. de1825a0-0164-4070-8ca6-13e22462fa7e).
{ "_default_title_": "Found a bug", "_default_description_": "The button is not working" }
- The production API serverhttps://api.intercom.io/tickets/enqueue
- The european API serverhttps://api.eu.intercom.io/tickets/enqueue
- The australian API serverhttps://api.au.intercom.io/tickets/enqueue
- ID
- External ID
curl -i -X POST \
https://api.intercom.io/tickets/enqueue \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-H 'Intercom-Version: 2.16' \
-d '{
"ticket_type_id": 88,
"contacts": [
{
"id": "6762f2d81bb69f9f2193bc54"
}
],
"ticket_attributes": {
"_default_title_": "example",
"_default_description_": "there is a problem"
}
}'Successful response
The id of the resource created during job execution (e.g. ticket id)
{ "type": "job", "id": "20", "status": "pending", "url": "https://api.intercom.io/jobs/status/20", "resource_type": "ticket", "resource_id": null, "resource_url": null }