Skip to main content
GET
The acting seat's pursued deals, one page in the requested order

Authorizations

Authorization
string
header
required

The org's platform API key.

Headers

Nexio-Act-As
string

The member the read is made for (a WorkOS user id). Unset keeps the org-wide posture the key alone grants.

Nexio-Act-As-Email
string

The acting member's verified email, lowercased. Ignored without Nexio-Act-As.

Nexio-Consumer
string

The calling application (workbench).

Nexio-Consumer-Build
string

The calling application's build.

Nexio-Consumer-Vocabulary
string

The access vocabulary hash the calling build was generated against.

Nexio-Request-Id
string

A caller-chosen request id, echoed in the Nexio-Request-Id response header.

Nexio-Timeout
string

The caller's remaining budget for this request, in whole milliseconds (1 to 10 digits, greater than zero), relative to receipt. The engine stops work at the shorter of this and the route's own budget, and answers 504 request_timeout when it expires. A value above the route budget is capped to it; a malformed value is ignored.

Query Parameters

q
string

Keeps deals whose name holds these words, matched any case, spacing, punctuation and plural ignored.

deal_stage
enum<string>

Keeps Salesforce deals whose state is this deal_stage value; none keeps the deals whose Salesforce stage the machine does not declare.

Available options:
information_gathering,
quoting,
proposal,
closed_won,
closed_lost,
closed_did_not_submit,
none
prospect_stage
enum<string>

Keeps AMS 360 prospects whose state is this prospect_stage value; none keeps the prospects whose stage the machine does not declare.

Available options:
prospect,
marketing,
submission_to_carrier,
quote_received,
proposal,
bind_request,
binder,
new_business,
declined_by_customer,
none
stage
string

Keeps deals whose stage words, ignoring case, or whose machine value is this text, on either machine. deal_stage and prospect_stage filter on one machine.

next_action
enum<string>

Keeps deals whose next action is this one.

Available options:
set_effective_date,
past_effective,
build_submission,
follow_up_quotes,
remarket_or_close,
inactive_prospect,
draft_proposal,
follow_up_client
source
enum<string>

salesforce: every Salesforce deal, each on deal_stage. ams360: every live AMS 360 prospect, one row per customer whether a deal matched it or not, each on prospect_stage. Absent: the Salesforce deals and the prospects no deal matched, each on its own machine.

Available options:
salesforce,
ams360
matched
enum<string>

true: deals that name an account (a Salesforce deal the platform matched to an AMS 360 account, or an AMS 360 prospect). false: deals with no account.

Available options:
true,
false
hide_past_due
enum<string>

Read as past_due_days=1 when true and as 0 when false, unless past_due_days is sent. Left out, the person's saved view or the default applies.

Available options:
true,
false
past_due_days
integer<int64>

Leaves out deals this many days or more past their due date; a deal with no due date stays. 1 leaves out every past due deal. 0 turns it off. Left out, the person's saved view or the default applies.

Required range: 0 <= x <= 3650
account_id
string

Keeps deals on this AMS 360 account, named by its Records account id in either spelling: a Salesforce deal the platform matched to it, or its AMS 360 prospect.

producer
string

Keeps deals whose owner, a Salesforce owner's name or an AMS 360 prospect's producer code, is this value exactly; the seat's own deals, the prospects where it is the producer or CSR included, are the read without it, and the owner field names whose each deal is. The due rollup's producer facet lists the values the seat's deals hold.

deal_type
string

Keeps deals whose deal_type is this value exactly: the Salesforce opportunity type (New Business, Existing Business, Cross-Sell), New Business for an AMS 360 prospect. The due rollup's deal_type facet lists the values the seat's deals hold.

Maximum string length: 64
submission_kind
enum<string>

Keeps AMS 360 rows of this kind, read from AMS 360: renewal_remarketing for an account whose open submission group is coded renewal (REN); new_line for a client's open group coded new business (NB); new_business for a suspect or prospect otherwise. A Salesforce deal has no submission kind. The due rollup's submission_kind facet counts each kind.

Available options:
new_business,
renewal_remarketing,
new_line
hide.stage
string

Comma-separated stage values to leave out, from the requested source's machine, plus no_date for deals with no due date. Empty or none hides nothing. Left out, the person's saved view or the default applies. A read with no source takes no_date only. The view block lists the values with their counts.

