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
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.