---
title: "Export a lead's status history"
method: GET
path: "/leads/{leadId}/status-history/export"
tags: ["LeadStatusChanges"]
---

# Export a lead's status history

`GET /leads/{leadId}/status-history/export`

## Request

- Base URL: `https://api.leadping.ai`
- URL: `https://api.leadping.ai/leads/{leadId}/status-history/export`
- Auth: HTTP bearer

Exports lead status change data for one lead, packaging outcome history for reporting, audit review, or handoff workflows.

## Path parameters

- `leadId` string, required

## Response `200`

Returns the lead status change export response.

- LeadStatusChangeExportResponse: Describes lead status change export data returned by Leadping.
  - `fileName` string: Suggested file name for the exported CSV document.
  - `contentType` string: MIME content type of the exported document.
  - `csv` string: Complete comma-separated values content encoded as text.
  - `rows` LeadStatusChangeExportRow[]: The rows included with this lead status change export.
    - `leadId` string, nullable: The lead ID associated with this lead status change export row.
    - `leadStatusChangeId` string, nullable: The lead status change ID associated with this lead status change export row.
    - `type` string, nullable: Category of status change represented by this exported row.
    - `outcome` string, nullable: Result of the interaction or workflow step represented by this exported row.
    - `category` 'Open' | 'Qualified' | 'Converted' | 'Lost' | 'Invalid' | 'Duplicate', nullable: Controlled lead status change categories used for reporting, automation, and analytics.
    - `oldLeadStatusChangeId` string, nullable: Unique identifier of the old lead status change associated with this Leadping lead status change export row.
    - `oldLeadStatusChangeType` string, nullable: Old lead status change type classification for this Leadping lead status change export row.
    - `oldLeadStatusChangeOutcome` string, nullable: Old lead status change outcome associated with this Leadping lead status change export row.
    - `newLeadStatusChangeId` string, nullable: Unique identifier of the new lead status change associated with this Leadping lead status change export row.
    - `changeSource` 'User' | 'AI' | 'Automation' | 'System' | 'API', nullable: Known sources that can change a lead's current lead status change.
    - `changedByUserId` string, nullable: Unique identifier of the Leadping user who made the change.
    - `changedByAutomationId` string, nullable: Unique identifier of the automation that changed the lead status change, when applicable.
    - `changedAt` string, date-time, nullable: Date and time when the lead status change change occurred.
    - `reason` string, nullable: Human-readable explanation for the current lead status change export row outcome.
    - `followUpStatus` string, nullable: The current follow up status for this lead status change export row.
    - `callbackAt` string, date-time, nullable: UTC timestamp for callback at on this lead status change export row.
    - `taskDueAt` string, date-time, nullable: UTC timestamp for task due at on this lead status change export row.
    - `appointmentStartAt` string, date-time, nullable: UTC timestamp for appointment start at on this lead status change export row.
    - `appointmentEndAt` string, date-time, nullable: UTC timestamp for appointment end at on this lead status change export row.
    - `assignedToUserId` string, nullable: The assigned to user ID associated with this lead status change export row.
    - `sourceId` string, nullable: The source ID associated with this lead status change export row.
    - `relatedCallEventId` string, nullable: The related call event ID associated with this lead status change export row.
    - `isMissedCallFollowUp` boolean: Whether this lead status change export row is missed call follow up.
    - `notes` string, nullable: The operator or customer notes recorded for this lead status change export row.
    - `createdAt` string, date-time: UTC timestamp for created at on this lead status change export row.
    - `updatedAt` string, date-time: UTC timestamp for updated at on this lead status change export row.

## Other responses

- `400`: The request contains invalid values or fails validation.
- `401`: Authentication credentials are missing or invalid.
- `403`: The caller does not have permission to perform this operation.
- `404`: The requested resource was not found.
- `429`: The client or account rate limit was exceeded. Retry after the interval in the Retry-After header.
- `500`: An unexpected error prevented the server from completing the request.

## Changes

- **2026-11-11** `81aed8c9afb7`: 2 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `500`

[Operation history](https://skmtc.dev/leadping/apis/leadping-api/changes/leads/:leadId/status-history/export/get.md)

---

[API](https://skmtc.dev/leadping/apis/leadping-api.md) - [All operations](https://skmtc.dev/leadping/apis/leadping-api/llms.txt) - [OpenAPI document](https://skmtc.dev/leadping/apis/leadping-api/revisions/bf1852acaf45?raw)
