Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    Persons

    The people you deal with at a company.

    On this page

    List persons

    GET /crm/v1/persons

    Returns persons in pages.

    Parameters

    NameInTypeRequiredMeaning
    companyId query string (uuid) Nooptional Only the records of this company.
    externalId query string Nooptional The record that carries this externalId.
    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. PersonPage
    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/persons?limit=20" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

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

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/crm/v1/persons?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/persons?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": "205ceb29-97ff-4b4a-a151-d591a0ad5610",
          "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
          "name": "Mircea Bălan",
          "role": "Owner",
          "email": "[email protected]",
          "externalId": null,
          "customFields": {},
          "revision": 1
        },
        {
          "id": "78b2a7c7-f4e1-4dfa-8b09-2c661cd52079",
          "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
          "name": "Carmen Diaconu",
          "role": "Head chef",
          "email": "[email protected]",
          "externalId": null,
          "customFields": {},
          "revision": 1
        }
      ],
      "nextCursor": null
    }

    Create a person

    POST /crm/v1/persons

    Records a person at a company.

    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 the person works at.
    name string Yesrequired The name of the person.
    role string Nooptional What the person does at the company.
    email string Nooptional E-mail address of the person.
    externalId string Nooptional Your own identifier for the person. It is unique among the persons of your account.
    customFields object Nooptional Values of your custom fields, by field key. A decimal is a decimal string, a date is YYYY-MM-DD.

    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. Error
    409 The request was refused. The code is operation_reused or external_id_taken. Error
    422 The request was refused. The code is custom_field_unknown or custom_field_invalid. 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/persons" \
      -H "Authorization: Bearer $RDC_TOKEN" \
      -H "Content-Type: application/json" \
      -d '{
      "operationId": "76ad09e3-bdcf-43da-9133-ad270accfb69",
      "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
      "name": "Mircea Bălan",
      "role": "Owner",
      "email": "[email protected]"
    }'

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/crm/v1/persons`, {
      method: 'POST',
      headers: {
        Authorization: `Bearer ${process.env.RDC_TOKEN}`,
        'Content-Type': 'application/json',
      },
      body: JSON.stringify({
        "operationId": "76ad09e3-bdcf-43da-9133-ad270accfb69",
        "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
        "name": "Mircea Bălan",
        "role": "Owner",
        "email": "[email protected]"
      }),
    });
    const result = await response.json();

    Python

    import os
    import requests
    
    response = requests.request(
        'POST',
        f'{os.environ["RDC_BASE_URL"]}/crm/v1/persons',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
        json={
            'operationId': '76ad09e3-bdcf-43da-9133-ad270accfb69',
            'companyId': '61d54dde-e1f3-43da-b2fc-a4a21540e5f3',
            'name': 'Mircea Bălan',
            'role': 'Owner',
            'email': '[email protected]',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $body = <<<'JSON'
    {
      "operationId": "76ad09e3-bdcf-43da-9133-ad270accfb69",
      "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
      "name": "Mircea Bălan",
      "role": "Owner",
      "email": "[email protected]"
    }
    JSON;
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/crm/v1/persons');
    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/persons");
    request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("RDC_TOKEN"));
    request.Content = new StringContent("""
    {
      "operationId": "76ad09e3-bdcf-43da-9133-ad270accfb69",
      "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
      "name": "Mircea Bălan",
      "role": "Owner",
      "email": "[email protected]"
    }
    """, System.Text.Encoding.UTF8, "application/json");
    var response = await client.SendAsync(request);
    var result = await response.Content.ReadAsStringAsync();

    Response 202

    JSON

    {
      "operationId": "76ad09e3-bdcf-43da-9133-ad270accfb69",
      "status": "accepted",
      "aggregateRevision": 1
    }

    Get a person

    GET /crm/v1/persons/{personId}

    Parameters

    NameInTypeRequiredMeaning
    personId path string (uuid) Yesrequired The person.

    Responses

    StatusMeaningBody
    200 The record at its current revision. Person
    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 person_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/persons/205ceb29-97ff-4b4a-a151-d591a0ad5610" \
      -H "Authorization: Bearer $RDC_TOKEN"

    JavaScript

    const response = await fetch(`${process.env.RDC_BASE_URL}/crm/v1/persons/205ceb29-97ff-4b4a-a151-d591a0ad5610`, {
      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/persons/205ceb29-97ff-4b4a-a151-d591a0ad5610',
        headers={
            'Authorization': f'Bearer {os.environ["RDC_TOKEN"]}',
        },
    )
    result = response.json()

    PHP

    <?php
    
    $curl = curl_init(getenv('RDC_BASE_URL') . '/crm/v1/persons/205ceb29-97ff-4b4a-a151-d591a0ad5610');
    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/persons/205ceb29-97ff-4b4a-a151-d591a0ad5610");
    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": "205ceb29-97ff-4b4a-a151-d591a0ad5610",
      "companyId": "61d54dde-e1f3-43da-b2fc-a4a21540e5f3",
      "name": "Mircea Bălan",
      "role": "Owner",
      "email": "[email protected]",
      "externalId": null,
      "customFields": {},
      "revision": 1
    }