---
title: "Create support ticket"
method: POST
path: "/tickets"
---

# Create support ticket

`POST /tickets`

Creates a new support ticket

## Request body

- CreateTicketRequest
  - `kind` 'user_scope_quota_increase' | 'scope_package_quota_increase' | 'other', required — The kind of support ticket.
  - `meta` object, required — Additional metadata for the ticket.
  - `message` string, required — The initial message for the ticket.

## Response `200`

OK

- Ticket
  - `id` string, uuid, required — The ID of the ticket.
  - `kind` 'user_scope_quota_increase' | 'scope_package_quota_increase' | 'other', required — The kind of support ticket.
  - `creator` User, required — Public user information.
    - `id` string, uuid, required — The ID of a user.
    - `name` string, required — The user's display name.
    - `avatarUrl` string, required — The URL to the user's avatar.
    - `githubId` integer, nullable — The user's GitHub ID.
    - `createdAt` string, date-time, required — The date and time when the user profile was created.
    - `updatedAt` string, date-time, required — The date and time when the user profile was last updated.
  - `meta` object, required — Additional metadata for the ticket.
  - `closed` boolean, required — Whether the ticket is closed.
  - `messages` TicketMessage[], required
    - `author` User, required — Public user information.
      - `id` string, uuid, required — The ID of a user.
      - `name` string, required — The user's display name.
      - `avatarUrl` string, required — The URL to the user's avatar.
      - `githubId` integer, nullable — The user's GitHub ID.
      - `createdAt` string, date-time, required — The date and time when the user profile was created.
      - `updatedAt` string, date-time, required — The date and time when the user profile was last updated.
    - `message` string, required — The message content.
    - `updatedAt` string, date-time, required — The date and time when the message was last updated.
    - `createdAt` string, date-time, required — The date and time when the message was created.
  - `updatedAt` string, date-time, required — The date and time when the ticket was last updated.
  - `createdAt` string, date-time, required — The date and time when the ticket was created.

## Other responses

- `400` — Invalid request
- `401` — Unauthorized

---

[API](https://skmtc.net/deno/apis/jsr.md) · [All operations](https://skmtc.net/deno/apis/jsr/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/deno/jsr/versions/3d37ac9b68f7/schema)
