انتقل إلى المحتوى الرئيسي

List an agent's leads

GET 

/v1/agents/:agentId/leads

x-scope: "leads:read"

Pinned leads (pinned: true) come first, on the first page only, then the rest newest first. Later pages never contain pinned leads, so if more leads are pinned than limit, the extra ones are not returned: use a limit (up to 100) above the number of pinned leads. The filters (status, search, creation dates, assignee, custom fields and last activity) combine: a lead is listed only when it matches all of those sent. To find leads nobody has worked lately, send last_activity_before (for example, now minus 7 days) with the statuses your team still works.

Request​

Responses​

A page of leads.

Response Headers
    X-Correlation-ID

    Correlation id for this request — paste into support tickets.