A release broke a customer journey.
Turn the actions your customers rely on into clear, repeatable checks. Start with a journey, define success, and know where to look when something changes.
Website testingThe 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.
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.
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
manage key it also creates, changes and deletes them, while their configuration stays in the app. Every test has a numeric id and a public tst_… id shown in the app, and both work wherever a path takes a test {id}.| Endpoint | Method | Path | Access | Returns |
|---|---|---|---|---|
| Who am I | GET | /me | Read | The key (id, name, access, creation and expiry), its organisation and its project, or null for every project. |
| List projects | GET | /projects | Read | { items: Project[] }: the projects the key can see; a project-scoped key sees only its project. |
| Read a project | GET | /projects/{id} | Read | One Project. |
| List tests | GET | /tests?project=&kind=&query= | Read | { items: Test[] }, filtered by project, kind or a query of 2–100 characters. |
| Read a test | GET | /tests/{id} | Read | One Test. |
| Create a test | POST | /projects/{id}/tests | Manage | Creates 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 test | PATCH | /tests/{id} | Manage | Changes the name, url, description, scheduleMinutes, enabled or notificationRouting of a test and returns the updated Test. |
| Delete a test | DELETE | /tests/{id} | Manage | Deletes 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 test | GET | /tests/{id}/runs?limit=&before= | Read | { items: Run[], next }: the test’s runs, newest first. |
| Start a run | POST | /tests/{id}/runs | Run | Starts a run: 202 Accepted with the new Run and a Location header. A body is optional and ignored. |
| List notification channels | GET | /notification-channels | Read | { items: NotificationChannel[] }: the organisation’s Slack, Teams, Pumble and PagerDuty channels, for notificationRouting.channelIds. |
| List runs | GET | /runs?project=&test=&status=&limit=&before= | Read | { items: Run[], next }: runs in the key’s scope, filtered by project, test or status. |
| Read a run | GET | /runs/{id} | Read | One Run with its checks, findings and artifacts. |
| Download the artifacts ZIP | GET | /runs/{id}/artifacts | Read | The run’s evidence as a ZIP file, or 404 not_found when it has none. |
| Download one artifact file | GET | /runs/{id}/files?path= | Read | One file from that ZIP file, such as path=report.pdf. |
Start with one website, one important journey, and one problem worth solving.