Endpoints
Every endpoint, with its parameters, an example request and a real response.
All addresses start with /v1/api. Each page shows who may call it, what to send, an example request you can copy, and an example answer.
| Endpoint | Does |
|---|---|
| GET /me | Check the key |
| GET /leads | List leads |
| POST /leads | Add a lead |
| GET /leads/duplicates | Find by phone or email |
| GET /leads/{leadId} | Get a lead |
| PATCH /leads/{leadId} | Change a lead |
| GET /leads/{leadId}/activities | A lead's history |
| GET and POST /leads/{leadId}/notes | Read and add notes |
| GET /stages, /sources, /products | The lists leads point at |
In this section
GET /me: check the keyReturns the workspace the key belongs to, the member it acts as, and what that member may do. The quickest way to test a key.GET /leads: list leadsNewest first, in pages of up to 100. You see only the leads the member behind the key may see.POST /leads: add a leadAdds one lead. Send a phone or an email (or both). The lead starts in the default stage unless you pick one.GET /leads/duplicates: find by phone or emailLooks for existing leads with this phone or email. Use it before adding, or to find a lead from a form.GET /leads/{leadId}: get a leadOne lead with its details.PATCH /leads/{leadId}: change a leadSend only what changes. Moving the stage works the same as in the app.GET /leads/{leadId}/activities: historyThe timeline, newest first: stage changes, notes, calls, emails. Paged by cursor, with no total.GET /leads/{leadId}/notes: list notesA lead's notes, newest first, paged by cursor like the history.POST /leads/{leadId}/notes: add a noteWrites a note on the lead's timeline.GET /stages: list stagesYour pipeline, in order. `category` is NEW, ACTIVE, NURTURE, WON, LOST or JUNK: use the category, not the name.GET /sources: list sourcesWhere leads come from (ads, website, walk-ins).GET /products: list what you sellWhat the workspace sells. The word follows its industry.
Something missing or unclear? Tell us and we will fix this page.