Skip to main content
POST
/
v1
/
tickets
Create a ticket
curl --request POST \
  --url https://dev.flextell.ai/api/v1/tickets \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer_id": 2,
  "description": "<string>",
  "type": "general",
  "status": "open",
  "related_person_id": 2
}
'
{
  "success": "<string>",
  "data": {
    "id": 123,
    "code": "<string>",
    "description": "<string>",
    "status": "<string>",
    "type": "<string>",
    "position": "<string>",
    "creation_type": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "deleted_at": "2023-11-07T05:31:56Z",
    "customer": {
      "id": 123,
      "first_name": "<string>",
      "last_name": "<string>",
      "phone_number": "<string>",
      "email": "<string>"
    },
    "related_person": {
      "id": 123,
      "name": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-Tenant
number

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Body

application/json
customer_id
integer
required

The customer identifier.

Required range: x >= 1
description
string
required

The ticket description.

Maximum string length: 5000
type
enum<string>
required

The ticket type.

Available options:
general,
complaint,
side_effect,
request,
suggestion
status
enum<string>

The ticket status (defaults to open).

Available options:
open,
processing,
resolved,
closed

The assigned user identifier.

Required range: x >= 1

Response

success
string
required
data
TicketResource · object
required