Search opportunity stages
Operation ID: searchOpportunityStages
Group: CRM › Opportunity Stages
Open in the interactive reference
POST /crm/opportunity-stages/search
Read-only: A read that takes its filters in the body. Changes nothing, and ignores Idempotency-Key.
Searches opportunity stages. Use it to match on stageName, which GET crm/opportunity-stages does not filter on. Results come in id order, not in each entity's stage order; sort by entityId and orderIndex yourself, or use GET crm/opportunity-stages with sort=orderIndex.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Api-Version |
header | string · v1 | yes | The API version this request targets, named by its public identifier. Required on every request; omitting it, or naming a version this company does not have, is answered with 400. This document describes version v1. |
Request body
Required, application/json: searchOpportunityStagesInput.
| Field | Type | Required | Description |
|---|---|---|---|
filters |
object | no | The filters to apply. A stage must match every filter you send. Omit all of them to return every stage. Example: {"stageName":"proposal","entityIds":["ebbe16c9-2c44-4a8e-a813-6ed5a78ffab3"],"isDeactivated":false}. |
filters.stageName |
string | no | Limits results to stages whose name contains this text. The match is case-insensitive. |
filters.entityIds |
array<string> | no | Limits results to stages of any of these legal entities. Omit or pass an empty array for every entity. See id on GET base/entities. |
filters.stageTypes |
array<string> | no | Limits results to stages of any of these types. Omit or pass an empty array for every type. |
filters.isDeactivated |
boolean | no | True limits results to deactivated stages, false to active ones. Omit for both. |
page |
object | no | The page to return. Omit for the first page at the default size. Example: {"size":50}. |
page.cursor |
string | no | The cursor from the previous response's pagination.nextCursor. Do not construct it. Omit on the first request. |
page.size |
number | no | The number of stages per page. Defaults to 50, and a value above 200 is treated as 200, not rejected. |
{}
Response
200 Success
Under data (searchOpportunityStagesOutput):
| Field | Type | Required | Description |
|---|---|---|---|
items |
array<object> | yes | The matching stages, in id order. An empty array when nothing matches. Example: [{"id":"0e3a9f41-6c2b-4d7e-8a15-2b9c7d4e6f10","entityId":"ebbe16c9-2c44-4a8e-a813-6ed5a78ffab3","stageName":"Proposal","stageType":"open","probability":"50","orderIndex":2,"isDeactivated":false,"lastModifiedDate":"2026-08-14T09:12:44.000Z"}]. |
items[].id |
string | yes | The unique identifier for the stage. An opportunity's stageId holds this value. |
items[].entityId |
string | yes | The legal entity the stage belongs to. Stages are scoped per entity: an opportunity's stage is always one of its own entity's stages. See id on GET base/entities. |
items[].stageName |
string | yes | The display name of the stage, for example 'Qualification'. |
items[].stageType |
string | yes | What reaching the stage means for an opportunity. One of: "open" (The deal is still in progress.), "closedWon" (The deal is won.), "closedLost" (The deal is lost.). |
items[].probability |
decimal | yes | The likelihood that an opportunity in this stage closes as won, as a percentage from 0 to 100. For example, 25 means 25%. A percentage, not an amount, so it has no currency. |
items[].orderIndex |
number | yes | The position of the stage within its entity; an entity's stages are ordered by it. Unique within the entity. After any write the positions are 0, 1, 2 … with no gaps. |
items[].isDeactivated |
boolean | yes | Whether the stage is retired. A deactivated stage stays on record, and opportunities already in it keep it, but it is not offered for new opportunities. |
items[].lastModifiedDate |
date-time | yes | When the stage record last changed. Every write to an entity's stages updates it for every stage of that entity. ISO 8601 UTC (YYYY-MM-DDTHH:mm:ss.sssZ). |
pagination |
object | yes | The pagination details for this page. Example: {"hasMore":false}. |
pagination.nextCursor |
string | no | The cursor for the next page. Pass it back as page.cursor. Absent on the last page. |
pagination.hasMore |
boolean | yes | Whether another page follows. |
{
"data": {
"items": [
{
"id": "0e3a9f41-6c2b-4d7e-8a15-2b9c7d4e6f10",
"entityId": "ebbe16c9-2c44-4a8e-a813-6ed5a78ffab3",
"stageName": "Proposal",
"stageType": "open",
"probability": "50",
"orderIndex": 2,
"isDeactivated": false,
"lastModifiedDate": "2026-08-14T09:12:44.000Z"
}
],
"pagination": {
"hasMore": false
}
},
"diagnostics": [
{
"code": "<code>",
"message": "<message>",
"severity": "error",
"path": [
"<path>"
],
"details": "<details>"
}
]
}
Errors
| Code | Status |
|---|---|
INVALID_CURSOR |
400 |
Statuses
400— Invalid request or business failure. Codes: INVALID_CURSOR401— The request carries no valid access token.403— Not authorized404— Not found429— Too many requests from this client address. The response has no body and noRetry-Afterheader.500— Internal server error