Skip to content

Download a workspace page attachment

GET/api/v1/workspaces/{workspace_slug}/pages/{page_id}/attachments/{attachment_id}/download/

Validate access and receive a 302 redirect to a temporary presigned download URL. An attachment that has not been confirmed as uploaded returns 400.

Path Parameters

workspace_slug:requiredstring

The workspace's unique slug.

page_id:requiredstring

The workspace page UUID.

attachment_id:requiredstring

The attachment asset UUID.

Scopes

read or wiki.pages:read

Download an attachment
bash
download_url="$(
  curl --fail --silent --show-error --dump-header - --output /dev/null \
    "https://api.plane.so/api/v1/workspaces/my-workspace/pages/page-uuid/attachments/attachment-uuid/download/" \
    -H "X-API-Key: $PLANE_API_KEY" \
    | sed -n 's/^Location: \(https:\/\/.*\)\r$/\1/p'
)"
test -n "$download_url"
curl --fail --location "$download_url" --output diagram.png
Response302

The Location header contains the temporary presigned download URL.