API console

Your API application

Create one in the dashboard under Integrations, API applications.

Sign in to pick from your organisations' applications, or enter a client id and secret below.

Shown once, when the application was created or its secret rotated. Held in this page only.

Scopes to ask for

Tick none for every scope the application has.

Leave empty to send the request as your server would. A browser application only accepts requests from its allowed origins, so pick one of them.

No token yet.

GET /api/v1/crm/leads

List your leads

CRM: leads Server-only applications Scopes: read and crm or write and crm Read the docs

Query

Only leads with these outcomes, comma separated (for example won,lost): open, won, lost, dormant, disqualified, duplicate, invalid, not_interested or ineligible. Any other value is refused.

Only leads for this campaign.

Carry on after the page this came from (its next_cursor). Leave it out to start at the beginning.

Start with the leads changed at or after this time (ISO 8601), instead of from the beginning. Ignored when you send cursor.

How many leads per page, 1 to 200.

Ctrl + Enter sends too

Response

Send a request to see its response here.

Code

curl

The code reads your token from the SUBCONTEXT_TOKEN environment variable.