---
title: "Export a single collated lead for a conversation."
method: GET
path: "/api/v1/projects/{projectId}/reports/leads/{sessionId}/collated"
tags: ["Reports & Analytics"]
---

# Export a single collated lead for a conversation.

`GET /api/v1/projects/{projectId}/reports/leads/{sessionId}/collated`

## Request

- Base URL: `https://app.customgpt.ai`
- URL: `https://app.customgpt.ai/api/v1/projects/{projectId}/reports/leads/{sessionId}/collated`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/poll-the-people/apis/customgpt-ai/docs/api/v1/projects/:projectId/reports/leads/:sessionId/collated/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns one merged lead built from all lead rows in the conversation.

## Path parameters

- `projectId` integer, required
- `sessionId` string, required

## Response `200`

A single collated lead object for a conversation

- object
  - `status` 'error' | 'success': The status of the response
  - `data` ProjectLeadsExport
    - `project_id` integer: The project ID
    - `session_id` string, uuid: The Conversation Session ID
    - `query_id` integer: The query ID
    - `name` string, nullable: Lead name
    - `email` string, nullable: Lead email
    - `phone_number` string, nullable: Lead phone number
    - `company` string, nullable: Lead company
    - `captured_at` string, date-time: When the lead was captured
    - `other_data` object, nullable: Additional lead data
    - `user_defined` object, nullable: User-defined lead data
    - `tags` string[], nullable: Lead tags

## Other responses

- `400`: Bad Argument
- `401`: API Token is either missing or invalid
- `404`: Agent not found
- `429`: Too many requests. You have exceeded your API rate limit.
- `500`: Internal Server Error

## Changes

- **2026-11-03** `77aab4354382`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/poll-the-people/apis/customgpt-ai/changes/api/v1/projects/:projectId/reports/leads/:sessionId/collated/get.md)

---

[API](https://skmtc.dev/poll-the-people/apis/customgpt-ai.md) - [All operations](https://skmtc.dev/poll-the-people/apis/customgpt-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/poll-the-people/apis/customgpt-ai/revisions/77aab4354382?raw)
