Get all stages

GET {{baseUrl}}/stages?pipeline_id=<integer>&sort_by=id&sort_direction=asc&limit=<integer>&cursor=<string>

Returns data about all stages.

Request Params

KeyDatatypeRequiredDescription
pipeline_idstringThe ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched.
sort_bystringThe field to sort by. Supported fields: id, update_time, add_time, order_nr.
sort_directionstringThe sorting direction. Supported values: asc, desc.
limitstringFor pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed.
cursorstringFor pagination, the marker (an opaque string value) representing the first item on the next page

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:[{&quot;id&quot;:1,&quot;order_nr&quot;:1,&quot;name&quot;:&quot;Stage Name&quot;,&quot;is_deleted&quot;:false,&quot;deal_probability&quot;:100,&quot;pipeline_id&quot;:1,&quot;is_deal_rot_enabled&quot;:true,&quot;days_to_rotten&quot;:2,&quot;add_time&quot;:&quot;2024-01-01T00:00:00Z&quot;,&quot;update_time&quot;:&quot;2024-01-01T00:00:00Z&quot;}],&quot;additional_data&quot;:{&quot;next_cursor&quot;:&quot;eyJmaWVsZCI6ImlkIiwiZmllbGRWYWx1ZSI6Nywic29ydERpcmVjdGlvbiI6ImFzYyIsImlkIjo3fQ&quot;}}