Skip to content
First requestVisit website ↗
Navigation

Count contacts by their latest Lead Perfection call result code

Returns how many of the workspace's contacts have each code as their current latest LP call result, the same value the rules Preview evaluates (contacts whose last sync found no call are not counted). Feeds the "Contacts with code" column on the call result rules table. Owners and admins only.

GET
https://api.channelautomation.com/api/integrations/leadperfection/result-rules/code-counts

Authorization

  • BearerAuth
    HTTP Bearer (JWT)
    required

Header parameters

  • x-workspace-id
    string
    required

Returns

200

Counts keyed by upper-case code, e.g. {"success":true,"by_code":{"AP":12,"NA":340}}. Codes no contact has are absent.

403

Not an admin, or the workspace does not match the signed-in workspace.

Type to search…

↑↓ navigate↵ selectEsc close