Skip to main content
POST
Move 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
dealId
string
required

The deal's id, from list_deals.

Pattern: ^[0-9a-fA-F]{24}$
move
enum<string>
required

"stage" moves an open deal to stage. "won" and "lost" close it. "reopen" opens a closed deal again.

Available options:
stage,
won,
lost,
reopen
stage
enum<string>

For move "stage" only: booked, met or proposal.

Available options:
booked,
met,
proposal
amount
number

For move "won" only: the amount won, in the deal's currency.

Required range: x >= 0
lostReason
enum<string>

For move "lost" only: why the deal was lost.

Available options:
not_interested,
chose_other,
not_a_fit,
no_budget,
no_decision,
went_quiet,
refunded,
other
closedOn
string<date>

For "won" or "lost": the day it closed, YYYY-MM-DD. Today when unset.

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.