---
title: "Activities | Docs | CRM by R&D Copilot"
description: "The timeline of a company: e-mails, calls, meetings, notes and tasks, and the log of an activity that happened."
canonical: "https://crm.rdcopilot.com/docs/api-reference/activities/"
language: en
updated: 2026-11-22
---

# Activities

The timeline of a company: e-mails, calls, meetings, notes and tasks, and the log of an activity that happened.

## List activities

GET `/crm/v1/activities`

Returns the activities in pages, the newest first: e-mails, calls, meetings, notes and tasks.

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `companyId` | query | `string (uuid)` | Nooptional | Only the records of this company. |
| `dealId` | query | `string (uuid)` | Nooptional | Only the records of this deal. |
| `kind` | query | `string` | Nooptional | Only activities of this kind. One of `email`, `call`, `meeting`, `note`, `task` |
| `limit` | query | `integer` | Nooptional | Records per page. Default `100` Range `1` – `500` |
| `cursor` | query | `string` | Nooptional | The `nextCursor` of the previous page. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `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

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

JavaScript

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

Python

```python
import os
import requests

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

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/crm/v1/activities?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#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/crm/v1/activities?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

```json
{
  "items": [
    {
      "id": "31bfe74f-eb9c-49f1-8a52-e53a9f3426b2",
      "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
      "dealId": "0d7e2b85-f1a3-4c69-b2d4-93a8e5c61d38",
      "kind": "email",
      "text": "Sent the offer for the second delivery point, with prices for the events hall.",
      "by": "andrei-pop",
      "at": "2026-11-20T09:45:00Z",
      "minutes": null,
      "due": null,
      "done": true,
      "doneAt": null
    },
    {
      "id": "443ca6e0-50fe-4e37-a270-eb670f664dae",
      "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
      "dealId": "0d7e2b85-f1a3-4c69-b2d4-93a8e5c61d38",
      "kind": "call",
      "text": "The owner wants delivery on Tuesdays and Fridays.",
      "by": "andrei-pop",
      "at": "2026-11-18T13:10:00Z",
      "minutes": 12,
      "due": null,
      "done": true,
      "doneAt": null
    }
  ],
  "nextCursor": null
}
```

## Log an activity

POST `/crm/v1/activities`

Records a call, an e-mail or a meeting that happened, on a company and, if you name it, on one of its deals. A call carries its length in minutes. It changes no deal.

### Request body

| Field | Type | Required | Meaning |
| --- | --- | --- | --- |
| `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. |
| `kind` | `string` | Yesrequired | What happened: `call`, `email` or `meeting`. Notes have their own operation. One of `call`, `email`, `meeting` |
| `text` | `string` | Yesrequired | What happened. |
| `minutes` | `integer` | Nooptional | The length of a call in minutes. Required for a call. Range `1` – `480` |
| `owner` | `string` | Nooptional | Identifier of the owner who did it. The owner of the deal, or of the company, by default. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `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 `kind_not_valid`, `text_required` or `minutes_not_valid`. | `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

```bash
curl -X POST "$RDC_BASE_URL/crm/v1/activities" \
  -H "Authorization: Bearer $RDC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "operationId": "740fed00-2df2-4ec8-b10b-126924524927",
  "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
  "dealId": "0d7e2b85-f1a3-4c69-b2d4-93a8e5c61d38",
  "kind": "call",
  "text": "The owner wants delivery on Tuesdays and Fridays.",
  "minutes": 12
}'
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/crm/v1/activities`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "operationId": "740fed00-2df2-4ec8-b10b-126924524927",
    "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
    "dealId": "0d7e2b85-f1a3-4c69-b2d4-93a8e5c61d38",
    "kind": "call",
    "text": "The owner wants delivery on Tuesdays and Fridays.",
    "minutes": 12
  }),
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'POST',
    f'{os.environ["RDC_BASE_URL"]}/crm/v1/activities',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
    json={
        'operationId': '740fed00-2df2-4ec8-b10b-126924524927',
        'companyId': '61d54dde-e1f3-43da-b2fc-a4a21540e5f3',
        'dealId': '0d7e2b85-f1a3-4c69-b2d4-93a8e5c61d38',
        'kind': 'call',
        'text': 'The owner wants delivery on Tuesdays and Fridays.',
        'minutes': 12,
    },
)
result = response.json()
```

PHP

```php
<?php

$body = <<<'JSON'
{
  "operationId": "740fed00-2df2-4ec8-b10b-126924524927",
  "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
  "dealId": "0d7e2b85-f1a3-4c69-b2d4-93a8e5c61d38",
  "kind": "call",
  "text": "The owner wants delivery on Tuesdays and Fridays.",
  "minutes": 12
}
JSON;

$curl = curl_init(getenv('RDC_BASE_URL') . '/crm/v1/activities');
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#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/crm/v1/activities");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
request.Content = new StringContent("""
{
  "operationId": "740fed00-2df2-4ec8-b10b-126924524927",
  "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
  "dealId": "0d7e2b85-f1a3-4c69-b2d4-93a8e5c61d38",
  "kind": "call",
  "text": "The owner wants delivery on Tuesdays and Fridays.",
  "minutes": 12
}
""", System.Text.Encoding.UTF8, "application/json");
var response = await client.SendAsync(request);
var result = await response.Content.ReadAsStringAsync();
```

### Response `202`

JSON

```json
{
  "operationId": "740fed00-2df2-4ec8-b10b-126924524927",
  "status": "accepted",
  "aggregateRevision": 1
}
```

## Get an activity

GET `/crm/v1/activities/{activityId}`

### Parameters

| Name | In | Type | Required | Meaning |
| --- | --- | --- | --- | --- |
| `activityId` | path | `string (uuid)` | Yesrequired | The activity. |

### Responses

| Status | Meaning | Body |
| --- | --- | --- |
| `200` | The record at its current revision. | `Activity` |
| `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 `activity_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

```bash
curl "$RDC_BASE_URL/crm/v1/activities/443ca6e0-50fe-4e37-a270-eb670f664dae" \
  -H "Authorization: Bearer $RDC_TOKEN"
```

JavaScript

```javascript
const response = await fetch(`${process.env.RDC_BASE_URL}/crm/v1/activities/443ca6e0-50fe-4e37-a270-eb670f664dae`, {
  method: 'GET',
  headers: {
    Authorization: `Bearer ${process.env.RDC_TOKEN}`,
  },
});
const result = await response.json();
```

Python

```python
import os
import requests

response = requests.request(
    'GET',
    f'{os.environ["RDC_BASE_URL"]}/crm/v1/activities/443ca6e0-50fe-4e37-a270-eb670f664dae',
    headers={
        'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
    },
)
result = response.json()
```

PHP

```php
<?php

$curl = curl_init(getenv('RDC_BASE_URL') . '/crm/v1/activities/443ca6e0-50fe-4e37-a270-eb670f664dae');
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#

```csharp
using System.Net.Http.Headers;

var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, $"{Environment.GetEnvironmentVariable("RDC_BASE_URL")}/crm/v1/activities/443ca6e0-50fe-4e37-a270-eb670f664dae");
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

```json
{
  "id": "443ca6e0-50fe-4e37-a270-eb670f664dae",
  "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
  "dealId": "0d7e2b85-f1a3-4c69-b2d4-93a8e5c61d38",
  "kind": "call",
  "text": "The owner wants delivery on Tuesdays and Fridays.",
  "by": "andrei-pop",
  "at": "2026-11-18T13:10:00Z",
  "minutes": 12,
  "due": null,
  "done": true,
  "doneAt": null
}
```
