> For the complete documentation index, see [llms.txt](https://experience-crm.gitbook.io/experience-crm-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://experience-crm.gitbook.io/experience-crm-api/miscellaneous/create-an-event-to-send-a-campaign.md).

# Create an event to send a campaign

This API enables the management of event campaigns on the Experience CRM.&#x20;

The campaigns need to be created first in the Experience CRM for the respective establishment.&#x20;

With this API, you can trigger the delivery of an event campaign to a specific recipient. You can include tags in the request body that will be usable in the campaign.&#x20;

In order for these tags to function, they should be integrated into the campaign before the utilization of the API.

### Request&#x20;

<mark style="color:orange;">**POST**</mark> &#x20;

{% code overflow="wrap" %}

```url
https://interface.experience-hotel.com/api/xp-evenemential/create
```

{% endcode %}

```postman_json
{
  "event_name": "test-event",
  "contact_identifier": "test@test.com",
  "data": {
    "tags": {
      "guest-firstname": {
        "value": "John"
      },
      "expiration-date": {
        "value": "2024-09-12"
      },
      "vip-status": {
        "value": "Gold"
      }
    }
  }
}
```

| Fields              | Required | Description                                                                                    |
| ------------------- | -------- | ---------------------------------------------------------------------------------------------- |
| event\_name         | Required | The campaign event name. Can be found on the campaign in the CRM.                              |
| contact\_identifier | Required | Email or Mobile phone of the recipient.                                                        |
| data                | Optional | Object of data that can be used inside the campaign                                            |
| tags                | Optional | <p>Object of tags to be used in the campaign.<br>"tag-name": {<br>     "value":"xxxx"<br>}</p> |
