Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Pipelines and stages

    Read the pipeline: its stages, their weights and the days after which a deal is stale.

    On this page

    List pipelines

    GET /crm/v1/pipelines

    Returns the pipelines of your account.

    Parameters

    NameInTypeRequiredMeaning
    limit query integer Nooptional Records per page. Default 100 Range 1 – 500
    cursor query string Nooptional The nextCursor of the previous page.

    Responses

    StatusMeaningBody
    200 A page of records. PipelinePage
    401 The token is missing, expired or not ours. Error
    403 The token does not give access to this company or operation. Error
    429 The request was refused and not processed: the code is rate_limited. Wait the seconds in the header Retry-After, then send it again with the same operationId. Error
    503 The service cannot answer now: the code is unavailable. Send the request again with the same operationId. Error

    Request

    curl

    curl "$RDC_BASE_URL/crm/v1/pipelines?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/crm/v1/pipelines?limit=20`, {
      method: 'GET',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
      },
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'GET',
        f'{os.environ["RDC_BASE_URL"]}/crm/v1/pipelines?limit=20',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/crm/v1/pipelines?limit=20');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'GET',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        ],
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/crm/v1/pipelines?limit=20");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    JSON

    {
      "items": [
        {
          "id": "d114b9e3-ccb6-43c0-aa1f-59d1e5fe8985",
          "name": "Sales",
          "stages": [
            {
              "id": "lead",
              "kind": "open",
              "position": 1,
              "weight": 10
            },
            {
              "id": "qualified",
              "kind": "open",
              "position": 2,
              "weight": 25
            },
            {
              "id": "offer",
              "kind": "open",
              "position": 3,
              "weight": 50
            },
            {
              "id": "negotiation",
              "kind": "open",
              "position": 4,
              "weight": 75
            },
            {
              "id": "won",
              "kind": "won",
              "position": 5,
              "weight": 100
            },
            {
              "id": "lost",
              "kind": "lost",
              "position": null,
              "weight": 0
            }
          ],
          "staleAfterDays": 14,
          "revision": 1
        }
      ],
      "nextCursor": null
    }

    Get a pipeline

    GET /crm/v1/pipelines/{pipelineId}

    Parameters

    NameInTypeRequiredMeaning
    pipelineId path string (uuid) Yesrequired The pipeline.

    Responses

    StatusMeaningBody
    200 The record at its current revision. Pipeline
    401 The token is missing, expired or not ours. Error
    403 The token does not give access to this company or operation. Error
    404 The request was refused. The code is pipeline_not_found. Error
    429 The request was refused and not processed: the code is rate_limited. Wait the seconds in the header Retry-After, then send it again with the same operationId. Error
    503 The service cannot answer now: the code is unavailable. Send the request again with the same operationId. Error

    Request

    curl

    curl "$RDC_BASE_URL/crm/v1/pipelines/d114b9e3-ccb6-43c0-aa1f-59d1e5fe8985" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/crm/v1/pipelines/d114b9e3-ccb6-43c0-aa1f-59d1e5fe8985`, {
      method: 'GET',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
      },
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'GET',
        f'{os.environ["RDC_BASE_URL"]}/crm/v1/pipelines/d114b9e3-ccb6-43c0-aa1f-59d1e5fe8985',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/crm/v1/pipelines/d114b9e3-ccb6-43c0-aa1f-59d1e5fe8985');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'GET',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
        ],
    ]);
    $result = json_decode(curl_exec($curl), true);
    curl_close($curl);

    C#

    using System.Net.Http.Headers;
    
    var client = new HttpClient();
    var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/crm/v1/pipelines/d114b9e3-ccb6-43c0-aa1f-59d1e5fe8985");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    JSON

    {
      "id": "d114b9e3-ccb6-43c0-aa1f-59d1e5fe8985",
      "name": "Sales",
      "stages": [
        {
          "id": "lead",
          "kind": "open",
          "position": 1,
          "weight": 10
        },
        {
          "id": "qualified",
          "kind": "open",
          "position": 2,
          "weight": 25
        },
        {
          "id": "offer",
          "kind": "open",
          "position": 3,
          "weight": 50
        },
        {
          "id": "negotiation",
          "kind": "open",
          "position": 4,
          "weight": 75
        },
        {
          "id": "won",
          "kind": "won",
          "position": 5,
          "weight": 100
        },
        {
          "id": "lost",
          "kind": "lost",
          "position": null,
          "weight": 0
        }
      ],
      "staleAfterDays": 14,
      "revision": 1
    }