Skip to main content
GET
/
v2
/
opportunities
/
{opportunityId}
Get a single Opportunity
curl --request GET \
  --url https://api.affinity.co/v2/opportunities/{opportunityId} \
  --header 'Authorization: Bearer <token>'
{
  "id": 4503599627370496,
  "name": "<string>",
  "listId": 4503599627370496
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

opportunityId
integer<int64>
required

Opportunity ID

Required range: 1 <= x <= 9007199254740991

Response

OK

Opportunity model

id
integer<int64>
required

The unique identifier for the opportunity

Required range: 1 <= x <= 9007199254740991
Example:

1

name
string
required

The name of the opportunity

Example:

"Acme Upsell $10k"

listId
integer<int64>
required

The ID of the list that the opportunity belongs to

Required range: 1 <= x <= 9007199254740991
Example:

1