You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/v1/affinity_api_docs.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -379,11 +379,11 @@ Use the common use cases below to learn how Affinity API endpoints work.
379
379
> - To reduce API calls, create any initial backfills with the REST API then use [Webhooks](#webhooks) to keep data synced. You may want to schedule occasional syncs via the REST API to fixed any inconsistencies
380
380
> - Your instance may contain multiple fields with the same name (e.g. Last Funding Date). To confirm the field ID, manually make an edit to the field in question and inspect the request payload for the bulk request. The field ID will be listed as `entityAttributeId`
381
381
> - The ID for a list, person, organization and opportunity can be found via the URL in the CRM. For a list `affinity.affinity.co/lists/[list_id]` and for a company profile `affinity.affinity.co/companies/[company_id]`
382
-
> - For large lists, use `page_size` and `page_token` parameters in the `[GET /lists/list_id}/list-entries](#get-all-list-entries)` endpoint to improve performance
382
+
> - For large lists, use `page_size` and `page_token` parameters in the [`GET /lists/list_id}/list-entries`](#get-all-list-entries) endpoint to improve performance
383
383
384
384
## Getting Field Values for All List Entries on a List
385
385
386
-
1. Query `[GET /lists](#get-all-lists)` to get all lists and filter results by list name to get the appropriate list ID
386
+
1. Query [`GET /lists`](#get-all-lists) to get all lists and filter results by list name to get the appropriate list ID
387
387
388
388
```
389
389
GET /lists Response:
@@ -400,7 +400,7 @@ GET /lists Response:
400
400
]
401
401
```
402
402
403
-
2. Query `[GET /lists/12058/list-entries](#get-all-list-entries)` to get all list entries. Store the `entity_id` associated with each list entry ID
403
+
2. Query [`GET /lists/12058/list-entries`](#get-all-list-entries) to get all list entries. Store the `entity_id` associated with each list entry ID
404
404
405
405
```
406
406
GET /lists/{list_id}/list-entries Response:
@@ -421,7 +421,7 @@ GET /lists/{list_id}/list-entries Response:
421
421
]
422
422
```
423
423
424
-
3. For each list entry, query `[GET /field-values](#get-field-values)` with the `entity_id` from the previous step. Make sure you are passing `entity_id` through the appropriate parameter (e.g person_id)
424
+
3. For each list entry, query [`GET /field-values`](#get-field-values) with the `entity_id` from the previous step. Make sure you are passing `entity_id` through the appropriate parameter (e.g person_id)
425
425
426
426
```
427
427
GET /field-values Response:
@@ -470,7 +470,7 @@ GET /fields Response:
470
470
471
471
## Getting Field Value Changes for Status Fields
472
472
473
-
1. Query `[GET /lists](#get-all-lists)` and filter results to get the appropriate list ID
473
+
1. Query [`GET /lists`](#get-all-lists) and filter results to get the appropriate list ID
474
474
475
475
```
476
476
GET /lists Response:
@@ -513,7 +513,7 @@ GET /fields Response:
513
513
]
514
514
```
515
515
516
-
3. Query `[GET /field-values-changes](#field-value-changes)` passing in the `id` from Step 2
516
+
3. Query [`GET /field-values-changes`](#field-value-changes) passing in the `id` from Step 2
517
517
518
518
```
519
519
GET /field-values-changes Response:
@@ -559,7 +559,7 @@ GET /field-values-changes Response:
559
559
]
560
560
```
561
561
562
-
4. Filter results of `[GET /field-values-changes](#field-value-changes)` (e.g.: If you only want status field changes for a specific organization in your list, search by the `list_entry_id`).
562
+
4. Filter results of [`GET /field-values-changes`](#field-value-changes) (e.g.: If you only want status field changes for a specific organization in your list, search by the `list_entry_id`).
563
563
564
564
```
565
565
GET /field-values-changes Response:
@@ -607,7 +607,7 @@ GET /field-values-changes Response:
607
607
608
608
## Getting the Strongest Relationship Strength Connection to an Organization on a List
609
609
610
-
1. Query `[GET /lists](#get-all-lists)` to get all lists and filter results to get the appropriate list ID
610
+
1. Query [`GET /lists`](#get-all-lists) to get all lists and filter results to get the appropriate list ID
611
611
612
612
```
613
613
GET /lists Response:
@@ -624,7 +624,7 @@ GET /lists Response:
624
624
]
625
625
```
626
626
627
-
2. Query `[GET /lists/12058/list-entries](#get-all-list-entries)` to get all list entries. Store the `entity_id` associated with each list entry ID
627
+
2. Query [`GET /lists/12058/list-entries`](#get-all-list-entries) to get all list entries. Store the `entity_id` associated with each list entry ID
628
628
629
629
```
630
630
GET /lists/{list_id}/list-entries Response:
@@ -651,7 +651,7 @@ GET /lists/{list_id}/list-entries Response:
651
651
]
652
652
```
653
653
654
-
3. For each list entry, query `[GET /organizations/{organization_id}](#get-a-specific-organization)` to get all list people associated with the organization. Store the `person_ids` associated with each organization
654
+
3. For each list entry, query [`GET /organizations/{organization_id}`](#get-a-specific-organization) to get all list people associated with the organization. Store the `person_ids` associated with each organization
655
655
656
656
```
657
657
GET /organizations/7133202 Response:
@@ -677,7 +677,7 @@ GET /organizations/7133202 Response:
677
677
}
678
678
```
679
679
680
-
4. For each person ID from Step 3, query `[GET /relationships-strengths](#get-relationship-strength)` passing in the person ID. Once all person IDs have been looped through, filter for the highest `strength`
680
+
4. For each person ID from Step 3, query [`GET /relationships-strengths`](#get-relationship-strength) passing in the person ID. Once all person IDs have been looped through, filter for the highest `strength`
681
681
682
682
```
683
683
GET /relationships-strengths Response:
@@ -1172,7 +1172,7 @@ Creates a new list entry in the list with the supplied list id.
1172
1172
1173
1173
#### Notes
1174
1174
1175
-
> - Opportunities cannot be created using this endpoint. Instead use the `[POST /opportunities](#create-a-new-opportunity)` endpoint.
1175
+
> - Opportunities cannot be created using this endpoint. Instead use the [`POST /opportunities`](#create-a-new-opportunity) endpoint.
1176
1176
> - Person and company lists can contain the same entity multiple times. Depending on your use case, before you add an entry, you may want to verify whether or not it exists in the list already.
1177
1177
1178
1178
#### Returns
@@ -1228,9 +1228,9 @@ By default, Affinity provides all teams with a few default global fields: For pe
1228
1228
1229
1229
#### Notes
1230
1230
1231
-
> - Global field IDs for persons are returned from `[GET /persons/fields](#get-global-person-fields)`
1232
-
> - Global field IDs for organizations are returned from `[GET /organizations/fields](#get-global-organizations-fields)`
1233
-
> - List-specific field IDs are also returned from `[GET /lists/{list_id}](#get-a-specific-list)`
1231
+
> - Global field IDs for persons are returned from [`GET /persons/fields`](#get-global-person-fields)
1232
+
> - Global field IDs for organizations are returned from [`GET /organizations/fields`](#get-global-organizations-fields)
1233
+
> - List-specific field IDs are also returned from [`GET /lists/{list_id}`](#get-a-specific-list)
1234
1234
1235
1235
## The Field Resource
1236
1236
@@ -1630,7 +1630,7 @@ An array of all the field values associated with the supplied `person`, `organiz
1630
1630
1631
1631
> - Exactly one of `person_id`, `organization_id`, `opportunity_id`, or `list_entry_id` must be specified to the endpoint.
1632
1632
> - If a `person_id`, `organization_id`, or `opportunity_id` is specified, the endpoint returns all field values tied to these entities - including those that are associated with all list entries that exist for the given person or organization. Opportunities can only have one list entry.
1633
-
> - Smart fields cannot be retrieved using the field values endpoint. Smart field values can be retrieved using the `with_interaction_dates` parameter on the `[GET /persons/{person_id}](#get-a-specific-person)` or `[GET /organizations/{organization_id}](#get-a-specific-organization)` endpoints. The people associated with smart fields can be retrieved using the `with_interaction_persons` on the `[GET /persons/{person_id}](#get-a-specific-person)` or `[GET /organizations/{organization_id}](#get-a-specific-organization)` endpoints.
1633
+
> - Smart fields cannot be retrieved using the field values endpoint. Smart field values can be retrieved using the `with_interaction_dates` parameter on the [`GET /persons/{person_id}`](#get-a-specific-person) or [`GET /organizations/{organization_id}`](#get-a-specific-organization) endpoints. The people associated with smart fields can be retrieved using the `with_interaction_persons` on the [`GET /persons/{person_id}`](#get-a-specific-person) or [`GET /organizations/{organization_id}`](#get-a-specific-organization) endpoints.
1634
1634
> - Field values endpoint does return Crunchbase fields, but with `null` values.
0 commit comments