Webhooks

Search our documentation:

Toggle Documentation Menu

Jump to...
  • Test Webhook - The payload sent to any specified test webhook via POST


Test Webhooks

The payload sent to any specified test webhook via POST

Sample Payload
{
  "type": "result",
  "data": {
    "_id": "5e2b7133854c611834aa6ceb",
    "autoRetry": false,
    "autoRetryTriggered": false,
    "browser": "chrome-79",
    "commentCount": 0,
    "comments": [],
    "console": [
      {
        "_id": "5e2b714065c1671520bc20e6",
        "dateExecuted": "2020-01-24T22:35:38.468Z",
        "error": false,
        "output": "An  element was lazyloaded with loading=lazy, but had no dimensions specified. Specifying dimensions improves performance. See https://crbug.com/954323",
        "url": "https://ghostinspector.com/"
      }
    ],
    "dateCreated": "2020-01-24T22:35:31.256Z",
    "dateExecutionFinished": "2020-01-24T22:35:44.348Z",
    "dateExecutionStarted": "2020-01-24T22:35:36.451Z",
    "deleted": false,
    "disableVisuals": false,
    "disallowInsecureCertificates": false,
    "endUrl": "https://ghostinspector.com/docs/",
    "executionHost": "test001.ghostinspector.net",
    "executionTime": 7897,
    "failOnJavaScriptError": false,
    "filters": [],
    "finalDelay": 0,
    "globalStepDelay": 250,
    "language": null,
    "maxAjaxDelay": 10000,
    "maxWaitDelay": 15000,
    "name": "Login and Check Dashboard",
    "organization": {
      "_id": "5a1b419ae40144279f9ac680",
      "name": "Ghost Inspector"
    },
    "passing": true,
    "region": "us-east-1",
    "screenshot": {
      "original": {
        "defaultUrl": "https://ghostinspector-example.s3.amazonaws.com/screenshots/f4357288-944a-4acd-97a0-c8a9b617dd54-original.png",
        "dims": {
          "h": 2708,
          "w": 1024
        },
        "path": "screenshots/f4357288-944a-4acd-97a0-c8a9b617dd54-original.png",
        "size": 221486
      },
      "small": {
        "defaultUrl": "https://ghostinspector-example.s3.amazonaws.com/screenshots/f4357288-944a-4acd-97a0-c8a9b617dd54-small.png",
        "dims": {
          "h": 846,
          "w": 320
        },
        "path": "screenshots/f4357288-944a-4acd-97a0-c8a9b617dd54-small.png",
        "size": 70909
      }
    },
    "screenshotCompareBaselineResult": {
      "_id": "5e2b6344854c611834aa6ce5",
      "screenshot": {
        "original": {
          "defaultUrl": "https://ghostinspector-example.s3.amazonaws.com/screenshots/b21ca485-c15b-40bd-9a5c-d9251f1948ef-original.png",
          "dims": {
            "h": 2708,
            "w": 1024
          },
          "path": "screenshots/b21ca485-c15b-40bd-9a5c-d9251f1948ef-original.png",
          "size": 221486
        },
        "small": {
          "defaultUrl": "https://ghostinspector-example.s3.amazonaws.com/screenshots/b21ca485-c15b-40bd-9a5c-d9251f1948ef-small.png",
          "dims": {
            "h": 846,
            "w": 320
          },
          "path": "screenshots/b21ca485-c15b-40bd-9a5c-d9251f1948ef-small.png",
          "size": 70909
        }
      }
    },
    "screenshotCompareDifference": 0,
    "screenshotCompareEnabled": true,
    "screenshotComparePassing": true,
    "screenshotCompareThreshold": 0.01,
    "startUrl": "https://ghostinspector.com",
    "steps": [
      {
        "_id": "5e2b714165c1671520bc20eb",
        "command": "click",
        "condition": null,
        "dateExecuted": "2020-01-24T22:35:40.954Z",
        "extra": {
          "source": {
            "sequence": 0,
            "test": "5e2a0b342d0f5947444c31fc"
          }
        },
        "notes": "",
        "optional": false,
        "passing": true,
        "private": false,
        "sequence": 0,
        "target": ".site-logo a",
        "url": "https://ghostinspector.com/",
        "value": "",
        "variableName": ""
      },
      {
        "_id": "5e2b714165c1671520bc20ec",
        "command": "open",
        "condition": null,
        "dateExecuted": "2020-01-24T22:35:42.754Z",
        "extra": {
          "source": {
            "sequence": 1,
            "test": "5e2a0b342d0f5947444c31fc"
          }
        },
        "notes": "",
        "optional": false,
        "passing": true,
        "private": false,
        "sequence": 1,
        "target": "",
        "url": "https://ghostinspector.com/",
        "value": "/docs/",
        "variableName": ""
      }
    ],
    "suite": {
      "_id": "5a1e1b90154014760af39ef5",
      "name": "Smoke Tests"
    },
    "suiteResult": null,
    "test": {
      "_id": "5e2a0b342d0f5947444c31fc",
      "name": "Login and Check Dashboard",
      "organization": "5a1b419ae40144279f9ac680",
      "suite": "5a1e1b90154014760af39ef5"
    },
    "urls": [
      "https://ghostinspector.com",
      "https://ghostinspector.com/",
      "https://ghostinspector.com/docs/"
    ],
    "user": {
      "_id": "55b2accc4f66690c07294201",
      "name": "Justin Klemm"
    },
    "uuid": "f4357288-944a-4acd-97a0-c8a9b617dd54",
    "video": {
      "dims": {
        "h": 768,
        "w": 1024
      },
      "path": "videos/f4357288-944a-4acd-97a0-c8a9b617dd54.mp4",
      "url": "https://ghostinspector-example.s3.amazonaws.com/videos/f4357288-944a-4acd-97a0-c8a9b617dd54.mp4"
    },
    "viewportSize": {
      "height": 768,
      "width": 1024
    }
  }
}