Download Result
Download the processed file once the task is completed.
GEThttps://api.flimpa.com/api/v1/tasks/:taskId/download
Task Expiration
Files are automatically deleted 1 hour after the task is created (Task TTL). Attempting to download an expired task will result in a 404 error.
Request
Path Parameters
| Name | Type | Description |
|---|---|---|
| taskId* | string | The unique identifier of the task. |
Headers
| Name | Type | Description |
|---|---|---|
| X-Task-Access-Token* | string | The accessToken returned when the task was created. |
Example
RequestcURL
curl -L "https://api.flimpa.com/api/v1/tasks/550e8400-e29b-41d4-a716-446655440000/download" \
-H "X-Task-Access-Token: YOUR_ACCESS_TOKEN" \
-H "X-API-Key: flp_live_YOUR_API_KEY" \
-o result.binResponse
If successful, the response will be the binary content of the processed file with the appropriate Content-Type and Content-Disposition headers.
If the task is not yet completed, the API will return a 409 Conflict or 404 Not Found depending on the state.