JavaScript
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}}; fetch('https://api.decart.ai/v1/jobs/{job_id}/content', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>", "input": "<unknown>", "ctx": {} } ] }
Download the result of a completed job.
Returns: Binary content (image/video) or error if not ready/not found
API key for authentication
Successful Response
Was this page helpful?