---
title: "Poll Lead Perfection for workspace call-result changes"
description: "Pulls live Lead Perfection GetLead activity for the workspace, matches or creates contacts by LP identifiers and phone/email, stores raw payloads, writes the latest call result to contact custom fields, and directly blocks SMS/email for DNC. An incremental full-history DNC scan resumes from saved progress on each poll. Activity batches also resume settled record checkpoints within the shared execution cap. A successful partial response has complete=false and continuation=true, with cumulative counts for the saved batch; it does not advance complete-sync freshness. Requires LEAD_PERFECTION_DATA_SYNC."
---

> 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

`POST /api/integrations/leadperfection/sync/workspace-poll`

Pulls live Lead Perfection GetLead activity for the workspace, matches or creates contacts by LP identifiers and phone/email, stores raw payloads, writes the latest call result to contact custom fields, and directly blocks SMS/email for DNC. An incremental full-history DNC scan resumes from saved progress on each poll. Activity batches also resume settled record checkpoints within the shared execution cap. A successful partial response has complete=false and continuation=true, with cumulative counts for the saved batch; it does not advance complete-sync freshness. Requires LEAD_PERFECTION_DATA_SYNC.

## Authentication

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

## Header parameters

- `x-workspace-id` (`post/api/integrations/leadperfection/sync/workspace-poll.header.x-workspace-id`; string, required) — Workspace id for the sync.

## Request body

_Optional._

- `workspace_id` (`post/api/integrations/leadperfection/sync/workspace-poll.workspace_id`; string, optional) — Optional fallback when x-workspace-id is not supplied.
- `lookbackDays` (`post/api/integrations/leadperfection/sync/workspace-poll.lookbackDays`; integer, optional)
  - min 0; max 7; default `1`

## Example request

```json
{
  "workspace_id": "string",
  "lookbackDays": 1
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url https://api.channelautomation.com/api/integrations/leadperfection/sync/workspace-poll \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-workspace-id: string' \
  --data '
{
  "workspace_id": "string",
  "lookbackDays": 1
}
'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/integrations/leadperfection/sync/workspace-poll';
const options = {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-workspace-id': 'string',
    Authorization: 'Bearer <token>'
  },
  body: JSON.stringify({workspace_id: 'string', lookbackDays: 1})
};

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/sync/workspace-poll"

payload = {
    "workspace_id": "string",
    "lookbackDays": 1
}
headers = {
    "Content-Type": "application/json",
    "x-workspace-id": "string",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Workspace poll settled; inspect complete and continuation before treating the batch as fully synced.

### 400

Missing workspace id.

### 403

Feature flag is not enabled.

### 404

Lead Perfection connection not found.

### 409

A sync is running for this workspace; try again in a minute.

### 500

Workspace poll failed.


Source: https://developer.channelautomations.com/api/post-api-integrations-leadperfection-sync-workspace-poll/index.md
