> 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/add-ticket-attachments.md).

# Add ticket attachments

Adds attachments to a 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.CreateAttachment":{"type":"object","properties":{"attachment":{"type":"array","items":{"$ref":"#/components/schemas/ai_ticketing__request.Attachment"}}}},"ai_ticketing__request.Attachment":{"type":"object","properties":{"content_type":{"type":"string"},"data":{"type":"string"},"filename":{"type":"string"}}}}},"paths":{"/mid/ticket/v3/ticket/{ticket_id}/attachment":{"post":{"description":"Adds attachments to a ticket.","tags":["AI Ticketing","Ticket V3"],"summary":"Add ticket attachments","parameters":[{"schema":{"type":"string"},"description":"Ticket ID","name":"ticket_id","in":"path","required":true}],"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.CreateAttachment"}}},"description":"Attachment details","required":true}}}}}
```
