# Getting Groups/Segments

### Get Segments/Groups

This API endpoint allows you to retrieve segments for your Reekolect application.

**Endpoint URL:** `https://api.v7.express-chat.com/inbox/segments`

**HTTP Method:** GET

#### Request Headers

* `Authorization`: A bearer token is required for authentication. Replace `[MASKED_TOKEN]` with your valid API token. This token is used to authenticate and authorize the request.

#### Sample Request

```bash
curl 'https://api.v7.express-chat.com/inbox/segments' \
  -H 'Authorization: Bearer [MASKED_TOKEN]' \
  -H 'Content-Type: application/json' \
  --compressed
```

Replace `[MASKED_TOKEN]` in the request with your actual API token.

#### Response

The API will respond with a JSON object containing the segments available in your Reekolect application. The response format may vary depending on the segments you have configured.

Please replace `[MASKED_TOKEN]` in the request with your actual API token for actual usage.

### :question: Got any questions?

If you have any questions, you can look into our repository of FAQs, most likely, you will find your answer here, If not, write us at <production@Reekolect.co.za>


---

# 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://help.reekolect.ai/api-references/contacts-and-chats-apis/getting-groups-segments.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.
