---
title: "Create ticket (admin)"
method: POST
path: "/api/admin/tickets"
tags: ["Tickets - Admin"]
---

# Create ticket (admin)

`POST /api/admin/tickets`

Create a ticket from the system-admin flow.

Mirrors the user create endpoint but allows admin-only categories
(integracoes) and an internal priority, and always validates assigned_to.

The ticket carries the acting admin's HOME company — never the one they may
be impersonating. `user["idcompany"]` is ambient (see auth.home_company): an
admin who switched into a tenant and then opened the system-admin panel would
otherwise file this internal ticket INSIDE that tenant, where the tenant read
path (`db.tickets.list_tickets_by_company`, which filters on idcompany alone)
makes it readable by their users, and the attachment prefix below drops the
files into that tenant's MultiDrive.

## Headers

- `x-api-token` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/multigest/apis/multigest-protected-api.md) · [All operations](https://skmtc.dev/multigest/apis/multigest-protected-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/multigest/multigest-protected-api/revisions/4b44eb76b3ee/schema)
