Skip to main content
GET
List leads
A lead is one contact this workspace knows: a phone number, whatever you know about the person behind it, and the tags you sort them by. This endpoint reads that list, newest first. Required scope: leads:read. Leads are the first step of the outreach journey: create or import contacts, tag them, enroll the tags you want to work into a campaign, and read the results back on the call records — every call that matches a lead carries the full lead object.
Deleted leads are gone from this list: Delete lead is a soft delete, and a soft-deleted lead is invisible to every read.

Response

tags is expanded in place — each entry is the tag’s id, name and color, so a list of leads never needs a second call to Lead Tags. metadata is whatever JSON object you stored, returned untouched, and {} when you stored nothing. source says how the lead first appeared: call for a lead created from a call the workspace took or placed, api for one created through this API, manual for one typed into the dashboard, and csv_import for one that arrived in a spreadsheet. Most rows in a busy workspace are call, which only Yappr writes; a create may claim any of the other three.

Errors

Authorizations

Authorization
string
header
required

Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys. No key is 401 MISSING_KEY; a key that is not one of ours, or is revoked, is 401 INVALID_KEY; an expired one is 401 EXPIRED_KEY. A valid key without the scope an operation needs is 403 INSUFFICIENT_SCOPE on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's RATE_LIMIT asks for what is left of the minute, a route's daily cap (RATE_LIMITED) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is 404 ROUTE_NOT_FOUND, and a method a served path does not take is 405 METHOD_NOT_ALLOWED with an Allow header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (POST /calls/ is POST /calls) and refused where it can (GET /calls/). A doubled slash inside a path is merged into one before the request reaches the API (GET //calls is GET /calls).

Query Parameters

Case-insensitive search across name, phone_number, and email. Part of a number finds the contact however it is written: 0527140, 052-714, +972 52 714 and 52 714 0311 all find +972527140311.

tag
string

Only leads carrying this tag, by the tag's name as GET /lead-tags returns it. A name no tag in the workspace has is 404 LEAD_TAG_UNKNOWN, never an empty page. Send tag or tag_id, not both.

tag_id
string<uuid>

The same filter by tag id. Send tag or tag_id, not both.

limit
integer
default:20
Required range: x <= 100
offset
integer
default:0

Response

List of leads

data
object[]
pagination
object