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.
Email Blocks
Email blocks are a Pro feature. Free users can see the feature but need to upgrade to use it.
How it works
- Your API sends an email (e.g., OTP to verify a signup)
- The email block waits for the email to arrive in your TestBrick inbox
- You extract the OTP or verification link from the email
- The next block uses the extracted value to complete the flow
Setup
Your inbox address
Each project folder has a unique email inbox. Click the Inbox button in the toolbar to copy the address (e.g.,abc123@inbox.testbrick.com).
Use this email address in your API requests:
Adding an email block
Click Email in the toolbar to add an email block.Configuration
Click the email block to open the side panel with three tabs:Settings
| Field | Description | Default |
|---|---|---|
| Timeout | How long to wait for the email (seconds) | 60 |
| From filter | Only match emails from this sender | Optional |
Extract
After running the flow, the email HTML appears in the Extract tab:- Click Extract Value
- Hover over elements in the email preview — they highlight
- Click the OTP code or verification link
- Choose the extraction pattern (6-digit code, alphanumeric, custom regex)
- Click Save Extraction
The extracted value becomes available as {{nodeId.value}} in subsequent blocks.
Assert
Toggle Assert email content to validate:| Assertion | Example |
|---|---|
| Subject contains | ”Verification” |
| From equals | ”noreply@example.com” |
| Body contains | ”Your code is” |