Skip to main content
POST
List deals

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
owner
string

Whose deals: "me", "none" for deals nobody owns, or a teammate's userId.

Minimum string length: 1
stage
enum<string>

Only deals at this stage.

Available options:
booked,
met,
proposal
status
enum<string>

open, won or lost.

Available options:
open,
won,
lost
closedFrom
string<date>

First day of the close span, YYYY-MM-DD in UTC.

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])))$
closedTo
string<date>

Last day of the close span, included. Defaults to closedFrom.

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])))$
sort
enum<string>

"recent" lists the newest move first, and is the default. "needs_you" lists first the open deals whose next step is the team's turn and has a day, overdue first, then the deals quiet longest. It does not rank by blockers. Pass owner: "me" with it to say which deals need the person asking.

Available options:
recent,
needs_you
limit
integer

Rows to return. Default 25, at most 50.

Required range: 1 <= x <= 50

Response

The tool's result

status
enum<string>
required
Available options:
ok
result
any
cut
object

Present when the result was larger than about 25,000 tokens and Steerco cut it.