Letters File
letters_fileRetrieve a letter’s rendered PDF file reference without following the redirect; returns the redirect URL and status code so the caller can download the binary.
Instructions
Get file of letter. GET /organisations/{organisationId}/deliveries/letters/{letterId}/file
Answers 302 to the rendered PDF; the redirect is NOT followed. Returns
{"redirect_url": ..., "status_code": 302} so the caller can fetch the
binary themselves.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"organisation_id": "<organisation_id>",
"letter_id": "<letter_id>"
},
"name": "letters_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| letter_id | Yes | ||
| organisation_id | Yes |