Skip to main content
POST
Open deal

Authorizations

Authorization
string
header
required

An API key, starting ak_. Create one under Settings > MCP and API in Steerco.

Headers

X-Workspace-Id
string
required

The workspace id. GET /v1/workspaces lists yours.

Body

application/json
companyId
string

The company the deal is with. Leave unset for a deal with people and no company.

Pattern: ^[0-9a-fA-F]{24}$
people
string[]

The people on the deal, by id.

Minimum array length: 1
Pattern: ^[0-9a-fA-F]{24}$
stage
enum<string>

Where the deal starts: booked, met or proposal.

Available options:
booked,
met,
proposal
owner
string

The teammate who owns the deal, by userId.

Pattern: ^[0-9a-fA-F]{24}$
amount
number

The deal's amount.

Required range: x >= 0
currency
string

The deal's currency, such as USD.

Pattern: ^[A-Z]{3}$
expectedCloseOn
string<date>

The day the deal is expected to close, YYYY-MM-DD.

Pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$
confirmationToken
string

The confirmationToken from this tool's preview. Leave it out to get a preview; nothing changes until you send it.

Required string length: 1 - 256

Response

A preview, when the body has no confirmationToken. The applied write, when it has one.

status
enum<string>
required
Available options:
preview
confirmationToken
string
required

Send this back with the same input to apply the write. It works for this call only.

expiresAt
string
required

When the token stops working, 10 minutes after the preview.

preview
any

What the write would change. Nothing has changed yet.