Skip to content
All help articles

The API

Let your own systems read and add contacts and leads.

WhereSettings, then API

Steps

  1. 1Open Settings and choose API. Only an owner sees this unless an owner has switched it on for someone else under Team.
  2. 2Under Make a key, give the key a name that says what will use it, tick what it may do, and choose Make the key.
  3. 3Copy the key straight away. It is shown once. Keep it on a server, never in a web page.
  4. 4Send the key with every call, in a header: Authorization: Bearer followed by the key.
  5. 5To read contacts, call GET /api/v1/contacts. Add ?q= to search by name, phone or email, and ?limit= and ?offset= to page through them. GET /api/v1/contacts/ followed by an id reads one.
  6. 6To add a contact, call POST /api/v1/contacts with JSON holding first_name, last_name, and a phone or an email. If that phone or email is already on file you get that person back, unchanged apart from blanks being filled.
  7. 7To read leads, call GET /api/v1/leads. Add ?status=open or ?status=closed, or ?contact_id= for one person's leads.
  8. 8To add a lead, call POST /api/v1/leads with JSON holding either contact_id or a contact (first_name, last_name, phone or email), and optionally kind, source, message and a vehicle (vin, stock or description). Send an Idempotency-Key header so a retry cannot add the lead twice.
  9. 9To report a sale from your management system, call POST /api/v1/deals with JSON holding sold_on, a deal_number, and a contact (phone or email) or a vehicle (vin or stock). The customer's open lead closes as won and the vehicle comes off sale. The key needs Report sold deals ticked.
  10. 10To stop a key working, choose Revoke beside it. Revoking cannot be undone; make a new key instead.

Good to know

  • A lead added through the API lands on the Leads board and in the inbox, goes to your CRM, and alerts your team, like a lead from anywhere else.
  • Adding someone through the API does not record that they agreed to be texted, and the AI agent does not write to them first. Your team sees the lead and decides how to reach them.
  • Errors come back as JSON: an error with a code and a message in plain words. A key may make 120 calls a minute; past that the answer is 429 with a Retry-After header.
  • Every key made or revoked, and every contact or lead a key adds, is written to your audit log.