---
title: "Get customer analytics (segments, top customers, by country)"
method: POST
path: "/api/gpt/get_customers"
---

# Get customer analytics (segments, top customers, by country)

`POST /api/gpt/get_customers`

## Request

- Base URL: `https://datapulse.app`
- URL: `https://datapulse.app/api/gpt/get_customers`
- Auth: HTTP bearer

## Request body

- object
  - `report` 'segments' | 'top' | 'by_country', required
  - `sortBy` string
  - `limit` integer

## Response `200`

Customer analytics

---

[API](https://skmtc.dev/ask-ai-data-connector/apis/ask-ai-data-connector-analytics-api.md) · [All operations](https://skmtc.dev/ask-ai-data-connector/apis/ask-ai-data-connector-analytics-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ask-ai-data-connector/apis/ask-ai-data-connector-analytics-api/revisions/090956a39888?raw)
