Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-account-id
string<uuid>
required

The account that owns the ticket

Body

application/json
title
string
required
Maximum string length: 200
description
string
Maximum string length: 5000
pipeline_id
string<uuid>

Ticket pipeline id returned by GET /ticket-pipelines.

stage_code
string

Internal stage code within pipeline_id.

priority
enum<string>
default:medium
Available options:
low,
medium,
high,
urgent
status
enum<string>
default:open
Available options:
open,
resolved,
closed
source_type
enum<string>
default:manual
Available options:
manual,
review,
journey,
system
review_id
string<uuid>

Review id to associate and deduplicate against an active review ticket.

customer_id
string

External customer id to associate with the ticket when there is no review.

actor_user_id
string<uuid>

Agent/profile id that should be recorded as the creator. If omitted, the first account member is used.

assignee_user_ids
string<uuid>[]

Account member ids to assign to the ticket on creation.

auto_assign
boolean
default:true

Routes an unassigned open ticket to an available agent. Set false to keep it out of automatic routing and later queue sweeps.

idempotency_key
string
Maximum string length: 200
required_fields
object

Values required when the initial status maps to a stage with required fields.

closure_answers
object

Answers to the closure forms that apply to the ticket's category, keyed by closure field UUID. Required fields must be answered when the stage resolves or closes the ticket; answers already stored are kept until the ticket is reopened.

Example:
event_id
string<uuid>

Purchase event (order) to link to the ticket. The event must belong to the account and contain an order.

purchase_id
string

Order number to link instead of event_id. Masivo looks for an order with this purchase_id issued in the last 30 days (narrowed by customer_id when sent) and fails when none or more than one order matches.

Maximum string length: 200

Response

Ticket created

data
object