Skip to content

Get upload credentials ​

POST/api/v1/workspaces/{slug}/projects/{project_id}/work-items/{issue_id}/attachments/

Generate presigned URL for uploading file attachments to a work item.

Path Parameters ​

issue_id:requiredstring

Issue ID

project_id:requiredstring

Project ID

slug:requiredstring

Workspace slug

Body Parameters ​

name:requiredstring

Original filename of the asset

type:optionalstring

MIME type of the file

size:requiredinteger

File size in bytes

external_id:optionalstring

External identifier for the asset (for integration tracking)

external_source:optionalstring

External source system (for integration tracking)

Scopes ​

projects.work_items.attachments:write

Get upload credentials
bash
curl -X POST \
  "https://api.plane.so/api/v1/workspaces/my-workspace/projects/550e8400-e29b-41d4-a716-446655440000/work-items/550e8400-e29b-41d4-a716-446655440001/attachments/" \
  -H "X-API-Key: $PLANE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "name": "Example Name",
  "type": "application/pdf",
  "size": 1024000,
  "external_id": "550e8400-e29b-41d4-a716-446655440000",
  "external_source": "github"
}'
Response200
json
{
  "detail": "Presigned download URL generated successfully"
}