no_touch_days
integer<int64>

Leaves out deals with no touch in this many days, except a deal with an open follow-up ahead, a binder or a due date ahead. A deal with no touch date stays. 0 turns it off. Left out, the person's saved view or the default applies.

Required range: 0 <= x <= 3650
created_days
integer<int64>

Leaves out deals created more than this many days ago. 0 turns it off. Left out, the person's saved view or the default applies.

Required range: 0 <= x <= 3650
kind
enum<string>

opportunities, the default: the deals every other parameter describes. leads: the seat's open Salesforce leads (neither converted nor unqualified), newest first by created day, each in the no_date bucket with kind lead. all: every opportunity in the requested order, then the open leads newest first; a hidden no_date bucket hides the leads. leads and all take source=salesforce and no stage, next action, matched, account, deal_type or q filter; producer narrows the leads by owner, and the other hide filters narrow opportunities only.

Available options:
opportunities,
leads,
all
offset
integer<int64>

Rows to skip, register views only: at most 1000000, not with cursor. A later page continues with page.next.

Required range: x >= 0
due_bucket
enum<string>
Available options:
past_due,
d0_30,
d31_60,
d61_90,
d91_180,
d180_plus,
no_date
sort
enum<string>

The order of the filtered set; the default is due: due bucket, then nearest the seat's day first (the most recently past first within past_due, the soonest first after it), then deal key. name and -name order by the deal name. stage and -stage order by the stage's place in the New Business pipeline (new to binding), an unplaced stage after the placed ones by name. amount and -amount order by the deal's amount: the exact Salesforce expected revenue, or the AMS 360 premium of a deal with no Salesforce opportunity. expected_revenue orders by the exact Salesforce amount only. last_touch_on and -last_touch_on order by the latest touch. Ties keep the due order (which ends on deal_key), and a deal with no value for the sort key sorts last.

Available options:
due,
name,
-name,
stage,
-stage,
amount,
-amount,
expected_revenue,
-expected_revenue,
last_touch_on,
-last_touch_on
limit
integer<int64>
Required range: x >= 1
cursor
string
view
enum<string>

board: the first limit deals of each due bucket in the requested order instead of one page of the whole list, with each bucket's count and next cursor in columns. A column's next cursor continues that bucket's own list (due_bucket). Takes no cursor, offset or due_bucket.

Available options:
board
group
enum<string>

How view=board cuts its columns. due, the default: the due buckets. stage: the stages of the source's machine, in the machine's order, each with its count and next cursor in stage_columns, and its deals in the requested order (the due order by default: past due first, then the soonest). A stage column's next cursor continues that stage's own list (deal_stage or prospect_stage, none for the deals whose Salesforce stage the machine does not declare). Takes view=board, a source and kind opportunities.

Available options:
due,
stage
rollups
enum<string>[] | null

due answers GET /records/deals/rollups/due for the same filters in rollups.due, from the page's own read. stage answers the stage board's headers in rollups.stage: every open stage of the source's machine in its order, also when it holds no deal, with the count and amounts of the filtered deals on it. Both take no cursor or due_bucket; stage takes a source and kind opportunities.

Available options:
due,
stage

Response

OK

data
object[] | null
required

One page of the collection, in the requested sort order.

page
object
required
request_id
string
required

The request id, as echoed in the Nexio-Request-Id response header.

source
object
required
unreachable
object[] | null
required

Parts of the answer no source could fill, each with its reason. Empty when every part was filled.

warnings
object[] | null
required

Adjustments the platform made to the request (a coerced limit, a dropped facet).

columns
object[] | null

view=board: each due bucket that holds a deal, in due order, with its count and the cursor of its next page.

facets
object

Present only for the facets the request named in facets=.

missing_count
integer<int64>

For a hierarchy read, source records missing the requested level after source filters, before name/ID filters and pagination. Present even when zero or the page is empty.

rollups
object

Present only for the rollups the request named in rollups=, each computed by the same read as the page.

stage_columns
object[] | null

view=board with group=stage: each stage that holds a deal, in the machine's order, with its count and the cursor of its next page.

total
object

Present only when the request sent include_total=true.

view
object

The hide filters this read applied, with each option's count and how many rows they hide. Present on a read with no cursor, offset or due_bucket, also with every filter off.