> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Shout a Signal into the Walkie-Talkie

> Trigger active automations by shouting an event with a contact and their backpack of goodies.

Whenever a user does something special in your app, shout into the walkie-talkie!

Calling this endpoint rings the doorbell on any active automations listening for this event, kicking off a brand-new journey for that user right away.

### Body

**event** `string` *required*

The name of the signal that just fired (e.g. `"user.signup"` or `"invoice.paid"`).

**email** `string`

The email address of the person who did the action. *(You must provide either `email` or `contact_id`).*

**contact\_id** `string`

The ID of the contact if they already live in your Mailofly Audience.

**payload** `object`

The backpack of goodies! Put any custom variables here that your email templates or conditions want to use:

```json theme={null}
{
  "first_name": "Maya",
  "order_id": "ORD-9912",
  "amount": 49
}
```

### Response

**object** `string`

Always says `"event"`.

**event** `string`

Echoes back the name of the signal that Mailofly heard and accepted.

```bash cURL theme={null}
curl -X POST 'https://api.mailofly.com/events/send' \
  -H 'Authorization: Bearer mf_live_xxxxxxxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "event": "user.signup",
    "email": "maya@example.com",
    "payload": {
      "first_name": "Maya",
      "plan": "pro"
    }
  }'
```

```javascript Node.js theme={null}
import { Mailofly } from "@mailofly/node";

const mailofly = new Mailofly("mf_live_xxxxxxxx");

const fired = await mailofly.events.send({
  event: "user.signup",
  email: "maya@example.com",
  payload: {
    first_name: "Maya",
    plan: "pro"
  }
});

console.log("Walkie-talkie signal heard:", fired.event);
```

```json 202 Accepted theme={null}
{
  "object": "event",
  "event": "user.signup"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.