Skip to main content
GET
/
attachments
Get Multiple Attachments
curl --request GET \
  --url https://connect.penbox.io/v1/attachments \
  --header 'Authorization: Bearer <token>'
"<string>"
Download multiple attachments as a single PDF file.

Query Parameters

ids
string
required
Comma-separated list of attachment UUIDs
filename
string
Custom filename for the downloaded PDF (without extension)

Response

Returns a PDF file containing all requested attachments merged together. Content-Type: application/pdf

Response Codes

CodeDescription
200Success - PDF generated
400Bad Request - Missing or invalid ids parameter
401Unauthorized - Invalid access token
404Not Found - One or more attachments not found
429Too Many Requests - Rate limit exceeded
500Server Error - Internal error
This endpoint automatically merges multiple attachments into a single PDF document, which is useful for batch downloads or generating combined reports.

Authorizations

Authorization
string
header
required

API token (starts with pnbx_). Create at https://app.penbox.io/workspace/settings/api. Include as: Authorization: Bearer {token}

Query Parameters

ids
string
required

Comma-separated list of attachment UUIDs

filename
string

Custom filename for the downloaded PDF (without extension)

Response

200 - application/pdf

PDF file containing all requested attachments

The response is of type file.