---
title: "Create a support ticket for the customer"
url: "https://kongnet.kongai.uk/apis/kongnet-telco-api-1/versions/3d9e2c10-cf93-4e6e-8bf8-2129457a6aa5/operations/create_ticket"
---

> Full API specification: https://kongnet.kongai.uk/apis/kongnet-telco-api-1/versions/3d9e2c10-cf93-4e6e-8bf8-2129457a6aa5.md

# Create a support ticket for the customer

`POST` `/me/tickets`

Operation ID: `create_ticket`

Raises a ticket after troubleshooting has not fixed the problem and the customer has confirmed. Include steps tried and diagnostics. If an open ticket already exists in the same category the request is rejected with 409 and the existing reference: add a note to that ticket instead.

## Request body (required)

Content types: `application/json`

## Responses

- `201` - Successful Response
- `422` - Validation Error

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: KongNet Telco API
  version: 1.0.0
paths:
  /me/tickets:
    post:
      tags:
        - tickets
      summary: Create a support ticket for the customer
      description: "Raises a ticket after troubleshooting has not fixed the problem
        and the customer has confirmed. Include steps tried and diagnostics. If
        an open ticket already exists in the same category the request is
        rejected with 409 and the existing reference: add a note to that ticket
        instead."
      operationId: create_ticket
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/TicketCreate"
      responses:
        "201":
          description: Successful Response
          content:
            application/json:
              schema: {}
        "422":
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/HTTPValidationError"
components:
  schemas:
    TicketCreate:
      properties:
        category:
          type: string
          enum:
            - outage
            - connection
            - wifi
            - speed
            - tv
            - billing
            - account
            - other
          title: Category
          description: Ticket category
        summary:
          type: string
          maxLength: 140
          minLength: 5
          title: Summary
          description: One line summary in the customer's words
        details:
          type: string
          maxLength: 4000
          title: Details
          description: What the customer reported and what was found
          default: ""
        steps_tried:
          items:
            type: string
          type: array
          title: Steps Tried
          description: Troubleshooting steps already tried, in order
        diagnostics:
          additionalProperties: true
          type: object
          title: Diagnostics
          description: Results from line test or wifi scan, if run
        model_alias:
          anyOf:
            - type: string
            - type: "null"
          title: Model Alias
          description: Model alias that handled the conversation
        trace_id:
          anyOf:
            - type: string
            - type: "null"
          title: Trace Id
          description: Gateway trace id for the conversation
      type: object
      required:
        - category
        - summary
      title: TicketCreate
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: "#/components/schemas/ValidationError"
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
```
