Retrieve workspace page attachment metadata
GET/api/v1/workspaces/{workspace_slug}/pages/{page_id}/attachments/{attachment_id}/
Retrieve metadata and links for an existing workspace page attachment. The caller must be able to view the page.
Path Parameters
workspace_slug:requiredstringThe workspace's unique slug.
page_id:requiredstringThe workspace page UUID.
attachment_id:requiredstringThe attachment asset UUID.
Scopes
read or wiki.pages:read
Retrieve attachment metadata
bash
curl -X GET "https://api.plane.so/api/v1/workspaces/my-workspace/pages/page-uuid/attachments/attachment-uuid/" -H "X-API-Key: $PLANE_API_KEY"python
import requests
response = requests.get("https://api.plane.so/api/v1/workspaces/my-workspace/pages/page-uuid/attachments/attachment-uuid/", headers={"X-API-Key": "your-api-key"})
print(response.json())javascript
// Run this example server-side. Browser apps must call your backend to keep the API key secret.
const response = await fetch(
"https://api.plane.so/api/v1/workspaces/my-workspace/pages/page-uuid/attachments/attachment-uuid/",
{ headers: { "X-API-Key": process.env.PLANE_API_KEY } },
);
const data = await response.json();Response200
json
{
"id": "attachment-uuid",
"page_id": "page-uuid",
"name": "diagram.png",
"type": "image/png",
"size": 24576,
"is_uploaded": true,
"asset_url": "https://api.plane.so/api/v1/workspaces/my-workspace/pages/page-uuid/attachments/attachment-uuid/",
"_links": {
"download": "https://api.plane.so/api/v1/workspaces/my-workspace/pages/page-uuid/attachments/attachment-uuid/download/"
}
}
