You can create a new ticket.
You can create a new ticket.
ticket_type_id required | string The ID of the type of ticket you want to create |
required | Array of ID (object) or External ID (object) or Email (object) The list of contacts (users or leads) affected by this ticket. Currently only one is allowed |
company_id | string The ID of the company that the ticket is associated with. The ID that you set upon company creation. |
object (Ticket Attributes) The attributes set on the ticket. When setting the default title and description attributes, the attribute keys that should be used are |
{ "ticket_type_id": 443, "contacts": [ { "id": "6641ee936abd011a6b4f2660" } ], "ticket_attributes": { "title": "example", "description": "there is a problem" } }
200
Successful response
401
Unauthorized
{ "type": "ticket", "id": "2473", "ticket_attributes": { "title": "example", "description": "there is a problem" }, "ticket_state": "submitted", "ticket_state_internal_label": "Submitted", "ticket_state_external_label": "Submitted", "ticket_type": { "type": "ticket_type", "id": "443", "name": "my-ticket-type-6", "description": "my ticket type description is awesome.", "icon": "🦁", "workspace_id": "this_is_an_id632_that_should_be_at_least_", "archived": false, "created_at": 1715596947, "updated_at": 1715596947, "is_internal": false, "ticket_type_attributes": { "type": "list", "data": [ { "type": "ticket_type_attribute", "id": "1199", "workspace_id": "this_is_an_id632_that_should_be_at_least_", "name": "title", "description": "ola", "data_type": "string", "input_options": null, "order": 0, "required_to_create": true, "required_to_create_for_contacts": false, "visible_on_create": true, "visible_to_contacts": false, "default": false, "ticket_type_id": 443, "archived": false, "created_at": 1715596947, "updated_at": 1715596947 }, { "type": "ticket_type_attribute", "id": "1200", "workspace_id": "this_is_an_id632_that_should_be_at_least_", "name": "description", "description": "ola", "data_type": "string", "input_options": null, "order": 0, "required_to_create": true, "required_to_create_for_contacts": false, "visible_on_create": true, "visible_to_contacts": false, "default": false, "ticket_type_id": 443, "archived": false, "created_at": 1715596947, "updated_at": 1715596947 } ] } }, "contacts": { "type": "contact.list", "contacts": [ { "id": "6641ee936abd011a6b4f2660", "role": "user" } ] }, "admin_assignee_id": "0", "team_assignee_id": "0", "created_at": 1715596948, "updated_at": 1715596948, "ticket_parts": { "type": "ticket_part.list", "ticket_parts": [ { "type": "ticket_part", "id": "550", "part_type": "ticket_state_updated_by_admin", "ticket_state": "submitted", "previous_ticket_state": "submitted", "created_at": 1715596948, "updated_at": 1715596948, "author": { "id": "991274689", "type": "bot", "name": "Operator", "email": "operator+this_is_an_id632_that_should_be_at_least_@intercom.io" }, "attachments": [ ], "redacted": false } ], "total_count": 1 } }