API reference/Opportunities
Create opportunity
Creates an opportunity and returns the created record with its generated id. Responds 201 on success, or 400 if the body fails validation.
Authorization
AuthorizationRequiredBearer <token>API key as Bearer token: Authorization: Bearer sk_live_.... Use sk_live_ prefixed keys for production data and sk_test_ prefixed keys for sandbox/test data.
In: header
X-API-Key<token>API key via header: X-API-Key: sk_live_.... Use sk_live_ prefixed keys for production data and sk_test_ prefixed keys for sandbox/test data.
In: header
Request Body
application/jsonRequiredtitleRequiredstringdescriptionstringvaluestringDecimal as string
stagestringDefault:
"discovery"Value in: "discovery" | "qualification" | "technical_evaluation" | "proposal" | "negotiation" | "closed_won" | "closed_lost"probabilityintegerMinimum:
0Maximum: 100expectedCloseDatestringFormat:
"date-time"accountIdstringFormat:
"uuid"leadSourcestringValue in:
"website" | "referral" | "cold_outreach" | "marketing" | "trade_show" | "partner"dealSizestringValue in:
"small" | "medium" | "large" | "enterprise"Created opportunity