Skip to main content
POST
Create a CRM opportunity

Authorizations

Authorization
string
header
required

Runtime context-key (rctx_*) issued by the Ravi gateway. Required for every non-open scope. Bootstrap the first key with ravi daemon init-admin-key; rotate, derive, and revoke via the ravi context family. Specs: runtime/context-keys, sdk/auth.

Body

application/json
title
string
required

Opportunity title

account
string

CRM account ID

contact
string

Contact ID or identity

currency
string

Currency (default: BRL)

idempotencyKey
string

Deduplicate repeated opportunity creation

owner
string

Owner, e.g. agent:main

pipeline
string

Pipeline ID or name

stage
string

Pipeline stage key or ID

value
string

Opportunity value in cents

Response

Success — body conforms to the @Returns schema.

changedCount
number
required
status
string
required
{key}
any