Opportunity stages
Opportunity stages are the business’s own pipeline: the ordered list of stages, shown as the columns of the pipeline board, that an opportunity moves through, such as Lead, Proposal and Negotiation. Each opportunity is in at most one stage.
Who can use it
Section titled “Who can use it”Every endpoint acts as the person whose personal access token is used, with the permissions their role gives them in the app. Reading stages needs the permission to view leads. Creating, renaming, reordering and deleting stages needs access to the CRM module, as on the app’s pipeline board. These permissions cover the whole business, for members, managers and administrators alike; administrators hold every permission. A person without the permission an endpoint needs gets 403. Moving an opportunity from one stage to another is done on the opportunity, with Update an opportunity.
The opportunity stage object
Section titled “The opportunity stage object”One stage of the business’s opportunity pipeline.
| Field | Type | Description |
|---|---|---|
id |
string | The stage’s id. Read only. |
name |
string | The stage’s name, 1–191 characters, unique in the business. |
position |
integer | Where the stage sits in the pipeline, counting from 1 at the left of the board. |
isDefault |
boolean | Whether new opportunities created without a stage go into this stage. When no stage is the default, they go into the first stage. Read only. |
opportunityCount |
integer | How many opportunities are in the stage. Read only. |
forecastedRevenue |
decimal | The sum of the amounts of the stage’s opportunities, each converted to the business’s currency at OneSuite’s current exchange rate (“Forecasted Revenue” on the board). Read only. |
currency |
string | Currency of forecastedRevenue: the business’s currency. Read only. |
createdAt |
datetime | When the stage was added. Read only. |
updatedAt |
datetime | When the stage last changed. Read only. |
Endpoints
Section titled “Endpoints”List opportunity stages
Section titled “List opportunity stages”Returns the business’s pipeline stages in board order, left to right, each with how many opportunities it holds and their forecasted revenue.
GET /v1/opportunity-stagesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
page |
query | integer | No | Page number, from 1. Default 1. |
limit |
query | integer | No | Rows per page. Default 20, at most 1000. |
search |
query | string | No | Text in the stage’s name. |
updatedSince |
query | datetime | No | Only stages changed at or after this moment. Stages deleted since then are not reported. |
Rules
403when the person may not view leads.
Example request
curl "https://api.onesuite.io/v1/opportunity-stages?limit=3" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/opportunity-stages?limit=3", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": [ { "id": "cm4st0a1b0001k908p2l3m4na", "name": "Lead", "position": 1, "isDefault": false, "opportunityCount": 12, "forecastedRevenue": 64250, "currency": "USD", "createdAt": "2026-03-04T12:00:05.120Z", "updatedAt": "2026-10-02T08:15:44.301Z" }, { "id": "cm4st0a1b0005k908r6s7t8ub", "name": "Proposal", "position": 2, "isDefault": false, "opportunityCount": 6, "forecastedRevenue": 98400.5, "currency": "USD", "createdAt": "2026-03-04T12:00:05.120Z", "updatedAt": "2026-10-02T08:15:44.301Z" }, { "id": "cm4st0a1b0009k908v1w2x3yc", "name": "Negotiation", "position": 3, "isDefault": false, "opportunityCount": 3, "forecastedRevenue": 51800, "currency": "USD", "createdAt": "2026-03-04T12:00:05.120Z", "updatedAt": "2026-10-02T08:15:44.301Z" } ], "totalCount": 6, "page": 1, "limit": 3}Get an opportunity stage
Section titled “Get an opportunity stage”Returns one stage.
GET /v1/opportunity-stages/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The stage’s id. |
Rules
403when the person may not view leads.404when the stage does not exist in the business.
Example request
curl "https://api.onesuite.io/v1/opportunity-stages/cm4st0a1b0005k908r6s7t8ub" \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/opportunity-stages/cm4st0a1b0005k908r6s7t8ub", { headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "data": { "id": "cm4st0a1b0005k908r6s7t8ub", "name": "Proposal", "position": 2, "isDefault": false, "opportunityCount": 6, "forecastedRevenue": 98400.5, "currency": "USD", "createdAt": "2026-03-04T12:00:05.120Z", "updatedAt": "2026-10-02T08:15:44.301Z" }}Create an opportunity stage
Section titled “Create an opportunity stage”Adds a stage to the pipeline: at the end (right of the board) unless position is sent, in which case the stages from that position on move one place right.
POST /v1/opportunity-stagesParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
name |
body | string | Yes | Name, 1–191 characters, unique in the business. |
position |
body | integer | No | Place in the pipeline, from 1. Default: last. |
Rules
403when the person may not use the CRM.400when the name is missing or longer than 191 characters, orpositionis not a whole number of 1 or more.409when another stage already has that name.- A
positionbeyond the last puts the stage last. - Answers 201 with the new stage.
Example request
curl "https://api.onesuite.io/v1/opportunity-stages" \ -X POST \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name":"Contract sent","position":4}'const response = await fetch("https://api.onesuite.io/v1/opportunity-stages", { method: "POST", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ name: "Contract sent", position: 4, }),});const data = await response.json();Example response — status 201
{ "data": { "id": "cm4st7e6f0021k908d4e5f6gh", "name": "Contract sent", "position": 4, "isDefault": false, "opportunityCount": 0, "forecastedRevenue": 0, "currency": "USD", "createdAt": "2026-11-21T12:01:09.551Z", "updatedAt": "2026-11-21T12:01:09.551Z" }}Update an opportunity stage
Section titled “Update an opportunity stage”Renames the stage, moves it to another place in the pipeline, or both. Moving it shifts the stages in between by one place. Its opportunities stay in it.
PATCH /v1/opportunity-stages/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The stage’s id. |
name |
body | string | No | New name, 1–191 characters, unique in the business. |
position |
body | integer | No | New place in the pipeline, from 1. A number beyond the last puts it last. |
Rules
403when the person may not use the CRM.404when the stage does not exist in the business.400when the body is empty, the name is empty or too long, orpositionis not a whole number of 1 or more.409when another stage already has that name.
Example request
curl "https://api.onesuite.io/v1/opportunity-stages/cm4st0a1b0009k908v1w2x3yc" \ -X PATCH \ -H "X-API-Key: $ONESUITE_TOKEN" \ -H "Content-Type: application/json" \ -d '{"name":"Negotiating","position":4}'const response = await fetch("https://api.onesuite.io/v1/opportunity-stages/cm4st0a1b0009k908v1w2x3yc", { method: "PATCH", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, "Content-Type": "application/json", }, body: JSON.stringify({ name: "Negotiating", position: 4, }),});const data = await response.json();Example response — status 200
{ "data": { "id": "cm4st0a1b0009k908v1w2x3yc", "name": "Negotiating", "position": 4, "isDefault": false, "opportunityCount": 3, "forecastedRevenue": 51800, "currency": "USD", "createdAt": "2026-03-04T12:00:05.120Z", "updatedAt": "2026-11-21T12:04:30.118Z" }}Delete an opportunity stage
Section titled “Delete an opportunity stage”Deletes a stage. A stage that still holds opportunities is only deleted when moveOpportunitiesTo names another stage: its opportunities move there first, each with a stage change in its activity timeline. Opportunities are never deleted with a stage.
DELETE /v1/opportunity-stages/:idParameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | The stage’s id. |
moveOpportunitiesTo |
query | string | No | Id of another stage of the business to move this stage’s opportunities to. Required when the stage holds opportunities. |
Rules
403when the person may not use the CRM.404when the stage, or themoveOpportunitiesTostage, does not exist in the business.409when the stage holds opportunities andmoveOpportunitiesTois not sent. Nothing is deleted.400whenmoveOpportunitiesTois the stage being deleted.- The stages after it move one place left.
Example request
curl "https://api.onesuite.io/v1/opportunity-stages/cm4st0a1b0009k908v1w2x3yc?moveOpportunitiesTo=cm4st0a1b0005k908r6s7t8ub" \ -X DELETE \ -H "X-API-Key: $ONESUITE_TOKEN"const response = await fetch("https://api.onesuite.io/v1/opportunity-stages/cm4st0a1b0009k908v1w2x3yc?moveOpportunitiesTo=cm4st0a1b0005k908r6s7t8ub", { method: "DELETE", headers: { "X-API-Key": process.env.ONESUITE_TOKEN, },});const data = await response.json();Example response — status 200
{ "message": "Stage deleted; 3 opportunities moved to Proposal"}