---
title: "Download the message of a of an UPA pension declaration"
method: GET
path: "/v2/providers/employers/payrolladministrations/upapensiondeclarations/{upaPensionDeclarationId}/message"
tags: ["Upa pension declaration"]
---

# Download the message of a of an UPA pension declaration

`GET /v2/providers/employers/payrolladministrations/upapensiondeclarations/{upaPensionDeclarationId}/message`

## Request

- Base URL: `https://api.loket.nl`
- URL: `https://api.loket.nl/v2/providers/employers/payrolladministrations/upapensiondeclarations/{upaPensionDeclarationId}/message`
- Auth: none required

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

Download the message of the UPA pension declaration (pensioenaangiftebericht) in xml. Please note that this does NOT refer to the response message, but to the initial message i.e. pensioenaangiftebericht.

## Path parameters

- `upaPensionDeclarationId` string, uuid, required

## Headers

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

## Response `200`

OK

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