Create a ticket
deskpro_create_ticketOpen a new ticket for a requester (by person id, or by email — Deskpro creates the person if the email is new) with a first message. Depending on the helpdesk's triggers this may email the requester. Returns the created ticket. Deskpro: POST /api/v2/tickets.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labels | No | Labels to set. | |
| status | No | Ticket status: awaiting_agent, awaiting_user, pending or resolved, optionally with a custom sub-status id suffix (e.g. pending.5 — see deskpro_list_ticket_statuses). The hidden (deleted/spam) status is not settable here. | |
| message | Yes | The first message body. | |
| subject | Yes | The ticket subject. | |
| urgency | No | Urgency 1-10. | |
| agent_id | No | Assign to this agent id. | |
| person_id | No | The requester's person id. | |
| agent_team | No | Assign to this agent team id. | |
| department | No | Department id (see deskpro_list_departments). | |
| person_name | No | The requester's name, for a new person. | |
| organization | No | Organization id. | |
| person_email | No | The requester's email (used when person_id is not given). | |
| message_format | No | Format of the message body. Default text. |