Hanzo AI
OpenapiCrm

List opportunities

Returns the caller org's deals, most recently updated first.

GET /v1/crm/opportunities

Addresshttps://api.hanzo.ai/v1/crm/opportunities
MethodGET
Operationget_crm_opportunities
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the caller org's deals, most recently updated first. A stage narrows the page to one pipeline stage.

Request

2 fields.

FieldInTypeRequiredDescription
stagequerystring—Stage returns only the opportunities at that pipeline stage when set (NEW, SCREENING, MEETING, PROPOSAL or CUSTOMER; case-insensitive).
limitqueryinteger—Limit caps the rows returned: 200 by default, 1000 at most.

Response

StatusBodyMeaning
200oppListok

200 body — 11 fields.

FieldInTypeAlwaysDescription
databodyOpportunity[]—Data is the page of opportunities, most recently updated first.
data[].amountbodyinteger—Amount is the deal value in minor units (cents) of Currency.
data[].closeDatebodyinteger—CloseDate is the expected close as a unix second (0 = unset).
data[].companyIdbodystring—CompanyID links the deal to one of the org's companies; empty when unlinked, and cleared when that company is deleted.
data[].createdAtbodyinteger—CreatedAt is the unix second the opportunity was created.
data[].currencybodystring—Currency is the ISO code Amount is denominated in; a write that names none stores USD.
data[].idbodystring—ID is the server-minted opportunity id ("oppo_" + 128 random bits).
data[].namebodystring—Name is the deal name.
data[].pointOfContactIdbodystring—PointOfContact links the deal to one of the org's contacts; empty when unlinked, and cleared when that contact is deleted.
data[].stagebodystring—Stage is the pipeline stage, always one of NEW, SCREENING, MEETING, PROPOSAL or CUSTOMER — stored upper-case whatever case the write used.
data[].updatedAtbodyinteger—UpdatedAt is the unix second of the last write.

Failure carries the platform error shape — see Errors.

Examples

hanzo crm opportunities list

CRM API · All Hanzo APIs · Interactive reference

How is this guide?

On this page