---
title: "Get upload URL for a new attachment"
method: POST
path: "/v1/workspaces/{workspaceId}/tickets/{ticketId}/attachments"
tags: ["attachments"]
---

# Get upload URL for a new attachment

`POST /v1/workspaces/{workspaceId}/tickets/{ticketId}/attachments`

## Request

- Base URL: `https://api.dispatchtickets.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dispatchtickets.com/v1/workspaces/{workspaceId}/tickets/{ticketId}/attachments`
- Auth: HTTP bearer

## Path parameters

- `ticketId` string, required

## Request body

- CreateAttachmentDto
  - `filename` string, required
  - `contentType` string, required: MIME type of the file. Must be an allowed type (images, documents, archives, media).
  - `size` number, required: File size in bytes
  - `uploadedBy` string

## Response `201`

---

[API](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api.md) · [All operations](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dispatchtickets/apis/dispatch-tickets-api/revisions/82fc25ab859b?raw)
