Skip to main content
GET
Download or retrieve metadata for a specific file (API: attachment).
In the API, uploaded files are referred to as attachments. This is the technical term used in all endpoints and parameters.

Response Formats

The endpoint supports two response formats controlled by the Accept header:

JSON Response

When using Accept: application/json, you’ll receive:
Files larger than 50MB cannot be retrieved as JSON. Use Accept: application/octet-stream to download large files.

Bulk Download

Download multiple files as a single ZIP archive:

Query Parameters

Multiple files are packaged as a ZIP archive for download.

Finding File IDs

File IDs are included when you retrieve a form response:

Supported File Types

Penbox supports various file types:

Response Codes

Files are permanently stored and remain accessible even after the form is archived.
For large files (> 50MB), always use Accept: application/octet-stream. The JSON endpoint will return a 413 error for files exceeding this limit.
Downloaded files should be scanned for viruses before processing, especially in production environments.

Authorizations

Authorization
string
header
required

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

Headers

Accept
enum<string>

Response format: application/json for metadata or application/octet-stream for file download

Available options:
application/json,
application/octet-stream

Path Parameters

id
string<uuid>
required

Attachment UUID

Response

Successful response

id
string<uuid>

Attachment UUID

name
string

Original filename

type
string

MIME type

scope
string | null

Attachment scope

data
string | null

Base64-encoded file content

metadata
object
uri
string<uri>

Direct download URL