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. |
created_at | integer The time the ticket was created. If not provided, the current time will be used. |
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": 314, "contacts": [ { "id": "663a03a2262d16a19645ef03" } ], "ticket_attributes": { "title": "example", "description": "there is a problem" } }
200
Successful response
401
Unauthorized
{ "type": "ticket", "id": "1715", "ticket_id": "92", "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": "314", "name": "my-ticket-type-15", "description": "my ticket type description is awesome.", "icon": "🦁", "workspace_id": "this_is_an_id637_that_should_be_at_least_", "archived": false, "created_at": 1715078050, "updated_at": 1715078050, "is_internal": false, "ticket_type_attributes": { "type": "list", "data": [ { "type": "ticket_type_attribute", "id": "838", "workspace_id": "this_is_an_id637_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": 314, "archived": false, "created_at": 1715078050, "updated_at": 1715078050 }, { "type": "ticket_type_attribute", "id": "839", "workspace_id": "this_is_an_id637_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": 314, "archived": false, "created_at": 1715078050, "updated_at": 1715078050 } ] }, "category": "Back-office" }, "contacts": { "type": "contact.list", "contacts": [ { "type": "contact", "id": "663a03a2262d16a19645ef03", "external_id": "70" } ] }, "admin_assignee_id": "0", "team_assignee_id": "0", "created_at": 1715078051, "updated_at": 1715078051, "ticket_parts": { "type": "ticket_part.list", "ticket_parts": [ { "type": "ticket_part", "id": "389", "part_type": "ticket_state_updated_by_admin", "ticket_state": "submitted", "previous_ticket_state": "submitted", "created_at": 1715078051, "updated_at": 1715078051, "author": { "id": "991271955", "type": "bot", "name": "Operator", "email": "operator+this_is_an_id637_that_should_be_at_least_@intercom.io" }, "attachments": [ ], "redacted": false } ], "total_count": 1 }, "open": true, "linked_objects": { "type": "list", "data": [ ], "total_count": 0, "has_more": false }, "category": "Back-office", "is_shared": false }