# TestTau API Reference For Agents ## Mail Public base path: ```text https://mail.testtau.com/i//api ``` Private base path: ```text https://mail.testtau.com/private/i//api Authorization: Bearer ``` Useful endpoints: - `GET /list` - list recent messages. - `GET /quota` - return stored message quota. - `GET /wait?timeout=15000&subject=&text=` - long-poll for a matching message. - `GET /message/` - parsed message JSON. - `GET /message//json` - parsed message JSON. - `GET /message//raw` - raw `.eml`. - `DELETE /message/` - delete one message. - `DELETE /all` - wipe inbox. ## Hooks Public capture: ```text POST https://hook.testtau.com/ ``` Public inspect API: ```text https://hook.testtau.com/_//api ``` Private capture: ```text POST https://hook.testtau.com/private/ ``` Private inspect API: ```text https://hook.testtau.com/private/_//api Authorization: Bearer ``` Useful endpoints: - `GET /list` - list recent captures. - `GET /request/` - capture metadata. - `GET /body/` - capture body. - `PUT /config` - set response behavior or JSON Schema. - `POST /replay/?target=` - replay capture. - `GET /assert?since=&min_count=1` - CI assertion gate. - `DELETE /request/` - delete one capture. - `DELETE /all` - wipe hook.