Create ticket
create_ticketCreate incident or service-request tickets in Freshservice by supplying subject and description; use get_ticket_fields to resolve missing required fields reported by the API.
Instructions
Create an incident or service-request ticket. Some ticket forms make fields such as group_id, responder_id, category or custom fields mandatory; check get_ticket_fields when the API reports missing_field.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Requester name, used with phone | |
| tags | No | Tags | |
| type | No | Default Incident | |
| No | Requester email (one of email/requester_id/phone needed) | ||
| phone | No | Requester phone; creates the contact if new (needs name) | |
| assets | No | Assets to link, e.g. [{'display_id': 14}] | |
| due_by | No | Resolution due, ISO-8601 | |
| impact | No | 1 Low, 2 Medium, 3 High | |
| source | No | 1 Email, 2 Portal, 3 Phone, 4 Chat, 5 Feedback widget, 6 Yammer, 7 AWS Cloudwatch, 8 Pagerduty, 9 Walkup, 10 Slack, 11 Chatbot, 12 Workplace, 13 Employee Onboarding, 14 Alerts, 15 MS Teams, 18 Employee Offboarding (custom sources: see list_ticket_sources) | |
| status | No | 2 Open, 3 Pending, 4 Resolved, 5 Closed | |
| subject | Yes | Ticket subject | |
| urgency | No | 1 Low, 2 Medium, 3 High | |
| category | No | Category | |
| group_id | No | Agent group to assign | |
| priority | No | 1 Low, 2 Medium, 3 High, 4 Urgent | |
| cc_emails | No | Email addresses | |
| fr_due_by | No | First response due, ISO-8601 | |
| attachments | No | Local file paths to attach (max 15 files / 40 MB total). Only files inside the folders in FRESHSERVICE_ATTACHMENT_DIRS are allowed; attachments are refused until that is set | |
| description | Yes | Ticket body (HTML allowed) | |
| requester_id | No | Requester user ID | |
| responder_id | No | Agent to assign | |
| sub_category | No | Sub-category | |
| workspace_id | No | Workspace ID (multi-workspace accounts). Defaults to $FRESHSERVICE_WORKSPACE_ID; 0 means all workspaces where supported. | |
| custom_fields | No | Custom field values keyed by the field's API name (see *_fields tools) | |
| department_id | No | Department ID | |
| item_category | No | Item category |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||