Opportunities APIs
List opportunities
Search and paginate CRM opportunities by inbox, stage, assignee, external identity, and dates.
GET
cURL examples
The request panel includes commands for the default list, a filtered search, and a date-based synchronization query. ReplaceYOUR_API_ACCESS_TOKEN, account ID 10, inbox ID 25, and stage ID 20 with values from your account.
The commands use Bash syntax. --get sends the --data-urlencode fields as query parameters, including spaces and timezone offsets. --include prints the HTTP status and headers with the response body. No JSON request body is required.
Authentication
Send a user or AgentBot API access token:Path parameters
Query parameters
All query parameters are optional. Filters are combined, so an opportunity must match every supplied filter.The default request returns only open, non-archived opportunities. Use
status=all to include won and lost opportunities. To retrieve both archived and non-archived records, paginate separate requests with archived=true and archived=false.external_id and origin are both supplied, they must match the same external record. For example, use the stable origin and external_id submitted to Create opportunities to locate an imported opportunity. These filters do not require a specific provider.
Search trims leading and trailing whitespace. It searches phone numbers as stored, so use a matching portion of the stored number. Opportunities whose contacts were deleted can still appear when other filters match, but their deleted-contact snapshot is not searched by q.
Sorting
Acceptedsort_by values:
created_at_ascandcreated_at_desc.updated_at_ascandupdated_at_desc.entered_at_ascandentered_at_desc.value_ascandvalue_desc.manual: ascending position, then ascending opportunity ID.
manual sorts by position across the filtered result, so use stage_id when retrieving a single stage’s card order.
Dates and pagination
Use timestamps such as2026-10-01T00:00:00Z or 2026-10-01T00:00:00-03:00. Date-only values and timestamps without a timezone are rejected. If both bounds are supplied for the same date field, the before bound must be strictly later than the after bound.
For each query, increment page until it reaches data.meta.total_pages. all_count counts all matching opportunities before pagination. A page beyond the last page returns an empty payload. With no matches, all_count and total_pages are 0.
Pagination uses page numbers rather than a snapshot or cursor. Records can move between pages if they change while you are reading them.
Response models
200 OK
Each object in
data.payload contains:
The list does not include financing, profile, consent, record, or detailed sale and loss fields.
401 Unauthorized
An invalid API token returns:401, with a different error message.
404 Not Found
An invalid or inaccessible inbox returns:422 Unprocessable Entity
Invalid query values return an error such as:Validation rules
page,per_page, and supplied ID filters must be positive integers.per_pagecannot exceed100.status,assignee_type, andsort_bymust use the accepted values above.- Boolean filters accept only
trueandfalse. assignee_idcannot be combined withassignee_type=me,assigned, orunassigned.- Date bounds must be ISO 8601 timestamps with a timezone, and paired bounds must form a non-empty interval.