Download attachment
Endpoint for downloading a correspondence attachment.
Endpoint
GET /correspondence/api/v1/correspondence/{{correspondenceId}}/attachment/{{attachmentId}}/download
Description
This endpoint enables the download of a specific attachment associated with a correspondence. Prior to utilizing this endpoint, the correspondence status must be set to “Published”. The status of a correspondence can be verified by using the overview or details endpoint, as described here.
Authentication
This API requires authentication, and the request must also include:
- Correspondence read scope altinn:correspondence.read (for external system callers)
See Authentication and Authorization for more information.
Response
Response codes
200 OK: The attachment has been downloaded succesfully.
Refer to problem details in response body for further information.
400 One or more validation errors occurred: Indicates that the correspondenceid or the attachmentid was not found.
Content-Type
- text
Response body
The response body consists of the attachment content.