Download Attachments
Downloads the raw bytes of a file attachment retrieved during the flow session.
**Key Technical Details:**
- **Rate Limit (429)**: Access is strictly limited to 1 request every 5 seconds per unique attachment to prevent abuse and reduce infrastructure load during heavy file retrieval.
When a flow session completes, its results schema may contain attachment references (such as official PDF reports or generated documents) containing a unique attachment ID. Use this endpoint with the corresponding `session_id` and `attachment_id` to download the file.
Supported file types depend on the flow and feature executed (e.g., `application/pdf`, `image/png`, etc.).
> This endpoint needs to be executed with an app secret, so should always be used in server side without exposing the secret to customers.
Authentication
X-APP-SECRETstring
Application Secret
Path parameters
session_id
The unique identifier of the flow session where the attachment was retrieved.
attachment_id
The unique identifier of the attachment file to download.
Response
200 OK
Attachment file.
Errors
404
Not Found Error
412
Precondition Failed Error
422
Unprocessable Entity Error
429
Too Many Requests Error