Skip to content
Public API
Esc
↑↓navigate↵open⌘Jpreview

Create a ticket

POST/ticket
Authorization
AuthorizationAPI key · headerrequired

The Incoming Secret value (<secretId>.<random>), with or without a Bearer prefix.

Request body
application/json
contactEmailstring

Email of the ticket contact person.

customIdstring

Custom ticket id; generated when omitted.

statusNamestring

Name of the ticket status to set.

prioritystring

Ticket priority label.

quotationFormRegionIdinteger

Id of the quotation form region.

additionalFilesobject

Downloadable files to attach, keyed by file name; each value is {url, headers}.

namestring

Human-readable ticket name.

customerIdinteger

Id of the customer the ticket belongs to.

poNumberstring

Customer purchase order number.

billingAddressobject

Billing address fields for the ticket.

shippingAddressobject

Shipping address fields for the ticket.

deliveryMethodTypestring

Type of the delivery method.

deliveryMethodNamestring

Name of the delivery method.

Responses
200

Created. Returns only the id — fetch the full Ticket with the corresponding GET.

idinteger | stringrequired

Id of the created Ticket.

Show properties
One of:
integer
integer
string
string
401

Authentication failed. All causes return this identical response.

codeinteger
messagestring
typestring
default

Downstream errors pass through verbatim; x-error-source names the failing service.

codeinteger
messagestring
typestring
Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST 'https://next.amfg.ai/engine-service/public-api/v1/ticket' \
  -H 'Authorization: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "contactEmail": "string",
  "customId": "string",
  "statusName": "string",
  "priority": "string",
  "quotationFormRegionId": 0,
  "additionalFiles": {},
  "name": "string",
  "customerId": 0,
  "poNumber": "string",
  "billingAddress": {},
  "shippingAddress": {},
  "deliveryMethodType": "string",
  "deliveryMethodName": "string"
}'
Response
{
  "id": 0
}