Skip to main content
GET

Download a file from an inbox document

Scope:inbox:inbox.read
https://api.holded.com/api/v2/inbox/{incomingDocumentId}/files/{filename}/download

Returns the raw content of a file attached to an incoming document. Use `?variant=inline` to display the file in-browser with 24-hour caching instead of triggering a download.

Parameters

Path parameters

incomingDocumentIdstringrequired

Incoming document identifier

filenamestringrequired

Name of the file to retrieve

Query parameters

variantstringoptional= download

Delivery mode: download (attachment) or inline (display with cache)

"download""inline"

Request

python
import requests

url = "https://api.holded.com/api/v2/inbox/507f1f77bcf86cd799439011/files/document.pdf/download?variant=download"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())

Responses

Response

json
"string"

Success responses

200File contentapplication/octet-stream
string<binary>

Error responses

401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
404Document or file not foundapplication/json
429Rate limit exceededapplication/json