Affinity
Relationship CRM: companies, people, lists and opportunities
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- API keySecretRequired
Where to find them
- In Affinity: “Settings” → “Manage Apps” (under Developer Tools) → create an app and copy the key shown when you create it: it is not shown again.
- You need the “Generate an API key” permission, which an Affinity administrator grants (or ask one to create the key for you).
- The API is only available on certain Affinity license types: check with your administrator.
OAuth 2.0
PKCEYour OAuth appBring your own OAuth app: register one with Affinity, then create a custom auth config with its client ID and secret and our redirect URI. Setup guide
Registering the OAuth app
- An administrator opens “Settings” → “Manage Apps” in Affinity and clicks “New App” → “OAuth App” (if you do not see it, early access is not enabled: ask your Affinity contact to enable it; the Scale, Advanced or Enterprise plan is required).
- Name it “Maua.Culturewire” and add a description, choose the type “Confidential”, enter the redirect URI shown below in “Redirect URI” and select the permissions (scopes) shown below.
- Click “Create” and copy the “Client ID” and the “Client secret”: the secret is shown only once (if you lose it, delete the app and create another).
Default scopes
apioffline_access
Tools (1)
Affinity API request
AFFINITY_SEND_REQUESTAuthenticated call to the Affinity API (https://api.affinity.co). Any endpoint of the API is allowed. API v2 lives under /v2 and v1 at the root; the same key works for both. v2: GET /v2/companies?limit=20, GET /v2/persons?limit=20, GET /v2/lists/{listId}/list-entries, GET /v2/opportunities, POST /v2/notes (to paginate, use pagination.nextUrl from the response). v1: GET /organizations?term=company, GET /persons?term=name.
Required scopes
No scopes required
Input
Affinity API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically.

