Skip to main content

Endpoint

Authentication

This endpoint requires authentication via API key. Include your API key in the X-API-Key header:

Path Parameters

Request Example

Response

Success Response

Status Code: 200 OK The response is JSON metadata containing a presigned URL - not the file bytes.

Response Fields

Error Responses

401 Unauthorized

Returned when authentication fails. See the authentication errors section for details.

404 Not Found

Returned when the task, step, or document doesn’t exist.

501 Not Implemented

Returned when the step hasn’t generated a document yet or doesn’t generate documents.

500 Internal Server Error

Returned when the request fails due to a server error.

Notes

This endpoint is specifically for documents generated by workflow steps (like document generation or AI review steps). For uploaded documents, use the Download File endpoint instead.
The presigned download URL expires after a certain time (indicated by expires_at). Download the file before the URL expires or request a new URL.
Use the List Task Files endpoint to discover which steps have generated documents and their associated step_id values.

Use Cases

This endpoint is useful for:
  • Document retrieval - Download AI-generated or modified documents from workflows
  • Contract export - Export reviewed, redlined, or approved contracts
  • Archival - Save generated documents to external storage systems
  • Distribution - Share workflow outputs with external stakeholders