v1

latestOpenAPI 3.1.1Proprietary2026-07-2687313591.4 KB
Opportunities

Get all Opportunities

Paginate 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.

get/v2/opportunities

Query parameters

cursorstring
Example:ICAgICAgYmVmb3JlOjo6Nw

Cursor for the next or previous page

limitinteger
Example:100

Number of items to include in the page

idsinteger[]

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"
  }
}