Skip to Content
User GuidesReaqtEnd-to-End Example

End-to-End Example

This example wires up a complete flow: receive an event, match it, and dispatch it to a provider.

  1. Create a provider. Go to Providers and select Create. For a quick test choose the type Log (no configuration needed) and save. For a real integration, choose Ascender, fill in the Base URL, Username, and Password, save, then select Sync to import templates. See Providers.

  2. Create a rule set. Go to Rule Sets and select Create. Give it a Name and a Slug (for example dev-servers). Save, then Copy the generated Ingest Token. See Rule Sets.

  3. Add a rule. Open the rule set, select Create, give the rule a name, and enter a Rulebook, for example:

    - name: Match everything for testing condition: - event.payload is defined

    Select your Provider (and a Template if it is an Ascender provider), optionally configure Rate Limiting, and save. See Rules.

  4. Send a test event to the listener, replacing the host with your listener's address:

    curl -X POST https://reaqt-listener.example.com/api/events/dev-servers \ -H "Content-Type: application/json" \ -H "X-Ascender-Token: <paste-ingest-token>" \ -d '{"message": "hello world"}'
  5. Verify. Open the Events page to see the received event and its status (Dispatched, Throttled, or Error), and check the Dashboard charts. See Events.