Skip to main content

Assertions

Assertions validate that your API returns the correct response. Add them to any API request block to automatically verify the results.

Adding assertions

  1. Click a block to open the side panel
  2. Go to the Assert tab
  3. Click + Add Assertion
  4. Select the assertion type and enter the expected value

Assertion types

Free

Pro

Results

After running, each assertion shows:
  • Pass — green checkmark with the actual value
  • Fail — red X with expected vs actual values
Failed assertions turn the block red on the canvas, making it easy to spot issues. Assertion results

Block indicator

Blocks with assertions show a shield icon on the canvas with the assertion count, so you can see at a glance which blocks have validation. Block with assertion indicator
Start with a simple “Status code equals 200” assertion on every block. This catches obvious failures immediately.