Appearance
Opportunities
Endpoints of the public API tagged Opportunities, generated from the API's OpenAPI document. Base URL: your API origin, for example https://api.example.com. See API overview and API keys and scopes.
Pipelines and their stages
text
GET /api/v1/rest/pipelines- Operation id:
listPipelines - Scope:
opportunities:read
Response (200): { success: true, data: { items, nextCursor } }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
name | string | yes | |
stages | array | yes |
List opportunities
text
GET /api/v1/rest/opportunities- Operation id:
listOpportunities - Scope:
opportunities:read
Parameters
| Name | In | Required | Type |
|---|---|---|---|
limit | query | no | integer |
cursor | query | no | string |
pipelineId | query | no | string |
stageId | query | no | string |
status | query | no | string |
contactId | query | no | string |
Response (200): { success: true, data: { items, nextCursor } }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
pipelineId | string | yes | |
stageId | string | yes | |
contactId | string | yes | |
name | string | yes | |
valueAmount | number | yes | |
currency | string | yes | |
status | string | yes | |
source | string | yes | |
expectedCloseDate | string | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
Create an opportunity
text
POST /api/v1/rest/opportunities- Operation id:
createOpportunity - Scope:
opportunities:write
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
pipelineId | string | yes | |
stageId | string | no | |
contactId | string | yes | |
name | string | yes | |
value | object | no | |
source | string | no | |
expectedCloseDate | string | no |
Response (201): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
pipelineId | string | yes | |
stageId | string | yes | |
contactId | string | yes | |
name | string | yes | |
valueAmount | number | yes | |
currency | string | yes | |
status | string | yes | |
source | string | yes | |
expectedCloseDate | string | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
Update an opportunity
text
PATCH /api/v1/rest/opportunities/{opportunityId}- Operation id:
updateOpportunity - Scope:
opportunities:write
Parameters
| Name | In | Required | Type |
|---|---|---|---|
opportunityId | path | yes | string |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | no | |
value | object | no | |
source | string | no | |
expectedCloseDate | string | no |
Response (200): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
pipelineId | string | yes | |
stageId | string | yes | |
contactId | string | yes | |
name | string | yes | |
valueAmount | number | yes | |
currency | string | yes | |
status | string | yes | |
source | string | yes | |
expectedCloseDate | string | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
Get an opportunity
text
GET /api/v1/rest/opportunities/{opportunityId}- Operation id:
getOpportunity - Scope:
opportunities:read
Parameters
| Name | In | Required | Type |
|---|---|---|---|
opportunityId | path | yes | string |
Response (200): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
pipelineId | string | yes | |
stageId | string | yes | |
contactId | string | yes | |
name | string | yes | |
valueAmount | number | yes | |
currency | string | yes | |
status | string | yes | |
source | string | yes | |
expectedCloseDate | string | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
Move an opportunity to a stage
text
POST /api/v1/rest/opportunities/{opportunityId}/move- Operation id:
moveOpportunity - Scope:
opportunities:write
Parameters
| Name | In | Required | Type |
|---|---|---|---|
opportunityId | path | yes | string |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
stageId | string | yes |
Response (200): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
pipelineId | string | yes | |
stageId | string | yes | |
contactId | string | yes | |
name | string | yes | |
valueAmount | number | yes | |
currency | string | yes | |
status | string | yes | |
source | string | yes | |
expectedCloseDate | string | yes | |
createdAt | string | yes | |
updatedAt | string | yes |
Mark an opportunity won, lost, abandoned or open again
text
POST /api/v1/rest/opportunities/{opportunityId}/status- Operation id:
setOpportunityStatus - Scope:
opportunities:write
Parameters
| Name | In | Required | Type |
|---|---|---|---|
opportunityId | path | yes | string |
Request body
| Field | Type | Required | Notes |
|---|---|---|---|
status | string (open, won, lost, abandoned) | yes | |
note | string | no |
Response (200): { success: true, data }
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | yes | |
pipelineId | string | yes | |
stageId | string | yes | |
contactId | string | yes | |
name | string | yes | |
valueAmount | number | yes | |
currency | string | yes | |
status | string | yes | |
source | string | yes | |
expectedCloseDate | string | yes | |
createdAt | string | yes | |
updatedAt | string | yes |