---
title: "Create ticket"
method: POST
path: "/api/v1/tickets"
tags: ["Tickets"]
---

# Create ticket

`POST /api/v1/tickets`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/api/v1/tickets`
- Auth: `bearer_auth` (a scheme the document does not define)

## Request body

- object
  - `ticket` object
    - `title` string
    - `ticket_type` string
    - `status` string
    - `subject` string
    - `message` string
    - `category` string
    - `assigned_to_id` integer
    - `images` string[]
    - `tags` string

## Response `200`

Create ticket success

- object
  - `message` string
  - `status` string
  - `data` object
    - `subject` string
    - `message` string
    - `priority` string
    - `category` string
    - `status` string
    - `title` string
    - `ticket_type` string
    - `tags` string[]
    - `created_at` string
    - `user` object
      - `fullname` string
      - `email` string
    - `comments_count` integer
    - `assigned_user` object
      - `fullname` string
      - `email` string

## Other responses

- `400`: Create ticket fails

---

[API](https://skmtc.dev/aeroleads/apis/api-v1.md) · [All operations](https://skmtc.dev/aeroleads/apis/api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/aeroleads/apis/api-v1/revisions/f903ee7ec7fa?raw)
