# 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> |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://experience-crm.gitbook.io/experience-crm-api/miscellaneous/create-an-event-to-send-a-campaign.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
