API Documentation
Webhook Responses
Once a screenshot has been successfully captured, we attempt to send a request to the webhook specified in the initial create request.
In the event of request failure, we attempt to make the webhook request a total of 5 times before giving up.
Screenshot URLs expire 7 days after the request is made. If you need to access these screenshot images outside this 7 day window you can download and store or host the image asset elsewhere.
Delivery semantics
- A
2xxresponse is treated as successful delivery. - Non-
2xxresponses or request timeouts are treated as failures. - Delivery attempts are 1 initial request + up to 4 retries.
Example Screenshot Webhook payload
The following is an example POST request with
Content-Type: application/json sent to your webhook:
{
"data":{
"screenshot":{
"app": "outlook_mac",
"mode": "dark",
"status": "complete",
"url": "https://preflight.qa/screenshot.png"
}
},
"meta": {
"uuid": "1b153496-f702-4f89-85b4-cd1a9516cbbe"
}
}