Get the sales pipeline report
curl --request GET \ --url 'https://example.com/api/v1/reports/pipeline?from=example&to=example' \ --header 'Authorization: Bearer <token>'What is open and in which stage, the weighted forecast, per-stage conversion and dwell time, win rate, mean sales cycle and loss reasons. Amounts are grouped by currency (the company’s own, else the workspace’s) and never summed across currencies. A stage with no default probability is left out of the weighted figure rather than counted as zero. from and to are workspace-timezone days, to inclusive. Requires the deals.view permission and both the Sales and Reports modules. Without deals.view_all the report covers only the deals the caller owns or reaches through a company they can see.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Start of the period, YYYY-MM-DD, in the workspace timezone.
Start of the period, YYYY-MM-DD, in the workspace timezone.
End of the period, YYYY-MM-DD, inclusive.
End of the period, YYYY-MM-DD, inclusive.
Only deals owned by this member.
Only deals owned by this member.
Only deals attributed to this lead source.
Only deals attributed to this lead source.
Only deals lost for this reason, an id from the lost reasons list. Open and won deals carry no reason, so the report then covers just those lost deals.
Only deals lost for this reason, an id from the lost reasons list. Open and won deals carry no reason, so the report then covers just those lost deals.
Responses
Section titled “Responses”Open pipeline, conversion by stage, and the closed figures for the period.
object
Open figures are a snapshot of now; won, lost and cycle figures cover the deals closed inside the period.
object
Open deals owned by one member.
object
An amount in a single currency.
object
Sum in that currency, rounded to cents.
The company’s own currency, or the workspace’s when the company has none. Never converted.
An amount in a single currency.
object
Sum in that currency, rounded to cents.
The company’s own currency, or the workspace’s when the company has none. Never converted.
Open deals in one stage.
object
An amount in a single currency.
object
Sum in that currency, rounded to cents.
The company’s own currency, or the workspace’s when the company has none. Never converted.
The stage’s default probability. Null when the stage carries none.
Amounts times the stage probability. Empty when the stage has no probability.
An amount in a single currency.
object
Sum in that currency, rounded to cents.
The company’s own currency, or the workspace’s when the company has none. Never converted.
How deals moved through one stage.
object
Percent of entered deals that advanced, one decimal. Null when none entered.
Of those, the deals that left it for a later stage or for a WON one.
Distinct deals that entered the stage inside the period.
Mean length of every stay that ended by the end of the period, one decimal. Null when none ended.
The stage id, or deleted:<name> for a stage deleted since, which keeps its history under the name its moves recorded.
Lost deals grouped by their lost reason. A deal lost before reasons existed is grouped by the text it was given, or Not given when it has none.
object
Mean days from creation to won for the deals won in the period.
An amount in a single currency.
object
Sum in that currency, rounded to cents.
The company’s own currency, or the workspace’s when the company has none. Never converted.
Open amounts times each stage’s probability. A stage with no probability is left out rather than counted as zero.
An amount in a single currency.
object
Sum in that currency, rounded to cents.
The company’s own currency, or the workspace’s when the company has none. Never converted.
Percent of the deals closed in the period that were won. Null when none closed.
Won value in the period, from the accepted amount when one was recorded.
An amount in a single currency.
object
Sum in that currency, rounded to cents.
The company’s own currency, or the workspace’s when the company has none. Never converted.
Example generated
{ "data": { "byOwner": [ { "amounts": [ { "amount": 1, "currency": "example" } ], "deals": 1, "ownerId": "example", "ownerName": "example", "weightedAmounts": [ { "amount": 1, "currency": "example" } ] } ], "byStage": [ { "amounts": [ { "amount": 1, "currency": "example" } ], "color": "example", "deals": 1, "probability": 1, "sortOrder": 1, "stageId": "example", "stageName": "example", "weightedAmounts": [ { "amount": 1, "currency": "example" } ] } ], "conversion": [ { "conversionRate": 1, "dealsAdvanced": 1, "dealsEntered": 1, "deleted": true, "meanDaysInStage": 1, "sortOrder": 1, "stageId": "example", "stageName": "example" } ], "lossReasons": [ { "deals": 1, "reason": "example" } ], "lostDeals": 1, "meanSalesCycleDays": 1, "openAmounts": [ { "amount": 1, "currency": "example" } ], "openDeals": 1, "openWeightedAmounts": [ { "amount": 1, "currency": "example" } ], "winRate": 1, "wonAmounts": [ { "amount": 1, "currency": "example" } ], "wonDeals": 1 }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Missing the deals.view permission.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}The Sales or Reports module is turned off for the workspace.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC