JavaScript
const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}}; fetch('https://api.decart.ai/v1/jobs/{job_id}', 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": {} } ] }
Get the status and metadata of a job by its ID. Poll this endpoint to check if your job has completed.
Successful Response
Was this page helpful?