Get a funnel report (stages)
The opportunity funnel “stages” report returns the pipeline funnel’s metrics for the selected opportunities, aggregated (JSON format only) and per-user (JSON and CSV formats).
Every report accepts the following parameters:
pipeline: ID of the pipeline defining the funnel statuses.type: the type of the report. The available values arecreated-cohortandactive-stage-cohort.report_relative_range: a relative time range to fetch data for. The allowed values are:today,this-week,this-month,this-quarter,this-year,yesterday,last-week,last-month,last-quarter,last-year, andall-time.report_datetime_range: a time range to fetch data for.cohort_relative_range: a relative time range defining the cohort of created opportunities to fetch data for, by date of creation of those opportunities. The allowed values are:today,this-week,this-month,this-quarter,this-year,yesterday,last-week,last-month,last-quarter,last-year, andall-time. Either this field orcohort_datetime_rangeneeds to be specified forcreated-cohortreports. Its value will be ignored foractive-stage-cohortreports.cohort_datetime_range: a time range defining the cohort of created opportunities to fetch data for, by date of creation of those opportunities. Either this field orcohort_relative_rangeneeds to be specified forcreated-cohortreports. Its value will be ignored foractive-stage-cohortreports.compared_relative_range: a relative time range to fetch comparison data for. Only allowed in combination withreport_relative_range(foractive-stage-cohortreports) orcohort_relative_range(forcreated-cohortreports). The allowed values are:today,this-week,this-month,this-quarter,this-year,yesterday,last-week,last-month,last-quarter,last-year, andall-time.compared_datetime_range: a relative time range to fetch comparison data for. Only allowed in combination withreport_datetime_range(foractive-stage-cohortreports) orcohort_datetime_range(forcreated-cohortreports). The allowed values are:same-days-last-week,same-days-last-month,same-days-last-quarter,same-days-last-year.compared_custom_range: a time range to fetch comparison data for.query: a query to apply to the report to filter out data. The value of the field is a dictionary with the keytypeand any type-specific keys. For now only the typesaved_searchis allowed which takes the extra keysaved_search_idto specify the ID of a saved search. This parameter is optional.users: a list of user IDs or group IDs to limit the report results to. When it’s empty, the report will include all the available users. This parameter is optional.
The report can be requested either in JSON format or in CSV format. The format can be specified with the accept header.
In JSON format, it includes aggregated and per-user data. When requested in CSV format, it includes only per-user data.
When compared_datetime_range, compared_relative_range, or compared_custom_range are used, the report returned is the compared one, not the base one.
Authentication
AuthorizationBasic
Use your API key as the username and leave the password empty.
OR
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects any.
Response
Successful response
Errors
400
Bad Request Error
401
Unauthorized Error
404
Not Found Error