GET
/api/public/v1/deals

List deals

Potential sales moving through a location’s pipeline — the cards on the kanban board. `value` is cents. Archived deals are excluded unless you ask for them.

Required scope

The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Settings → Company → API, and to a teammate under Employee → Permissions.

deals:read

Query Parameters

NameTypeRequiredDescription
locationIdstringRequiredWhose board to read.
limitnumberOptionalMaximum number of items to return (1-100).Default: 20
offsetnumberOptionalNumber of items to skip before starting to collect the result set.Default: 0
sortBystringOptionalField to sort by. Allowed values vary by endpoint.Default: createdAt
sortOrderstring
asc
desc
OptionalSort direction.Default: desc
searchstringOptionalFree-text search across the resource’s primary fields.
createdAfterstringOptionalISO 8601 timestamp — only return items created after this time.
createdBeforestringOptionalISO 8601 timestamp — only return items created before this time.
updatedAfterstringOptionalISO 8601 timestamp — only return items updated after this time.
statusstring
OPEN
WON
LOST
OptionalFilter by outcome.
stageIdstringOptionalOne column of the board.
ownerIdstringOptionalOne rep’s deals.
accountIdstringOptionalDeals against one customer.
includeArchivedbooleanOptionalSet `true` to include archived deals.
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/deals" \
  -H "Authorization: Bearer your_access_token"
200Example response
json
{
  "message": "Deals retrieved successfully!",
  "content": {
    "deals": [
      {
        "id": "del_8830",
        "referenceId": 214,
        "locationId": "loc_abc123",
        "pipelineId": "pip_01",
        "stageId": "stg_02",
        "accountId": "acc_7712",
        "ownerId": "emp_44f1",
        "title": "Northwind — annual contract",
        "value": 4800000,
        "currency": "USD",
        "status": "OPEN",
        "probability": 60,
        "expectedCloseDate": "2026-10-15T00:00:00.000Z",
        "sortOrder": 0,
        "wonLostReason": null,
        "closedAt": null,
        "stageMovedAt": "2026-08-25T10:00:00.000Z",
        "createdAt": "2026-08-10T09:00:00.000Z",
        "updatedAt": "2026-08-25T10:00:00.000Z"
      }
    ],
    "pagination": {
      "total": 42,
      "limit": 20,
      "offset": 0,
      "hasMore": true
    }
  }
}

In the console

The same thing done by hand, for anyone comparing the API against the screen they already use.

xRM → Pipeline
/xrm/pipeline