Skip to content

Keyword assertions

Require or forbid text in a response body, with control over case sensitivity.

Core

Configuration

  • Required keyword: the body must contain this text.
  • Forbidden keyword: the body must not contain this text.
  • Case sensitivity: choose whether matching respects case.

Passing result

A monitor with a required keyword "status":"ok" passes when that exact text is present in the body.

Body that passes a required-keyword check
{ "status": "ok" }

Failing result

If the required text is absent, or a forbidden keyword appears, the check fails and, once verified, opens an incident.

Was this page helpful?