Authentication
API Requests
Update Comparison
Available fields:
- "status" - 'QUEUED','RUNNING','FINISHED','FAILED' or 'CANCELED'
- "result" - 'PASSED','FAILED','SKIPPED' or 'ERROR'
- "retries" - number of retries of this test, integer
Path Parameters
Parameter | Value |
---|---|
id | 123 |
Request Body (JSON)
"status": "QUEUED"
List Pages
Lists all pages from your organization
Query Parameters
Parameter | Value |
---|---|
orderBy | created_at |
orderDir | desc |
limit | 500 |
offset | 0 |
Add a Page
Headers
Header | Value |
---|---|
Content-Type | application/json |
Request Body (JSON)
"comment": null,
"page_group_id": 123
Update a Page: Change URL and page comment
Page "url" can be a relative URL (for example "/about", in that case production, staging or development domain configured for a website will be used, or "url" can be set to an absolute URL (for example "https://example.com").
Headers
Header | Value |
---|---|
Content-Type | application/json |
Path Parameters
Parameter | Value |
---|---|
id | 123 |
Request Body (JSON)
"url": "http://example.org"
Update a Page: Pause to exclude from future test runs for now
Setting "paused_at" to any non-null value will pause the page and it will be excluded from all future comparisons.
Headers
Header | Value |
---|---|
Content-Type | application/json |
Path Parameters
Parameter | Value |
---|---|
id | 123 |
Request Body (JSON)
Update a Page: Move to a different page group
Headers
Header | Value |
---|---|
Content-Type | application/json |
Path Parameters
Parameter | Value |
---|---|
id | 123 |
Request Body (JSON)
Delete a Page
Path Parameters
Parameter | Value |
---|---|
id | 123 |
Create Screenshot for URL
NOT async, takes up to 45s
url
parameter accepts special syntax for making screenshots of pages that depend on scroll.
For example:
https://www.example.com/@!0,2
- scroll the page 2 screen heights vertically before taking a screenshot.https://www.example.com/@0,1000
- scroll the page 1000px vertically.https://www.example.com/@!.container,0,1
- scroll the page 1 screen height down relative to the top of a.container
element on the page
You can also supply credentials for the Basic HTTP authentication - https://user:password@example.com
Query Parameters
Parameter | Value |
---|---|
url | https://www.example.com/ |
width | 1440 |
height | 1024 |
Compare URL vs Uploaded Screenshot (NOT async, takes up to 60s)
Headers
Header | Value |
---|---|
Content-Type | multipart/form-data |
Request Body (Multipart Form)
Parameter | Value |
---|---|
url | https://example.com |
threshold | 0.2 |
screenshot | @file() |
Load Screenshot by ID
Path Parameters
Parameter | Value |
---|---|
screenshot_id | 123 |
Load Processed Screenshot by ID
Path Parameters
Parameter | Value |
---|---|
screenshot_id | 123 |
Single Image With Previous, Current and Difference Screenshots Side-by-Side
Generates a single image with previous, current and difference Screenshots side-by-side. Can be used in notifications.
Path Parameters
Parameter | Value |
---|---|
comparison_id |
List TestRuns
Query Parameters
Parameter | Value |
---|---|
orderBy | created_at |
orderDir | desc |
limit | 500 |
offset | 0 |
Get TestRun Details
Path Parameters
Parameter | Value |
---|---|
test_run_id | 123 |
Send TestRun Notifications
Path Parameters
Parameter | Value |
---|---|
test_run_id | 123 |
Preview TestRun Notifications
Shows notifications (Email, Slack) that would be send for this testrun.
Path Parameters
Parameter | Value |
---|---|
test_run_id | 123 |
Delete TestRun Notifications (only Slack)
Deletes sent Slack notifications for this testrun. Works only if Slack was connected via OAuth2, doesn't work for Webhook connections.
Path Parameters
Parameter | Value |
---|---|
test_run_id | 123 |
Cancel TestRun
Marks test run as canceled, stops all queued comparison from further processing, but allows already running ones to finish.
Path Parameters
Parameter | Value |
---|---|
test_run_id | 123 |
Resume Canceled TestRun
Resumes cancelled test run by adding all canceled comparisons to processing queue.
Path Parameters
Parameter | Value |
---|---|
test_run_id | 123 |
Start a New Test Run
Starts a new test, returns test run id:
Example response:
{
"test_run_id": 4388
}
Path Parameters
Parameter | Value |
---|---|
test_id | 123 |
List Tests
Example response:
{
"data": [
{
"id": 21,
"created_at": "2024-09-03T11:12:33.059Z",
"updated_at": "2024-09-03T11:12:33.059Z",
"project_id": 15,
"name": "Test Name",
"test_history": "NONE",
"test_compare_from": "PROD",
"test_compare_to": "NONE",
"test_errors": "NONE",
"page_groups": [
{
"id": 21,
"description": "All Pages",
"created_at": "2024-09-03T11:12:33.052Z",
"updated_at": "2024-09-03T11:12:33.052Z",
"website_id": 15,
"page_group_manager_id": 4
}
]
}
],
"total_count": 1
}
Query Parameters
Parameter | Value |
---|---|
orderBy | created_at |
orderDir | desc |
limit | 500 |
offset | 0 |
Current User Details
Example response:
{
"data": {
"id": 16,
"login": "user1",
"name": "Test user",
"email": "",
"created_at": "2024-09-03T11:12:33.033Z",
"updated_at": "2024-09-03T11:12:33.033Z",
"organization_id": 1,
"organization": {
"id": 1,
"name": "Org Name",
"created_at": "2024-09-03T11:12:33.004Z",
"updated_at": "2024-09-17T10:22:30.061Z",
}
}
}
List all Users within Current Organization
Query Parameters
Parameter | Value |
---|---|
orderBy | created_at |
orderDir | desc |
limit | 500 |
offset | 0 |
Get a Website
Headers
Header | Value |
---|---|
Content-Type | application/json |
Path Parameters
Parameter | Value |
---|---|
id | 123 |
Add a Website
Headers
Header | Value |
---|---|
Content-Type | application/json |
Request Body (JSON)
"prod_domain": " https://example.com/ ",
"project_id": 1
Update a Website
Headers
Header | Value |
---|---|
Content-Type | application/json |
Path Parameters
Parameter | Value |
---|---|
id | 123 |
Request Body (JSON)
"dev_domain": "https://dev.example.com"
Delete a Website
Path Parameters
Parameter | Value |
---|---|
id | 123 |
List Websites
Query Parameters
Parameter | Value |
---|---|
orderBy | created_at |
orderDir | desc |
limit | 500 |
offset | 0 |