---
title: "Admin Inject Test Event"
method: POST
path: "/api/tradeworkz/admin/inject-test-event"
tags: ["TradeWorkz"]
---

# Admin Inject Test Event

`POST /api/tradeworkz/admin/inject-test-event`

## Request

- Base URL: `https://api.zerogex.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.zerogex.io/api/tradeworkz/admin/inject-test-event`
- Auth: HTTP bearer

Synthesize a fake entry / exit / lifecycle notification for a bot.

Drives the same ``notifications.fanout_event`` helper the reconciler
uses on real ticks, so every follower of the bot whose channel
preferences include the enabled channel gets a row in
``tw_notifications_log``:
  * in_app  — status='sent' (visible in the bell immediately)
  * email   — status='queued' (delivery worker picks it up ≤60s)
  * webhook — status='queued' (delivery worker not yet wired)

Body:
    bot_id (required): the bot to attribute the fake event to.
    event_type: 'entry' | 'exit' | 'both'. Default 'exit'.
    payload: optional dict of overrides merged over the synthesized
             default payload for the event type.

## Request body

- object

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zerogex/apis/zerogex-api.md) · [All operations](https://skmtc.dev/zerogex/apis/zerogex-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zerogex/apis/zerogex-api/revisions/753b26bf0592?raw)
