---
title: "Get latest raw Lead Perfection GetLead payload"
description: "Returns the latest stored raw GetLead payload by contact id or Lead Perfection cst id. Requires LEAD_PERFECTION_DATA_WINDOW."
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › Integrations

`GET /api/integrations/leadperfection/raw-lead`

Returns the latest stored raw GetLead payload by contact id or Lead Perfection cst id. Requires LEAD_PERFECTION_DATA_WINDOW.

## Authentication

- `BearerAuth`, http, header `Authorization`, format `JWT`

## Query parameters

- `workspaceId` (`get/api/integrations/leadperfection/raw-lead.query.workspaceId`; string, optional)
- `contactId` (`get/api/integrations/leadperfection/raw-lead.query.contactId`; string, optional)
- `cstId` (`get/api/integrations/leadperfection/raw-lead.query.cstId`; string, optional)

## Header parameters

- `x-workspace-id` (`get/api/integrations/leadperfection/raw-lead.header.x-workspace-id`; string, optional)

## Code samples

### cURL

```bash
curl --request GET \
  --url https://api.channelautomation.com/api/integrations/leadperfection/raw-lead \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/integrations/leadperfection/raw-lead';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/integrations/leadperfection/raw-lead"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Latest raw payload, or null.

### 400

Missing contactId or cstId.

### 403

Feature flag is not enabled.


Source: https://developer.channelautomations.com/api/get-api-integrations-leadperfection-raw-lead/index.md
