Skip to main content

Download Success Plan Attachment

GET 

/api/success-plan/attachments/:attachment

Downloads an attachment. Use the signed url returned with the attachment (on upload, and in every reading's attachments): it already carries expires and signature, and is valid for 30 minutes. Fetch a fresh one by reading the goal or its readings again. The request must also be authenticated.

Required scope: success_plan:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Authentication: Requires Bearer token with the success_plan:read scope. The user must hold the success_plan.view permission.

The response is the file itself, with its own Content-Type and its original file name. An expired or altered link answers 403; a file that is no longer stored answers 404.

Request​

Responses​

OK

Response Headers
    Content-Type