40+ Assertion Types

Validate every aspect of API responses with 40+ built-in assertions.

What It Does

The assertion engine provides 40+ built-in assertion types that validate status codes, response bodies, headers, response times, and data types. Categories include: Status Code assertions (equals, range, not-equals), Header assertions (exists, contains, regex), Body assertions (JSONPath equals, contains, type-check, schema validation), Performance assertions (response time < threshold), and Custom assertions (JavaScript code in a secure QuickJS sandbox with access to response, headers, and status). AI automatically selects and configures the most relevant assertions when generating tests — but you can override, add, or remove any assertion from the visual editor.

Endpoint functional coverage with assertion categories — schema, auth depth, performance SLA, error body validation

Overview

From status codes and JSON schema to response time and custom JavaScript — 40+ built-in assertion types ensure thorough validation of every API response. Assert on status codes, response headers, JSON body fields (with JSONPath), XML bodies (with XPath), response time thresholds, data types, array lengths, regex patterns, and more. For advanced scenarios, write custom JavaScript assertions that run in a secure QuickJS sandbox with access to the full response object. AI automatically suggests the most relevant assertions for each endpoint based on its schema, so you get comprehensive validation without manual configuration.

Key Capabilities

Status code, headers, and response body assertions
JSON schema validation, JSONPath, and field type checking
Response time and performance threshold assertions
Custom JavaScript assertions via secure QuickJS sandbox
Regex pattern matching on any response field
Array length, null check, exists/not-exists, and range assertions

How It Works

  1. 1

    Select assertion types from the visual assertion builder with autocomplete

  2. 2

    Configure expected values, operators, thresholds, and JSONPath/XPath selectors

  3. 3

    AI suggests relevant assertions based on your endpoint schema and response models

  4. 4

    Custom JavaScript assertions run in a QuickJS sandbox for security

  5. 5

    Each assertion shows a clear pass/fail result with expected vs. actual values in reports

Available on

All Plans

Included in the free trial — no credit card required.

Included in all plans
See pricing →

Try Assertions Today

Start your 15-day free trial — no credit card required.