> For the complete documentation index, see [llms.txt](https://docs.questera.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.questera.ai/integrations/customer-data-platforms/segment.md).

# Segment

Segment is a leading Customer Data Platform (CDP) that collects, cleans, and controls customer data from multiple touchpoints, making it easy to route that data to hundreds of downstream tools for analytics, marketing, and personalization.

\
**How it works**

#### Step 1: Add HTTP API Source in Segment

1. Sign in to your [Segment Workspace](https://app.segment.com/).
2. Navigate to Connections → Sources.
3. Click Add Source and search for "HTTP API".
4. Select HTTP API and provide a name (e.g., "Questera Integration") and optional labels.
5. Click Add Source to confirm.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdsCn4Rsc-K-H49l6caozt8aHtbObRkb99erB7n6I7MIN2Q5fHO5Do8TAYIfQhezAjLys8WTRqh52RvE3xw2YoO9tOTXIUuBADdGQ_OWriYjz8vtBQ3eOF48kQIpWTA4ZkoOLcA?key=B7tqI3ctRltH_VsErWMcNi1J" alt=""><figcaption></figcaption></figure>

#### Step 2: Copy the Segment API Key

1. Once the source is created, the Write Key (API Key) will be displayed.
2. Copy this key (you’ll need it for Questera).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdvLCUKE34-KUxfzcTxrZpCAcIFOh41JDcrgiSem5Co_8n2BvMvvl_mr3ViQW3eQjKMl1xkYP_jeQWXkCI_JqJHANVFe98u0hmnwM_bPjtOEQp17vXBh53uB-VQ6H_5SuvXl8eW?key=B7tqI3ctRltH_VsErWMcNi1J" alt=""><figcaption></figcaption></figure>

#### Step 3: Paste the API Key in Questera

1. Go to your Questera dashboard (or the relevant integration section).
2. Paste the Segment API Key where required.
3. Save the settings—the integration is now complete!

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf-04z2eK62wQ_sISLlCHMz1RyGCm48qF_R-O0cAk_3rXVsq7tO-UMNvIsF4nAp5M7zAUvlT4Y-_1iT7t-e6Pwc_7eF_EZyZ5EFpfr3Gq8SwYxvx_lcdfkro1JCC9BOGfkueJKCJQ?key=B7tqI3ctRltH_VsErWMcNi1J" alt=""><figcaption></figcaption></figure>

<br>

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.questera.ai/integrations/customer-data-platforms/segment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
