# Customer.io

### Setup <a href="#setup" id="setup"></a>

1. [Log in](https://fly.customer.io/login) to customer.io and go to *Settings* > *Integrations*.
2. Find and select **Reporting Webhooks**.
3. Click **Add Reporting Webhook**.
4. Enter the **Webhook Endpoint** URL from the [Sources Page](https://app.freshpaint.io/sources). It should look like `https://api.perfalytics.com/webhooks/customer-io/<your env id>`
5. Select the events you want to send to Freshpaint.
6. Select the following options:
   * **Send Frequency:** Select "Send every time the event occurs"
   * **Body Content:** If you want email or sms body content or headers included in your events, select this option.
7. Choose **Save and Enable Webhook** at the bottom right of the page
8. You can now test the endpoint by going to the [Live View](https://app.freshpaint.io/events/liveview) page on Freshpaint, and trigger a test event from Customer.io's webhook page. You should see an event come in called "Email: Sent"


---

# 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://documentation.freshpaint.io/integrations/sources/customer.io.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.
