Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Ids carry a type prefix: lead_, cont_, oppo_, user_, orga_, stat_, save_.
- List calls page with _limit and skip; advanced-filter search pages with a cursor that expires after 30 seconds. Custom field values appear as custom.cf… keys.
- Rate limits are per endpoint group, per API key, with an organization limit three times higher. On 429 wait the rate_reset seconds the answer gives; the RateLimit header shows limit, remaining and reset.
- Money values (opportunity value, revenue) are in cents.
Endpoints
Get the key’s user
List leads
- Comes from the search index, so very recent changes may be missing. To filter, use close-crm.search.
Get a lead
List contacts
List opportunities
- Values are in cents. The answer also carries totals over every match (total_results, total_value_one_time, total_value_monthly, total_value_annual…).
List activities
- Some filters (user_id, contact_id, several types) only work together with a single lead_id.
List tasks
Search with advanced filters
- A POST that only searches; it changes no data.
- Field names and conditions are listed on the Advanced Filtering Fields page; custom fields are custom.cf_…
Get an activity report
- A POST that only reads a report.
- Durations are in seconds and revenue in cents.
List activity report metrics
Get the opportunity status report
- Values are in cents.