Black Friday in 1 day: will your customers be able to pay? 25% off the first year and free setup, until 30 NovemberSee the offer →

Integration

Ping, Flow, Chain — runs, incidents and SLA

Ping vs Flow vs Chain, triggering runs, maintenance and availability targets.

Get my API keyOpenAPI contract

Full document, no authentication, ready for your client generator.

Ping and Chain

type: "http" requires `url` (Ping) or `httpChain` (Chain, 1–10 hops). Checks: expectedStatus, expectText, headers, JSONPath, timing, TLS / DNS. intervalSec sets cadence. enabled: false prepares without alerting. Hop bodies and headers are never returned on read.

POST minimal

curl -X POST https://api.pathlyhq.com/v1/scenarios \
  -H "Authorization: Bearer $PATHLY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: http-home-v1" \
  -d '{
    "type": "http",
    "name": "Home",
    "url": "https://www.example.com/",
    "intervalSec": 300,
    "expectedStatus": 200,
    "severity": "critical"
  }'

POST Chain — login then /me

curl -X POST https://api.pathlyhq.com/v1/scenarios \
  -H "Authorization: Bearer $PATHLY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: chain-me-v1" \
  -d '{
    "type": "http",
    "name": "Login then /me",
    "intervalSec": 300,
    "httpChain": [
      {
        "name": "Login",
        "method": "POST",
        "url": "https://api.example.com/login",
        "body": "{"email":"[email protected]"}",
        "assertStatus": 200,
        "extractJson": { "path": "token", "as": "token" }
      },
      {
        "name": "Me",
        "method": "GET",
        "url": "https://api.example.com/me",
        "assertStatus": 200
      }
    ]
  }'

PATCH — pause

curl -X PATCH https://api.pathlyhq.com/v1/scenarios/{id} \
  -H "Authorization: Bearer $PATHLY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"enabled": false}'

PowerShell

$headers = @{ Authorization = "Bearer $env:PATHLY_API_TOKEN" }
Invoke-RestMethod -Method Get -Uri "https://api.pathlyhq.com/v1/scenarios" -Headers $headers

Flow

type: "browser" requires a step AST. Create the journey in the console (recorder): login, cart, 2FA. The API can reference and trigger, but must not carry customer credentials in Git.

On read you get a scenario fingerprint, not secret details. Use it to detect out-of-band changes (console vs Terraform).

Runs

A run is a billable execution. GET /v1/runs lists history. Trigger POST (runs:trigger) starts an immediate smoke — useful in post-deploy CI. Watch plan quota: API rate limit and commercial quota are distinct.

The trigger answers at once with { "queued": true }: the run is queued. Find it with GET /v1/runs?scenarioId=…, then read its verdict on GET /v1/runs/{id}. ok: everything passed. fail: a step or a check failed. error: a network or browser error, the run did not complete. When a screenshot exists, screenshotUrl is a signed link valid for 15 minutes.

Recent list

curl "https://api.pathlyhq.com/v1/runs?limit=20" \
  -H "Authorization: Bearer $PATHLY_API_TOKEN"

Trigger (if available on your plan / scope)

curl -X POST https://api.pathlyhq.com/v1/scenarios/{id}/run \
  -H "Authorization: Bearer $PATHLY_API_TOKEN" \
  -H "Idempotency-Key: smoke-$(git rev-parse --short HEAD)"

Incidents

Incidents aggregate consecutive failures per escalation policy. Read: incidents:read. Write (ack / notes per contract): incidents:write. Unknown id → 404.

curl "https://api.pathlyhq.com/v1/incidents?limit=50" \
  -H "Authorization: Bearer $PATHLY_API_TOKEN"

Maintenance and SLA

Maintenance windows: silence alerts during a planned slot (deploys). Availability targets (SLA): threshold and scope, alerts when error budget burns. Both are first-class IaC resources.

Terraform — maintenance + SLA

resource "pathly_maintenance_window" "friday_deploy" {
  scenario_id = pathly_scenario.checkout.id
  starts_at   = "2026-09-26T22:00:00Z"
  ends_at     = "2026-09-26T23:00:00Z"
  reason      = "Friday deploy"
}

resource "pathly_sla_target" "checkout" {
  scenario_id         = pathly_scenario.checkout.id
  name                = "Checkout"
  objective_pct       = 99.9
  window_days         = 30
  exclude_maintenance = true
}