API

Witnio API Docs.

Everything below talks to the same Control Plane API the dashboard uses.

Quickstart

Replace every <PLACEHOLDER>, including the brackets, before running these shell commands. Keep credentials private. WitnioClient/1.0 identifies your integration; use your own application name and version.

1. Register your organization and retain the access_token from the response. Use a unique organization slug.

curl -A "WitnioClient/1.0" -X POST https://api.witnio.com/api/v1/auth/register \
  -H "Content-Type: application/json" \
  -d '{"email":"<EMAIL>","password":"<STRONG_PASSWORD>","full_name":"<FULL_NAME>","tenant_name":"<ORGANIZATION>","tenant_slug":"<UNIQUE_ORG_SLUG>"}'

2. If MFA enrollment is required, add the returned otpauth_uri or QR code to your authenticator, store recovery codes securely, then submit its current TOTP code. For later logins with mfa_required, complete /auth/mfa/challenge using mfa_token and a current code.

curl -A "WitnioClient/1.0" -X POST https://api.witnio.com/api/v1/auth/mfa/enroll -H "Authorization: Bearer <ACCESS_TOKEN>"
curl -A "WitnioClient/1.0" -X POST https://api.witnio.com/api/v1/auth/mfa/verify \
  -H "Authorization: Bearer <ACCESS_TOKEN>" -H "Content-Type: application/json" \
  -d '{"code":"<CURRENT_TOTP>"}'

3. Purchase the appropriate service through checkout and complete its intake. Wait for activation before using service APIs. Your account must use multi-factor authentication (MFA), and you may only test sites you administer or are authorized to test. Intake creates the service checks, so read those first. View plans

4. Create an API key and store the returned key securely; use it as X-API-Key.

curl -A "WitnioClient/1.0" -X POST https://api.witnio.com/api/v1/api-keys \
  -H "Authorization: Bearer <ACCESS_TOKEN>" -H "Content-Type: application/json" \
  -d '{"name":"CI pipeline"}'

5. Read your activated checks. An empty list does not prove a successful run.

curl -A "WitnioClient/1.0" https://api.witnio.com/api/v1/monitor/checks -H "X-API-Key: <YOUR_KEY>"

Inspect HTTP status and the response body for validation, authorization, entitlement or quota failures. Error bodies may contain structured detail or problem+json; consult the API reference for each operation.

Full reference

Postman collection

Import the collection to explore every endpoint with example requests.

Download Postman collection