---
title: "Upload temporary attachments"
method: POST
path: "/attachments/temporary"
tags: ["Attachments"]
---

# Upload temporary attachments

`POST /attachments/temporary`

Step 1 of the two-step upload flow:
1. Upload one or more files here — the response returns a temporary attachment ID for each file.
2. Call `POST /attachments/temporary/assign` with those IDs to set each attachment's type and link them to a record (candidate, company, or vacancy), making them permanent.

Attachments uploaded here are stored temporarily and are not persisted until they are assigned.

**Allowed MIME Types:**
- **PDF:** `application/pdf`
- **Word Documents:** `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (.docx), `application/msword` (.doc)
- **Images:** `image/jpeg`, `image/png`, `image/gif`, `image/bmp`, `image/webp`, `image/tiff`, `image/svg+xml`, `image/x-icon`, `image/vnd.microsoft.icon`
- **Excel:** `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` (.xlsx)
- **CSV:** `text/csv` (.csv)

**Limits:**
- Maximum file size: 50MB per file
- Maximum files per request: 10

## Query parameters

- `type` 'UNASSIGNED' | 'CV', required

## Response `201`

Attachments uploaded successfully. Returns an array of attachment details including IDs to use for assignment.

- AttachmentDto[]
  - `attachmentId` string, required
  - `attachmentName` string, nullable, required
  - `type` 'UNASSIGNED' | 'CV', nullable, required
  - `customType` AttachmentCustomTypeDto, required
    - `id` string, required
    - `name` string, required
  - `createdAt` string, date-time, required
  - `extension` string, nullable, required
  - `size` number, nullable, required

## Other responses

- `400` — Bad request - invalid file type (unsupported MIME type), file too large (>50MB), or too many files (>10)
- `401` — Unauthorized - invalid or missing authentication
- `500` — Error response

---

[API](https://skmtc.net/spott/apis/spott-webhooks.md) · [All operations](https://skmtc.net/spott/apis/spott-webhooks/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spott/spott-webhooks/versions/ad1f8c51cf0a/schema)
