Alerts and integrations

Send matches to a webhook

A webhook sends information about new matches to a URL that you control so that Mirroi can connect to your own systems.

On this page

A webhook is a URL that accepts HTTP requests. A webhook in Mirroi sends information about new matches to a URL that you control, which allows you to connect Mirroi to a CRM, a data warehouse, or an internal tool.

Add an endpoint

  1. Open Settings → Integrations and select Webhook endpoints.
  2. Enter the URL of the endpoint and a name that you will recognize.
  3. Select the events that the endpoint should receive, such as new matches, AI answer alerts, or spikes.
  4. Save the endpoint and run a Workflow to confirm that the request arrives.
  5. Select the endpoint in the Workflow that should send matches to it.

What the request contains

A request contains identifiers and links rather than the full text of the post. The request includes the match identifier, the Workflow, the source, the URL of the post, the score, the urgency, and the verdict. Use the identifiers to retrieve or update the corresponding record in your system.

The request is signed so that your endpoint can verify that it came from Mirroi. If the endpoint returns an error, Mirroi retries the request. Your endpoint should return a successful response before it performs time-consuming work.

Test the endpoint

Configure the endpoint to send requests to a request bin before you connect it to a production system. Run the Workflow once and inspect the request body. Verify the signature, the fields, and the retry behavior before you use the endpoint in production.

Common errors

  • A 401 or 403 response usually indicates that the signature check is rejecting the request. Verify the secret and the raw request body.
  • A timeout usually indicates that the endpoint is performing too much work before it responds. Queue the work and return a response immediately.
  • If no events arrive, the Workflow may not be meeting its action conditions, or the endpoint may not be selected in the Workflow.

Next