Skip to content
Get started

Get Status

assets.download.get_status(strjob_id) -> DownloadGetStatusResponse
GET/assets/download/{jobId}

Retrieve the status and the url of a batch download assets request

ParametersExpand Collapse
job_id: str
ReturnsExpand Collapse
class DownloadGetStatusResponse:
job_id: str

The job id associated with the download request

job_status: str

The current job status

download_url: Optional[str]

The download url

Get Status

import os
from scenario_sdk import Scenario

client = Scenario(
    api_key=os.environ.get("SCENARIO_SDK_API_KEY"),  # This is the default and can be omitted
    api_secret=os.environ.get("SCENARIO_SDK_API_SECRET"),  # This is the default and can be omitted
)
response = client.assets.download.get_status(
    "jobId",
)
print(response.job_id)
{
  "jobId": "jobId",
  "jobStatus": "jobStatus",
  "downloadUrl": "downloadUrl"
}
Returns Examples
{
  "jobId": "jobId",
  "jobStatus": "jobStatus",
  "downloadUrl": "downloadUrl"
}