Optisway home
Documentation menu

REST API reference: Optisway API

The Optisway REST API lets your scripts and CI pipelines start test runs, read results and run history, and download the evidence of every run. All paths in this documentation are relative to the base URL https://optisway.com/api/v1.

At a glance

Every request carries an API key that an owner or admin creates in Settings → Integrations → API keys. Requests and responses are JSON over HTTPS; only the two evidence downloads return files. The version is part of the path, so v1 keeps its shape while later versions are added beside it.

How this documentation is organised

Guides explain how the API behaves: authentication, errors, pagination, rate limits, versioning, ready-made recipes and a CI job. Each guide is short, so read them in order the first time.

Resources describe what you can read and do: keys, projects, tests and runs. Each resource page shows its object fields with an example, then every endpoint with its parameters, example requests in eight languages, the example response and the errors it can return.

Base URL https://optisway.com/api/v1

Endpoints

REST v1 endpoints
EndpointMethodPathAccessReturns
Who am IGET/meReadThe key (id, name, access, creation and expiry), its organisation and its project, or null for every project.
List projectsGET/projectsRead{ items: Project[] }: the projects the key can see; a project-scoped key sees only its project.
Read a projectGET/projects/{id}ReadOne Project.
List testsGET/tests?project=&kind=&query=Read{ items: Test[] }, filtered by project, kind or a query of 2–100 characters.
Read a testGET/tests/{id}ReadOne Test.
Create a testPOST/projects/{id}/testsManageCreates a test in the project: 201 Created with the new Test and a Location header. The body takes name, kind, url, description, scheduleMinutes and enabled.
Update a testPATCH/tests/{id}ManageChanges the name, url, description, scheduleMinutes, enabled or notificationRouting of a test and returns the updated Test.
Delete a testDELETE/tests/{id}ManageDeletes a test and its runs: 204 No Content, or 409 run_in_progress while a run is queued or running.
List the runs of a testGET/tests/{id}/runs?limit=&before=Read{ items: Run[], next }: the test’s runs, newest first.
Start a runPOST/tests/{id}/runsRunStarts a run: 202 Accepted with the new Run and a Location header. A body is optional and ignored.
List notification channelsGET/notification-channelsRead{ items: NotificationChannel[] }: the organisation’s Slack, Teams, Pumble and PagerDuty channels, for notificationRouting.channelIds.
List runsGET/runs?project=&test=&status=&limit=&before=Read{ items: Run[], next }: runs in the key’s scope, filtered by project, test or status.
Read a runGET/runs/{id}ReadOne Run with its checks, findings and artifacts.
Download the artifacts ZIPGET/runs/{id}/artifactsReadThe run’s evidence as a ZIP file, or 404 not_found when it has none.
Download one artifact fileGET/runs/{id}/files?path=ReadOne file from that ZIP file, such as path=report.pdf.

Optisway / Website quality

Your next improvement starts with a clearer picture.

Start with one website, one important journey, and one problem worth solving.

Create account