Waiting for the result or using a webhook
With the wait parameter the response can hold the connection for up to 50 seconds and return the finished result. Longer documents return status 202 and an address to check later.
You can also pass a callback_url. We sign each webhook with HMAC-SHA256 and retry up to six times if your server does not answer with a 2xx status.