Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • Every call pins API version 2026-09-17 with the X-Affinity-Api-Version header.
  • Field data comes back only for the fields named in fieldIds or fieldTypes; get the ids from the fields calls. Several values repeat the key (fieldIds=a&fieldIds=b).
  • Paging is a cursor: follow pagination.nextUrl, or pass its cursor.
  • Limits: 900 requests per user per minute; monthly calls by plan (Scale and Advanced 100k, Enterprise unlimited); 429 when hit. Calls to API v1 and v2 share the pool.

Endpoints

Identify the key

List companies

  • A POST that only searches; it changes nothing. Beta.
  • Needs the Export All Organizations directory permission. With no body it lists all companies.

Get a company

Get a company’s relationships

  • interactionScore runs from 0.0 to 1.0.

List company fields

List persons

  • A POST that only searches; it changes nothing. Beta.
  • Needs the Export All People directory permission.

List lists

List a list’s fields

List a list’s entries

List a saved view’s entries

List opportunities

  • Needs the Export data from Lists permission.

List notes