API

Use our API for custom integration.

Request Screenshot Data

POST https://api-screenshot.visual-knight.io/v1

This endpoint allows you to send an image to our backend which will perform the regression

Headers

Request Body

{
    url: "MY_PRESIGNED_URL",
    testSessionId: "SOME_TEST_SESSION_ID"
}

POST https://api-screenshot.visual-knight.io/v1

Request Body

POST https://api-screenshot.visual-knight.io/v1

Request Body

POST https://api-screenshot.visual-knight.io/v1

Request Body

Upload screenshot

PUT https://yourpresigned.url/

Uploads the decoded screenshot to the presigned url endpoint The screenshot must be decoded as Base64 added via body You receive the presigned url from the Request Screenshot Data Api

Headers

Testsession Status

GET https://api-testsession.visual-knight.io/v1

Requests the status for a given test session id

Query Parameters

{
  /**
   * The value of the mismatch with the baseline comparison
   * if no baseline exists this value is null
   */
  misMatchPercentage: number | null;
  // Has the screenshot the same dimension like the baseline
  isSameDimensions: boolean | null;
  
  /**
   * link to the test session in visual knight if an error occures
   * An error can be e.g.: no baseline, mismatch higher than allowed
   */
  link: string;
}

Last updated