Getting the status of the job via callback

Once a job is created, you need to know if the job failed, was completed successfully or if it is still processing.

By sending a callback url together with the job, you will be notified instantly when the job finished either with the status failed or completed.

The information received in your callback script has the same structure as the response in Send a job with a remote file.

POST /jobs HTTP/1.1
Host: https://api2.online-convert.com
X-Oc-Api-Key: <your API key here>
Content-Type: application/json
{
    "input": [{
        "type": "remote",
        "source": "http://static.online-convert.com/example-file/raster%20image/jpg/example_small.jpg"
    }],
    "conversion": [{
        "target": "png"
    }],
    "callback": "<put your callback url here>"
}
curl -X POST \
  https://api2.online-convert.com/jobs \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -H 'x-oc-api-key: <your API key here>' \
  -d '{
    "input": [{
        "type": "remote",
        "source": "http://cdn.online-convert.com/example-file/raster%20image/png/example_small.png"
    }],
    "conversion": [{
        "category": "image",
        "target": "png"
    }],
    "callback": "<put your callback url here>"
}'

results matching ""

    No results matching ""