Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Notes

    Write a note on a company or a deal, and read the notes.

    On this page

    List notes

    GET /crm/v1/notes

    Returns notes in pages, the newest first.

    Parameters

    NameInTypeRequiredMeaning
    companyId query string (uuid) Nooptional Only the records of this company.
    dealId query string (uuid) Nooptional Only the records of this deal.
    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. ActivityPage
    400 The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. fields names each one. Error
    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/notes?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/crm/v1/notes?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/notes?limit=20',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/crm/v1/notes?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/notes?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": "9f22a725-ff4e-4090-b6df-97b3fade60ed",
          "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
          "dealId": "4b1c7a52-9e03-4d6f-8a17-c05e2d9b6f31",
          "kind": "note",
          "text": "Won: the order is placed from the weekly list of the kitchen.",
          "by": "andrei-pop",
          "at": "2026-11-17T10:08:00Z",
          "minutes": null,
          "due": null,
          "done": true,
          "doneAt": null
        }
      ],
      "nextCursor": null
    }

    Create a note

    POST /crm/v1/notes

    Writes a note on a company and, if you name it, on one of its deals.

    Request body

    FieldTypeRequiredMeaning
    operationId string (uuid) Yesrequired A UUID you choose for this change. Send it again to repeat the request.
    companyId string (uuid) Yesrequired The company it belongs to.
    dealId string (uuid) Nooptional The deal it belongs to. The deal must be one of the company.
    text string Yesrequired The note.
    owner string Nooptional Identifier of the owner who wrote it. The owner of the deal, or of the company, by default.

    Responses

    StatusMeaningBody
    202 The change was accepted. The body is the operation result. OperationResult
    400 The request cannot be read or breaks the contract: malformed JSON, a missing or unknown field, a wrong type. fields names each one. Error
    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 company_not_found, deal_not_found or owner_not_found. Error
    409 The request was refused. The code is other_company or operation_reused. Error
    422 The request was refused. The code is text_required. 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 -X POST "$RDC_BASE_URL/crm/v1/notes" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "581bfbfa-a42a-4473-9217-7b3cb9af63fb",
      "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
      "dealId": "4b1c7a52-9e03-4d6f-8a17-c05e2d9b6f31",
      "text": "Won: the order is placed from the weekly list of the kitchen."
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/crm/v1/notes`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "581bfbfa-a42a-4473-9217-7b3cb9af63fb",
        "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
        "dealId": "4b1c7a52-9e03-4d6f-8a17-c05e2d9b6f31",
        "text": "Won: the order is placed from the weekly list of the kitchen."
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/crm/v1/notes',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '581bfbfa-a42a-4473-9217-7b3cb9af63fb',
            'companyId': '61d54dde-e1f3-43da-b2fc-a4a21540e5f3',
            'dealId': '4b1c7a52-9e03-4d6f-8a17-c05e2d9b6f31',
            'text': 'Won: the order is placed from the weekly list of the kitchen.',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "581bfbfa-a42a-4473-9217-7b3cb9af63fb",
      "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
      "dealId": "4b1c7a52-9e03-4d6f-8a17-c05e2d9b6f31",
      "text": "Won: the order is placed from the weekly list of the kitchen."
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/crm/v1/notes');
    curl_setopt_array($curl, [
        CURLOPT_CUSTOMREQUEST => 'POST',
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_HTTPHEADER => [
            'Authorization: Bearer ' . getenv('RDC_TOKEN'),
            'Content-Type: application/json',
        ],
        CURLOPT_POSTFIELDS => $body,
    ]);
    $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.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/crm/v1/notes");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "581bfbfa-a42a-4473-9217-7b3cb9af63fb",
      "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
      "dealId": "4b1c7a52-9e03-4d6f-8a17-c05e2d9b6f31",
      "text": "Won: the order is placed from the weekly list of the kitchen."
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "581bfbfa-a42a-4473-9217-7b3cb9af63fb",
      "status": "accepted",
      "aggregateRevision": 1
    }