---
title: "List attachments"
method: GET
path: "/attachments"
tags: ["Attachments"]
---

# List attachments

`GET /attachments`

List attachments linked to a candidate, company, or jobs. At least one of `candidateId`, `companyId`, or `vacancyId` must be provided. Results are offset-paginated and can be filtered by attachment `type` (allowed values: `UNASSIGNED`, `CV`). Attachments with platform-internal types are never returned.

## Query parameters

- `page` integer
- `pageSize` integer
- `candidateId` string
- `companyId` string
- `vacancyId` string
- `type` 'UNASSIGNED' | 'CV'

## Response `200`

Paginated list of attachments matching the filters.

- PaginatedAttachmentsDto
  - `pagination` PaginationDto, required
    - `totalItems` number, required
    - `page` number, required
    - `hasNextPage` boolean, required
  - `items` AttachmentDto[], required
    - `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 - missing required link filter (at least one of candidateId, companyId, or vacancyId required) or invalid query parameter
- `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)
