Skip to content
Pulsian

API monitoring

Send the request your client sends, with its method, headers, body and credentials, then assert on the JSON that comes back. Up to 20 Assertions and 20 headers per Check.

15 days of the Team Plan, without a card.

params of an http Check
{
  "method": "POST",
  "headers": [{ "name": "x-tenant", "value": "check" }],
  "body": { "format": "json", "text": "{\"query\":\"ping\"}" },
  "auth": { "auth_type": "bearer", "token": "..." },
  "expected_statuses": "200",
  "timeout_ms": 5000,
  "degraded_response_time_ms": 800,
  "response_time_timing": "wait",
  "assertions": [
    { "source": "json", "property": "status", "comparison": "equals", "value": "ok" },
    { "source": "json", "property": "queue.waiting", "comparison": "less_than", "value": "500" }
  ]
}

Assertions on JSON

An Assertion compares a value in the answer: queue.waiting less than 500, or the run fails with the value it found. JSON paths read as you would write them:

  • data.items[0].id
  • $.status
  • items.0.id

Comparisons

Numbers compare as numbers. Text can ignore case. A pattern is a regular expression that runs in linear time.

Text
contains, not contains, equals, not equals
Pattern
matches, not matches
Number
less than, greater than, on JSON values
Presence
exists, not exists, on JSON values and headers
Sources
Body, header, JSON value, final URL
Value length
Up to 500 characters

Credentials stay sealed

A header marked secret, a Basic password or a Bearer token is encrypted before it is stored, apart from the rest of the Check. The API never returns it. Sending the setting without a value keeps the stored one.

If the target redirects to another origin, the credentials are dropped. Your token does not follow a redirect to a host you did not name.

A Timing for each phase

Each run keeps DNS, connect, TLS, wait and download apart, so a slow resolver and a slow query read differently. The Monitor’s chart draws the Response Time, the Timing you chose, with a line per Region.

One http Check result: its status, its Region and its Timings from DNS to download.

One run of an http Check in the app. Example data.

A URL Monitor page: the Uptime Check’s History, its Regions and Events, and its Inspection Checks.

A Monitor in the app. Example data.

Request settings

Methods
GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS
Body
JSON, form, XML or text, up to 10,000 characters
Authentication
None, Basic or Bearer
Expected status
Codes, ranges or classes: 200-299, 301, 2xx
Timeout
1 to 60 seconds, 5 by default
Interval
Up to 24 hours; your Plan sets the shortest

Limits

  • One Check sends one request. Values from one answer cannot feed the next request.
  • Client certificates (mutual TLS), OAuth token exchanges and request signing are not supported.
  • gRPC and WebSocket endpoints are not checked.
  • A run that writes does write: a POST every minute from three Regions is 4,320 requests a day. Point it at a route made for it.

API questions

Can I create these Checks from code?

Yes. Every route an API Key may call is in the API reference. An API Key acts with its own Role: admin, editor or viewer.

Can a Check expect an error?

Yes. Expect 401 without a token and the run fails the day the route opens to everyone.

Send your first request.

15 days of the Team Plan, without a card.