---
title: "Get upload URL for a pending attachment (before ticket creation)"
method: POST
path: "/v1/workspaces/{workspaceId}/attachments/pending"
tags: ["attachments"]
---

# Get upload URL for a pending attachment (before ticket creation)

`POST /v1/workspaces/{workspaceId}/attachments/pending`

## 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}/attachments/pending`
- Auth: HTTP bearer

## 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`

Upload URL generated

---

[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)
