Tickets API
POST/api/v1/tickets/templates/{templateId}/instantiate
Product availabilityAlgaPSAAlgaDesk

Create a ticket from a ticket template

Creates one ticket from the template and returns it, exactly as POST /api/v1/tickets does. The template supplies the title (with its {{client}}/{{contact}}/{{due_date}} tokens filled in), description, board, category, priority, ITIL values, tags, custom fields and every checklist item, and the ticket records created_from_template_id. Prefer this over POST /api/v1/tickets followed by one POST /api/v1/tickets/{id}/checklist per item whenever a template exists. Requires ticket:create as well as ticket_template:read. Resolve client_id (and contact_name_id, location_id, assigned_to) to UUIDs first; a contact, location or asset that does not belong to client_id, a status that is not on the template’s board, or a template bound to a different client are all refused with 400.

RBAC · ticket_template

Path parameters

templateIdstring <uuid>Required
Ticket template UUID from ticket_templates.template_id.

Request body

Content type: application/json · schema WorkV1TicketTemplateInstantiateBody

client_idstring <uuid>Required
Client the ticket is for. A template bound to another client is refused with 400.
contact_name_idstring <uuid>Nullable
Requester contact; must belong to client_id. Also fills the {{contact}} title token.
location_idstring <uuid>Nullable
Client location; must belong to client_id.
asset_idsarray of string
Assets to link to the ticket; each must belong to client_id.
max items 50
itemsstring <uuid>
assigned_tostring <uuid>Nullable
Primary assignee. Defaults to unassigned.
status_idstring <uuid>Nullable
Status for the new ticket; must belong to the template's board. Defaults to that board's default status.
due_datestringNullable
Due date, ISO date (YYYY-MM-DD) or date-time. Also fills the {{due_date}}, {{month}} and {{year}} title tokens.
suppressContactNotificationsboolean
Create the ticket without notifying the customer.
suppressInternalNotificationsboolean
Also skip internal notifications. Requires suppressContactNotifications=true.

Response body

Success response 201 · schema WorkV1ApiSuccess

dataanyOfRequired
anyOf (option 1)object
anyOf (option 2)array of object
itemsobject
metaobject

Response codes

201
The created ticket.
400
Validation failure, a reference that does not belong to the client, or a template bound to another client.
401
API key missing/invalid.
403
RBAC denied for ticket create or ticket_template read.
404
Ticket template or client not found.
500
Unexpected controller/service failure.