Get all Opportunities
Changed onPaginate through Opportunities in Affinity. Returns basic information but not field data on each Opportunity.
To access field data on Opportunities, use the /lists/{list_id}/list-entries or the /v2/lists/{list_id}/saved-views/{view_id}/list-entries GET endpoint.
Requires the "Export data from Lists" permission.
Request
- Base URLhttps://api.affinity.co
- URLhttps://api.affinity.co/v2/opportunities
- AuthHTTP bearer
Query parameters
Cursor for the next or previous page
Number of items to include in the page
Opportunity IDs
Response
OK
Example response
{
"data": [
{
"id": 1,
"name": "Horizon Technologies Upsell $10k",
"listId": 1,
"listName": "Pipeline Q1 2024"
}
],
"pagination": {
"prevUrl": "https://api.affinity.co/v2/foo?cursor=ICAgICAgYmVmb3JlOjo6Nw",
"nextUrl": "https://api.affinity.co/v2/foo?cursor=ICAgICAgIGFmdGVyOjo6NA"
}
}Changes
- info
added
authenticationauthorizationbad-requestconflictmethod-not-allowednot-acceptablenot-foundnot-implementedrate-limitservertimeoutunprocessable-entityunsupported-media-typevalidationdiscriminator mapping keys to the/response property for the response status - info
added
bad-requestvalidationdiscriminator mapping keys to the/response property for the response status
- info