Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Activities

    E-mails, calls, meetings, notes and tasks: the timeline of a company and the next step of a deal.

    On this page

    Everything done for a company is an activity: an email, a call, a meeting, a note or a task. An activity belongs to a company, and to one of its deals if you name it. The timeline of a company is its activities, the newest first.

    Logged and scheduled

    KindHow it is madeNotes
    callLog an activity, doneCarries its length in minutes, from 1 to 480.
    email, meetingLog an activity, doneText of up to 280 characters.
    noteCreate a note, doneA note is never due.
    call, email, meeting, taskSchedule a task, still to doCarries due, a day that is today or later.

    What was logged is done from the start. A scheduled step is done when you complete it, and then doneAt holds the moment.

    The next step of a deal

    The next step of a deal is its open task that is due first. When two are due on the same day, the one scheduled first comes first. A task whose due is before today is overdue; the API returns due, and your system compares it with today.

    curl

    curl "$RDC_BASE_URL/crm/v1/tasks?done=false" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

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

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/crm/v1/tasks?done=false');
    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/tasks?done=false");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 200

    {
      "items": [
        {
          "id": "869a20bf-5d9e-47b3-9882-b46092090e12",
          "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
          "dealId": "0d7e2b85-f1a3-4c69-b2d4-93a8e5c61d38",
          "kind": "meeting",
          "text": "Go through the offer with the owner.",
          "by": "andrei-pop",
          "at": "2026-11-20T09:48:00Z",
          "minutes": null,
          "due": "2026-11-26",
          "done": false,
          "doneAt": null
        },
        {
          "id": "2382dafd-949b-4882-bf52-387d683ce3fd",
          "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
          "dealId": "b58f4a20-7e19-4d3c-a6c2-15e9d07b3a35",
          "kind": "task",
          "text": "Send the price list for the events hall.",
          "by": "andrei-pop",
          "at": "2026-11-18T10:05:00Z",
          "minutes": null,
          "due": "2026-11-25",
          "done": false,
          "doneAt": null
        }
      ],
      "nextCursor": null
    }

    Activities and revisions

    Scheduling a task and completing it are changes to the deal, so they carry expectedRevision and add one to its revision. Logging an activity and writing a note change no deal and carry none.