For long-running or high-volume tasks, you can choose to receive the result asynchronously via a webhook.
webhook_url
must:
Parameter | Type | Description |
---|---|---|
webhook_url | string | The URL to which the webhook will be sent. |
webhook_signed | bool | If true, the webhook payload will be signed using your secret_key . |
webhook_signed
is set to true, we include a signature in the webhook request header:
secret_key
and the payload. You can verify the signature to ensure the request is from us.
secret_key
.X-Screenshotmax-WebHook-Signature
header.Field | Type | Description |
---|---|---|
id | string | The unique identifier for the request. |
file | string | The URL to the generated file. |
expires | number | The timestamp (in seconds) when the file will expire. |
created | number | The timestamp (in seconds) when the request was created. |
async
parameter to true.
async
to true in your request:
webhook_url
, if provided.async
parameter to your request (either GET or POST):
POST Example
async
to true, the API will respond with a 202 Accepted status code. The response will look like this:
webhook_url
, you will also receive the result automatically once ready
Need help? Contact us at support@screenshotmax.com