Overview
This endpoint is used to initiate a download package for a specific job under a workflow. It collects both the input and output assets of a job run and generates a downloadable URL. Users must provide the workflow and job IDs. Authentication is required.
-
Method:
PUT
-
URL:
/v0/workflows/{workflow_id}/jobs/{job_id}/download
- Operation: Create a downloadable package from a workflow job
- Authentication Required: Yes
Authorization
You need the api key which you can get from the API tab in Organization Settings. The api key is required in almost all the commands
Path Parameters
The workflow_id
identifies the workflow containing the job, while job_id specifies the particular job whose assets need to be downloaded. These parameters are essential to precisely locate and retrieve the correct set of job data for packaging.
Name | Type | Required | Description |
---|---|---|---|
workflow_id | string | Yes | Unique ID of the workflow to download assets from |
job_id | string | Yes | Job ID within the workflow to generate the download package from |
Response
A 200 OK response includes a signed_url
that allows temporary access to download the assets packaged from the specified job. The response also includes the download operation’s status and ID, providing both metadata and the file access link in a secure, authenticated manner.
Name | Type | Description |
---|---|---|
id | string | Unique identifier of the download operation |
status | string | Current status of the download request (e.g., “pending”, “ready”) |
signed_url | string | URL to securely download the packaged input and output assets |
workflowId | string | ID of the workflow associated with the job |
How to use the endpoint
-
Prepare Your Request
Ensure you have the
workflow_id
andjob_id
of the job you want to download from. Include the Authorization header with a valid bearer token. -
Send the Request
Make a PUT request to
https://api.pixxel.space/v0/workflows/{workflow_id}/jobs/{job_id}/download
-
Handle the Response
On success, the response will contain a
signed_url
to download the ZIP package. Handle errors by checking for a 400 or 403 status and reviewing the returned error message.