Overview
Use this endpoint to request a downloadable bundle of selected assets (e.g., satellite imagery or processed outputs) generated during an insight run on a specific AOI. Once the request is made, the system prepares the package and returns a signed URL to securely download it. The endpoint expects a list of desired inputs and/or outputs in the request body. This helps in exporting specific data rather than entire insight results.
-
Method:
PUT
-
URL:
/v0/aoi/{aoi_id}/insights/{insight_id}/download
- Operation: Creates a downloadable package from selected insight assets (inputs and outputs).
- 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 path parameters aoi_id
and insight_id
are used to uniquely identify the Area of Interest and the insight whose data needs to be packaged for download. These are required to ensure the download operation is targeted to the correct asset set.
Name | Type | Required | Description |
---|---|---|---|
aoi_id | string | Yes | ID of the Area of Interest |
insight_id | string | Yes | ID of the insight to download |
Query Parameters
This endpoint does not use query parameters.
Request Body
The body of the request should contain lists of input and output asset identifiers to be included in the download package. This allows the user to customize the contents of the download, fetching only the data they need from a potentially large set of generated or used files.
Name | Type | Required | Description |
---|---|---|---|
inputs | string[] | No | List of input asset identifiers to include |
outputs | string[] | No | List of output asset identifiers to include |
Response
A successful request returns a 200 OK status with a JSON object containing the insight ID, download status, and a signed URL. This URL can be used to securely download the selected files. The status field helps track whether the download package is ready.
Field | Type | Description |
---|---|---|
id | string | Unique identifier of the insight |
status | string | Current status of the download request |
signed_url | string | Temporary URL for downloading the packaged data |
How to use the endpoint
- Construct Your Request Prepare a JSON body with inputs and outputs arrays (even if only one is used). Replace aoi_id and insight_id in the URL with actual values. Add your auth token in the Authorization header.
-
Send the Request
Make a PUT request to
https://api.pixxel.space/v0/aoi/{aoi_id}/insights/{insight_id}/download
. Include your JSON body and headers. - Examine the Response On success, you’ll get a JSON object containing the insight ID, download status, and a signed URL. Use this URL to download your data. Errors will indicate permission issues or malformed inputs.