API Documentation

GET /screenshots/:guid

Fetch screenshots data for a given guid.

Example Request:

curl "https://api.preflight.qa/screenshots/abc123" \
  -H "Authorization: Bearer <api_token>" \
  -H "Content-Type: application/json"

Example Response

Returns a collection of all the requested screenshots, with the app, mode, status, and url if complete:

{
  "data":{
    "screenshots": [
      {
        "app": "outlook_mac",
        "mode": "light",
        "status": "complete",
        "url": "http://preflight.qa/screenshot.png"
      },
      {
        "app": "outlook_mac",
        "mode": "dark",
        "status": "pending",
        "url": null
      }
    ]
  },
  "meta":{
    "guid": "abc123"
  }
}