Skip to main content
POST
Create opportunity

Authorizations

X-API-Key
string
header
required

Your Flozy API key. Starts with flz_live_.

Body

application/json
stage_id
integer
required
Example:

11

lead_id
integer
required
Example:

42

value
number
required
Required range: x >= 0
Example:

15000

expected_close_date
string
required

Calendar date as YYYY-MM-DD. A full ISO 8601 date-time (2026-01-31T10:00:00Z) is also accepted and truncated to its date part — the timezone offset is ignored, so 2026-01-31T23:00:00-05:00 stores 2026-01-31. The column is a SQL DATE, so no time is ever kept. Any other value, including an impossible date such as 2026-02-30, is rejected with a validation error naming the field and the accepted formats.

Example:

"2026-07-31"

confidence
integer
default:70
Required range: 0 <= x <= 100
Example:

80

note
string | null

Response

Opportunity created.