Attachments API
Manage file attachments on pages.
List Attachments
GET /v1/attachments
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
pageId | string | Yes | Page ID |
workspaceId | string | Yes | Workspace ID |
Get Attachment
GET /v1/attachments/:attachmentId
Upload Attachment
POST /v1/attachments
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
pageId | string | Yes | Page ID |
workspaceId | string | Yes | Workspace ID |
filename | string | Yes | File name |
contentType | string | Yes | MIME type |
data | string | Yes | Base64-encoded data |
Download Attachment
GET /v1/attachments/:attachmentId/download
Returns the file content.
Delete Attachment
DELETE /v1/attachments/:attachmentId