Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.testbrick.com/llms.txt

Use this file to discover all available pages before exploring further.

Your first API flow

API flows let you chain multiple API requests together on a visual canvas. Data flows between requests automatically.

Steps

1

Create an API flow

In your project folder, click + and select API Flow. Give it a name like “User API Test”.
2

Add your first block

Click API in the toolbar to add a request block. Click the block to open the side panel.Canvas with first block
3

Configure the request

In the side panel, set:
  • Method: GET
  • URL: https://jsonplaceholder.typicode.com/users/1
Click Send to test the request. The response appears in the Response tab.Side panel with response
4

Add a second block

Click API again to add another block. It auto-connects to the first one.Set:
  • Method: POST
  • URL: https://jsonplaceholder.typicode.com/posts
  • Body:
{
  "title": "Test Post",
  "body": "Hello from TestBrick",
  "userId": 1
}
Two connected blocks
5

Run the flow

Click Run All in the toolbar. Watch each block execute sequentially — blocks pulse purple while running, then turn green (pass) or red (fail).Flow running with purple animation
6

Share the results

After the run completes, click Share to copy a shareable link. Anyone with the link can see every request, response, and assertion result.Shared results page

Using data from previous blocks

When one block’s response contains data you need in the next block, type {{ in any field to see available variables: Variable autocomplete dropdown
  • URL: https://api.example.com/users/{{node_abc.body.id}}
  • Headers: Bearer {{node_abc.body.token}}
  • Body: {"userId": "{{node_abc.body.id}}"}
The autocomplete dropdown shows all available data from previous blocks and environment variables.
You don’t need to memorize variable names. Just type {{ and pick from the dropdown — it shows the actual values from the last run.

What’s next

Environment variables

Use variables like {{baseUrl}} to switch between dev, staging, and production

Assertions

Validate response status codes, body content, headers, and timing