---
title: "Segments"
method: POST
path: "/api/onboarding/segments"
tags: ["onboarding"]
---

# Segments

`POST /api/onboarding/segments`

## Request

- Base URL: `https://api.getle.ad` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getle.ad/api/onboarding/segments`
- Auth: none declared

The six audiences the run found, as People filters, with a real count each.

Reads the stored /ai-gtm run for the domain. When the run is missing the
two steps this needs (company, campaigns) they are produced here, so a
customer who typed a site the funnel never saw still gets audiences.

## Headers

- `authorization` string

## Request body

- SegmentsRequest
  - `domain` string, required
  - `countries` string[]
  - `run_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/getle/apis/lead-generator-pro-api.md) · [All operations](https://skmtc.dev/getle/apis/lead-generator-pro-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getle/apis/lead-generator-pro-api/revisions/041155e6d905?raw)
