Upload Attachment
Upload one or more attachments. Supports both JSON (base64) and multipart/form-data formats.
Query Parameters
?workspace[id]=<uuid>.Request Body (JSON)
For JSON uploads, send base64-encoded file data:Request Body (Multipart)
For multipart uploads, usemultipart/form-data with a file field.
Response Structure
Returns a single attachment object:Response Codes
Authorizations
API token (starts with pnbx_). Create at https://app.penbox.io/workspace/settings/api. Include as: Authorization: Bearer {token}
Query Parameters
Workspace UUID. Optional for a token scoped to a single workspace; a token scoped to several workspaces should name the target one, otherwise the first workspace of the token is used.
Body
File name
Base64-encoded file content
MIME type (optional, will be detected if not provided)
Not applied. Every upload is created with the same access rules: the workspace API token and workspace admins can download the attachment.
public, restricted