Skip to main content
POST
/
api
/
v1
/
org
/
support
/
tickets
Create Ticket Endpoint
import requests

url = "https://platform.ankra.app/api/v1/org/support/tickets"

payload = {}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organisation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "subject": "<string>",
  "description": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "cluster_name": "<string>",
  "ai_summary": "<string>",
  "is_tracked_by_team": false,
  "comments": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "author_label": "<string>",
      "body": "<string>",
      "created_at": "2023-11-07T05:31:56Z"
    }
  ],
  "attachments": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "filename": "<string>",
      "content_type": "<string>",
      "size_bytes": 123,
      "created_at": "2023-11-07T05:31:56Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Body

application/json
review_id
string<uuid> | null
subject
string | null
Maximum string length: 200
description
string | null
Maximum string length: 10000
category
enum<string>
default:technical
Available options:
technical,
account,
billing,
bug,
feature_request,
other
cluster_id
string<uuid> | null
severity
enum<string> | null
Available options:
low,
medium,
high,
critical
source
enum<string>
default:portal
Available options:
portal,
api,
cli,
agent
acknowledged
boolean
default:false
environment
Environment · object
clarification_answers
ClarificationAnswer · object[] | null

Response

Successful Response

id
string<uuid>
required
organisation_id
string<uuid>
required
source
enum<string>
required
Available options:
portal,
api,
cli,
agent
category
enum<string>
required
Available options:
technical,
account,
billing,
bug,
feature_request,
other
subject
string
required
description
string
required
status
enum<string>
required
Available options:
pending_review,
open,
triaging,
in_progress,
waiting_customer,
resolved,
closed
ai_review_status
enum<string>
required
Available options:
pending,
passed,
flagged
created_at
string<date-time>
required
updated_at
string<date-time>
required
cluster_id
string<uuid> | null
cluster_name
string | null
severity
enum<string> | null
Available options:
low,
medium,
high,
critical
ai_summary
string | null
is_tracked_by_team
boolean
default:false
comments
TicketComment · object[]
attachments
TicketAttachment · object[]