---
title: "Upload attachment"
method: POST
path: "/v2/providers/employers/employees/employments/declarations/{declarationId}/attachment"
tags: ["Declarations attachments"]
---

# Upload attachment

`POST /v2/providers/employers/employees/employments/declarations/{declarationId}/attachment`

## Request

- Base URL: `https://api.loket.nl`
- URL: `https://api.loket.nl/v2/providers/employers/employees/employments/declarations/{declarationId}/attachment`
- Auth: none required

__Activity name :__ <a href="https://developer.loket.nl/Activities/PostAttachmentByDeclarationId" target="_blank">PostAttachmentByDeclarationId</a>

Upload an attachment to a declaration. Via Qwoater.

## Path parameters

- `declarationId` string, uuid, required

## Headers

- `Authorization` string, required
- `Accept` string, required

## Request body

- AttachmentPostObject
  - `file` string: base64 encoded document file.
  - `filename` string: The name of the file. Qwoater: Filename

## Response `202`

Accepted

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/loket/apis/loket-api.md) - [All operations](https://skmtc.dev/loket/apis/loket-api/llms.txt) - [OpenAPI document](https://skmtc.dev/loket/apis/loket-api/revisions/32170564148f?raw)
