> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/release-notes/cloudeka-api/ai-ticketing/create-ticket.md).

# Create ticket

Creates a new ticket.

```json
{"openapi":"3.1.1","info":{"title":"Cloudeka AI - API Documentation","version":"1.0.0"},"tags":[{"name":"AI Ticketing","description":"API endpoints for AI Ticketing (base: /mid/ticket)"}],"servers":[{"url":"https://ai.cloudeka.id/"}],"security":[{"BearerAuth":[]}],"components":{"securitySchemes":{"BearerAuth":{"description":"Type 'Bearer ' followed by your JWT token. Example: \"Bearer eyJhbGciOi...\"","type":"apiKey","name":"Authorization","in":"header"}},"schemas":{"ai_ticketing__handler.GenericResponse":{"type":"object","properties":{"data":{},"error_en":{"type":"string"},"error_id":{"type":"string"},"errorid":{"type":"integer"},"success":{"type":"boolean"}}},"ai_ticketing__request.CreateTicketV3":{"type":"object","required":["impact_id","project_id","request_type_id","subject","urgency_id"],"properties":{"attachment":{"type":"array","items":{"$ref":"#/components/schemas/ai_ticketing__request.Attachment"}},"category_id":{"type":"string"},"description":{"type":"string"},"impact_id":{"type":"string"},"item_id":{"type":"string"},"project_id":{"description":"OrganizationID string       `json:\"organization_id\" validate:\"required\"`","type":"string"},"request_type_id":{"type":"string"},"site_id":{"type":"string"},"subcategory_id":{"type":"string"},"subject":{"type":"string"},"urgency_id":{"type":"string"}}},"ai_ticketing__request.Attachment":{"type":"object","properties":{"content_type":{"type":"string"},"data":{"type":"string"},"filename":{"type":"string"}}}}},"paths":{"/mid/ticket/v3/ticket":{"post":{"description":"Creates a new ticket.","tags":["AI Ticketing","Ticket V3"],"summary":"Create ticket","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_ticketing__handler.GenericResponse"}}}},"400":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_ticketing__handler.GenericResponse"}}}},"500":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_ticketing__handler.GenericResponse"}}}}},"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ai_ticketing__request.CreateTicketV3"}}},"description":"Ticket details","required":true}}}}}
```
