---
title: "Get customer behavior and retention insights"
method: POST
path: "/api/gpt/get_customer_insights"
---

# Get customer behavior and retention insights

`POST /api/gpt/get_customer_insights`

## Request

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

## Request body

- object
  - `report` 'new_vs_returning' | 'repeat_metrics' | 'cohorts' | 'by_category' | 'cohorts_by_first_purchase', required
  - `startDate` string
  - `endDate` string
  - `months` integer

## Response `200`

Customer insight data

---

[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)
