API documentation

Updated 4 December 2026 · Version 1.0

Integrate Telegroup services into your own systems. SMS API — send and receive SMS from any system, using Telegroup as your SMS aggregator. CRM API — integrate telephony, robocalls, messaging and appointments with the Telegroup contact centre CRM.

Purpose and how to use it

The Telegroup API is built for companies and their IT partners who want customer communication to happen automatically — straight from the systems you already use every day. There is no need to change your existing software or switch between several programs: your CRM, ERP, online store, booking or accounting system sends the message, starts the call or receives the reply on its own.

Who it is for

  • Medical practices and beauty salons — automatic appointment reminders by SMS or robocall, where the customer confirms or cancels the appointment themselves.
  • Online stores and logistics companies — order confirmations, delivery notifications, one-time passcodes (OTP).
  • Customer service centres — call history, recordings and missed calls in your CRM, one-click calling, agent queue management.
  • Service providers and municipalities — invoice and debt reminders, service outage notifications, customer surveys.
  • Software developers and integrators — add SMS, WhatsApp and voice features to your own products, with Telegroup as your telecom operator.

Which API to choose

SMS APICRM API
PurposeSend and receive SMS from any system, using Telegroup as your SMS aggregatorIntegrate the Telegroup contact centre CRM with your other systems
ChannelsSMSTelephony, robocalls, SMS, WhatsApp, email
Best ifYou already have your own system and just need reliable SMS sendingYou use the Telegroup CRM / contact centre and want to connect it to other systems
Also includesDelivery statuses, inbound SMS, webhooks, limitsCustomers, appointments and calendar, requests, eParaksts, Smart-ID

Common use cases

  • The evening before a visit, the booking system sends an SMS or places a robocall; the customer's reply (confirmed / cancelled) flows back into your system automatically.
  • When a customer calls, their record appears on the agent's screen right away, and after the call a request is logged together with the call recording.
  • Missed calls land in a callback list in your CRM, so no customer is left without an answer.
  • On your website, customers pick a free time slot, confirm their phone number with an SMS code and receive a reminder on WhatsApp.
  • An online store sends SMS updates on order status, and customers' SMS replies come back into your system via webhook.

Getting started

  1. Contact Telegroup — info@telegroup.lv or +371 67799888. Together we will work out which API and which channels you need.
  2. Get access — Telegroup will create an API key or token, register your sender name and, if needed, assign numbers.
  3. Integrate and test — your developer connects your system to the API using this documentation. Our technical support will help you during testing.
  4. Go live — once testing is successful, the service is launched and you can see message and call statistics.

Why Telegroup

  • A Latvian telecom operator with its own numbers and direct connections to mobile networks.
  • Servers are located in Latvia, access is encrypted only, and we sign a GDPR data processing agreement with every customer.
  • One partner for telephony, SMS, WhatsApp and CRM, plus local technical support in Latvian, English and Russian.

This documentation is intended for developers. If you are not a technical specialist, just get in touch — we will help you choose a solution and, if needed, recommend an integration partner.

SMS API

The SMS API lets you send and receive SMS from any of your systems (CRM, ERP, online store, booking system) — Telegroup acts as the SMS aggregator and delivers messages to all Latvian and international mobile networks.

Base URLhttps://proxy-mailer-server.tg.lv
FormatJSON, UTF-8
AuthenticationAPI key in the x-api-key header

Access and security

Telegroup sets up access for each customer with a unique API key. The key must be included in every request:

HTTP header
x-api-key: YOUR_API_KEY
  • IP restriction — access can be limited to your servers' IP addresses only. A request from any other address will receive a 403 IP not allowed response.
  • Senders — the sender can be a phone number or a name (up to 11 Latin letters/digits). Telegroup registers sender names for your access in advance.
  • Limits — message limits can be set per customer for a day, week, month or in total. When a limit is exceeded, the response is 429.
  • Servers are located in Latvia, and connections are HTTPS only. Data processing is governed by a GDPR data processing agreement (DPA).

To get an API key, contact Telegroup: info@telegroup.lv, phone +371 67799888.

Sending SMS

Send an SMS

POSThttps://proxy-mailer-server.tg.lv/public_api/messages

Adds a message to the sending queue. The response contains the message id, which you can later use to check its status or match webhook notifications.

ParameterTypeDescription
senderstringSender — a registered name (up to 11 characters) or a number. Required.
recipientstringRecipient number in international E.164 format with +, e.g. +37120000000. Required.
messagestringMessage text. Long messages are automatically split into multiple parts (max. 65,535 characters). Required.
Request body (JSON)
{
  "sender": "Telegroup",
  "recipient": "+37120000000",
  "message": "Your appointment on 12.12 at 10:00"
}
Response
{
  "status": "queued",
  "id": 123
}

Code examples

bash
curl -X POST "https://proxy-mailer-server.tg.lv/public_api/messages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"sender":"Telegroup","recipient":"+37120000000","message":"Your appointment on 12.12 at 10:00"}'
php
<?php
$ch = curl_init("https://proxy-mailer-server.tg.lv/public_api/messages");
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => [
        "Content-Type: application/json",
        "x-api-key: YOUR_API_KEY",
    ],
    CURLOPT_POSTFIELDS => json_encode([
        "sender"    => "Telegroup",
        "recipient" => "+37120000000",
        "message"   => "Your appointment on 12.12 at 10:00",
    ]),
]);
$response = json_decode(curl_exec($ch), true);
echo $response["id"];
python
import requests

r = requests.post(
    "https://proxy-mailer-server.tg.lv/public_api/messages",
    headers={"x-api-key": "YOUR_API_KEY"},
    json={
        "sender": "Telegroup",
        "recipient": "+37120000000",
        "message": "Your appointment on 12.12 at 10:00",
    },
)
print(r.status_code, r.json())
javascript
const res = await fetch("https://proxy-mailer-server.tg.lv/public_api/messages", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "x-api-key": "YOUR_API_KEY",
  },
  body: JSON.stringify({
    sender: "Telegroup",
    recipient: "+37120000000",
    message: "Your appointment on 12.12 at 10:00",
  }),
});
console.log(await res.json());

Error codes

Every error response is a JSON object with an error field and, where available, an additional details field.

HTTPWhenExample response
401The x-api-key header is missing{ "error": "API key required" }
401API key not found{ "error": "Invalid API key" }
403Request from an IP address that is not allowed{ "error": "IP not allowed", "ip": "203.0.113.5" }
403The sender is not allowed for this customer{ "error": "Sender not allowed for this client" }
400Invalid JSON{ "error": "SyntaxError: Unexpected token ..." }
400No recipient specified{ "error": "Invalid recipient", "details": "Recipient is required" }
400The recipient does not start with +{ "error": "Invalid recipient", "details": "Recipient must start with '+' (E.164 format)" }
400The number has more than 15 digits{ "error": "Invalid recipient", "details": "Recipient is too long (E.164 max is 15 digits)" }
400Invalid phone number / country code / length{ "error": "Invalid recipient", "details": "Recipient is not a valid phone number" }
400Empty message text{ "error": "Message is required" }
400The message exceeds the maximum length{ "error": "Message is too long", "details": "Maximum length is 65535 characters" }
413The request is larger than 1 MB{ "error": "PayloadTooLargeError: request entity too large" }
429Daily / weekly / monthly / total limit exceeded{ "error": "Limit exceeded", "violations": [{ "period": "day", "max_messages": 100, "used": 100, ... }] }
500Internal server error{ "error": "Internal error" }

Reading messages

List messages

GEThttps://proxy-mailer-server.tg.lv/public_api/messages?limit=100

Returns your sent (outbox) and received (inbox) messages, sorted by id in ascending order. Use last_id for pagination — request the next page with the next_last_id value from the response.

ParameterTypeDescription
limitintegerNumber of records per page, e.g. 100.
last_idintegerReturns messages whose id is greater than this value.
Response
{
  "messages": [ ... ],
  "limit": 100,
  "last_id": 0,
  "next_last_id": 223
}

Each message has the fields created_at, status_updated_at and direction (outbox or inbox).

Next page
curl "https://proxy-mailer-server.tg.lv/public_api/messages?last_id=123&limit=100" \
  -H "x-api-key: YOUR_API_KEY"

Get a single message

GEThttps://proxy-mailer-server.tg.lv/public_api/messages/:id

Returns the data and current status of a single message by its id.

Message statuses

StatusMeaning
queuedThe message has been accepted and added to the sending queue (response to POST).
sentThe message has been accepted by the operator for sending.
deliveredThe operator has confirmed delivery to the recipient.
failedSending or delivery failed.
failed_24hThe message did not receive a final delivery confirmation within 24 hours.
failed_policyThe message was blocked by an internal policy or operator configuration.
failed_transportA network error occurred while sending to the operator (connection, timeout, DNS, etc.); all retries have been exhausted.

Webhook notifications

So you don't have to poll for statuses, Telegroup can send events to a URL in your system. The webhook URL and event types (status changes and/or inbound SMS) are configured by Telegroup on request. We send a POST with Content-Type: application/json; your endpoint must respond with 200 OK.

Status change (action: "status")

Payload: delivered / failed / failed_24h / failed_policy / failed_transport
{
  "id": 123,
  "status": "delivered",
  "status_updated_at": "2026-05-18T14:25:00.000Z",
  "action": "status"
}
Payload: sent
{
  "id": 123,
  "status": "sent",
  "direction": "outbox",
  "status_updated_at": "2026-05-18T14:25:00.000Z",
  "action": "status",
  "operator_name": "Latvia Mobile LMT",
  "operator_message_id": "provider-message-id-123"
}

Inbound SMS (action: "inbound")

Sent when we receive an SMS to a number assigned to you.

Payload
{
  "id": 456,
  "sender": "+37120000000",
  "recipient": "+37120000001",
  "message": "Thank you, I confirm",
  "direction": "inbox",
  "status": "delivered",
  "created_at": "2026-05-18T14:25:00.000Z",
  "action": "inbound"
}

Inbound SMS can only be received on mobile +371 2xxxxxxx numbers. Geographic +371 67xxxxxx numbers can send SMS but cannot receive them.


CRM API

The Telegroup CRM API lets you integrate your contact centre with other information systems: telephony (calls, recordings, queues, calling from the CRM), robocalls, SMS / WhatsApp / email, customer records, appointments and calendar, customer requests, and identity verification with eParaksts and Smart-ID.

Base URL{domain} — your CRM address, provided by Telegroup
FormatJSON, UTF-8
AuthenticationBearer token in the Authorization header

Authentication and conventions

Every request must include the token issued by Telegroup:

HTTP headers
Authorization: Bearer YOUR_TOKEN
Content-Type: application/json
  • Dates — in YYYY-MM-DD HH:MM:SS format, e.g. 2026-01-01 00:00:00. In URL parameters, encode the space as %20.
  • Phone numbers — in CRM methods, Latvian numbers are given as 8 digits (20000000); when sending messages, include the country code (37120000000).
  • Extension (extension) — the agent's internal number in the PBX system, e.g. 404.
  • A trailing slash / is required on all paths.
Example
curl "{domain}api/crm/pbx/calls/list/?dateFrom=2026-01-01%2000:00:00&dateTo=2026-02-01%2000:00:00" \
  -H "Authorization: Bearer YOUR_TOKEN"

Telephony (PBX)

Call history, missed calls, call recordings, calling from your system and real-time monitoring.

List calls

GET{domain}api/crm/pbx/calls/list/?dateFrom=...&dateTo=...

Returns inbound and outbound calls for the specified period.

ParameterTypeDescription
dateFromdatetimeStart of the period.
dateTodatetimeEnd of the period.

Missed calls

GET{domain}api/crm/pbx/callsMissed/list/?processedBy=no&dateFrom=...&dateTo=...

A list of missed calls — for example, to build callback lists.

ParameterTypeDescription
processedBystringno — only calls that have not been handled yet.
dateFromdatetimeStart of the period.
dateTodatetimeEnd of the period.

Call recording

GET{domain}api/crm/pbx/records/download/?linkedid=...&subject=incoming

Downloads the audio recording of a call.

ParameterTypeDescription
linkedidstringCall identifier from the call list.
subjectstringincoming or outgoing.

Place a call (click-to-call)

POST{domain}api/crm/pbx/outgoing/make/

Starts a call from the agent's extension to the specified number: the agent's phone rings first, and once picked up, the call is connected to the customer.

ParameterTypeDescription
extensionstringThe agent's extension.
destinationstringThe number to call.
subjectstringoutgoing.
Request body (JSON)
{
  "extension": "404",
  "destination": "20000000",
  "subject": "outgoing"
}

Active channels (Live Monitor)

GET{domain}api/crm/pbx/LiveMonitor/getChannels/

Calls currently in progress, in real time.

Queue status (Live Monitor)

GET{domain}api/crm/pbx/LiveMonitor/getQueues/

Call queue status — waiting calls and agents.

Agents and queues

Add agents to queues and manage pauses — for example, to sync with a time-tracking system.

Add to queue

POST{domain}api/crm/pbx/login/addQueue/
ParameterTypeDescription
extensionstringExtension.
queuestringQueue identifier.
penaltyintegerPriority in the queue (a lower number means higher priority).
Request body (JSON)
{
  "extension": "404",
  "queue": "1001*Q-TEST",
  "penalty": 1
}

Remove from queue

POST{domain}api/crm/pbx/login/removeQueue/
Request body (JSON)
{
  "extension": "404",
  "queue": "1001*Q-TEST"
}

Pause

POST{domain}api/crm/pbx/pause/pause/

The agent temporarily stops receiving queue calls.

ParameterTypeDescription
extensionstringExtension.
reasonstringPause reason, e.g. other.
Request body (JSON)
{
  "extension": "404",
  "reason": "other"
}

End pause

POST{domain}api/crm/pbx/pause/unpause/
Request body (JSON)
{
  "extension": "404"
}

Robocalls

Automated voice calls with Latvian speech synthesis — appointment reminders with confirm/cancel options, surveys, notifications.

List robocalls

GET{domain}api/crm/pbx/outgoingAutoDial/list/?dateFrom=...

A list of completed robocalls and their results (including keys pressed).

ParameterTypeDescription
dateFromdatetimeStart of the period.

Robocall — survey / notification

POST{domain}api/crm/pbx/outgoingAutoDial/save/

The elements of the text array are read out in order.

ParameterTypeDescription
servicestringcallback, callback2 or reklama.
callerstringThe number the call is placed from (your number on the Telegroup network).
recipientstringThe call recipient.
textarray | string | objectText read out by the speech synthesis (see the variants below).
options.voicestringlv-LV-NilsNeural (male), lv-LV-EveritaNeural (female) or lv-LV.
options.speedintegerSpeech rate (0 — default).
options.pitchintegerVoice pitch (0 — default).
options.operatorstringThe number to forward the call to if the customer chooses to speak with an administrator.
Request body (JSON)
{
  "service": "callback",
  "caller": "67000000",
  "recipient": "20000000",
  "text": [
    "Sveiki. Kā jūs vērtējat mūsu darbu?",
    "Nospiediet 1, ja viss ir kārtībā. Nospiediet 2, ja slikti. Nospiediet 3, lai sazinātos ar mums."
  ],
  "options": {
    "voice": "lv-LV-NilsNeural",
    "speed": 5,
    "pitch": 0
  }
}

Appointment reminder (callback2)

POST{domain}api/crm/pbx/OutgoingAutoDialCallback2/save/

A single text containing the appointment details.

Request body (JSON)
{
  "service": "callback2",
  "caller": "67000000",
  "recipient": "20000000",
  "text": "Labdien, Jums zvana klīnikas XXX robobalss saistībā ar parīt plānoto pierakstu 01.02.2026 plkst. 19:30.",
  "options": { "voice": "lv-LV-NilsNeural", "speed": 0, "pitch": 0 }
}

Appointment reminder with data (callback2 JSON)

POST{domain}api/crm/pbx/OutgoingAutoDialCallback2/save/

Instead of text, pass the appointment data as a JSON string — the text is generated from a preconfigured template.

Request body (JSON)
{
  "service": "callback2",
  "caller": "67000000",
  "recipient": "20000000",
  "text": ["{\"name\": \"Anna\", \"date\": \"2026-07-22 10:45:00\", \"full_name\": \"Anna Bērziņa\", \"room\": \"Ārsts XXX\", \"information\": \"konsultācija\", \"start_time\": \"22.07.2026 11:45\", \"time\": \"11:45\", \"date_short\": \"22.07\", \"id\": \"A8PAMX\", \"section\": \"\", \"section_address\": \"\"}"],
  "options": { "voice": "lv-LV-NilsNeural", "speed": 0, "pitch": 0 }
}

Appointment reminder with menu (saveSimple)

POST{domain}api/crm/pbx/OutgoingAutoDialCallback2/saveSimple/

The full scenario in a single request: an intro, responses to key 1 (confirm) and key 2 (cancel), and a cancellation confirmation (22). The [DATE] placeholder is replaced with the appointment time.

Request body (JSON)
{
  "service": "callback2",
  "caller": "67000000",
  "recipient": "20000000",
  "text": {
    "intro": [
      "Labdien, Jums zvana klīnikas XXX robobalss. Jūsu pieraksts [DATE].",
      "Ja apstiprināt pierakstu, spiediet viens. Ja vēlaties atcelt, spiediet divi. Lai pārceltu pierakstu, spiediet trīs. Lai noklausītos atkārtoti, spiediet nulle."
    ],
    "answer1": "Paldies, gaidīsim Jūs uz vizīti!",
    "answer2": "Lai atceltu pierakstu, lūdzu vēlreiz nospiediet divi.",
    "answer22": "Apstiprinām, ka Jūsu vizīte ir atcelta."
  },
  "options": {
    "operator": "67000000",
    "voice": "lv-LV-NilsNeural",
    "speed": 0,
    "pitch": 0
  }
}

Messaging: SMS, WhatsApp, email

A unified message sending mechanism for all channels. The request body is an array — you can send several messages in a single request.

Send SMS

POST{domain}api/crm/mailer/mailer/queue/
ParameterTypeDescription
sourcestringSMS, WhatsApp or Email.
fromstringSender (registered name or number).
tostringRecipient; for phone numbers, include the country code.
messagestringMessage text.
Request body (JSON)
[
  {
    "source": "SMS",
    "from": "Telegroup",
    "to": "37120000000",
    "message": "Your message text"
  }
]

Send WhatsApp (template)

POST{domain}api/crm/mailer/mailer/queue/

A message based on an approved WhatsApp template with variables.

ParameterTypeDescription
data.templatestringTemplate name.
data.languagestringTemplate language, e.g. lv.
data.variablesobjectTemplate variables: {"1": "..."}.
Request body (JSON)
[
  {
    "source": "WhatsApp",
    "from": "Telegroup WhatsApp",
    "to": "37120000000",
    "data": {
      "template": "atgadinajums",
      "language": "lv",
      "variables": { "1": "12.12 at 10:00" }
    }
  }
]

Send email

POST{domain}api/crm/mailer/mailer/queue/
Request body (JSON)
[
  {
    "source": "Email",
    "to": "klients@example.com",
    "subject": "Subject",
    "message": "Message text"
  }
]

List messages

GET{domain}api/crm/mailer/mailer/list/?dateFrom=...&dateTo=...&source=SMS&lastId=0

Sent and received messages.

ParameterTypeDescription
dateFromdatetimeStart of the period.
dateTodatetimeEnd of the period.
sourcestringSMS, WhatsApp or Email.
lastIdintegerReturns messages after this ID (for pagination / loading new messages).

Message status

POST{domain}api/crm/mailer/mailer/state/

Pass an array of message IDs to get their delivery statuses.

Request body (JSON)
[10, 11, 12, 13]

Mark a conversation as important

POST{domain}api/crm/mailer/recipients/markConversationImportant/
ParameterTypeDescription
sourcestringChannel.
senderstringSender.
recipientstringRecipient.
importantintegerImportance flag.
Request body (JSON)
{
  "source": "WhatsApp",
  "sender": "TEST",
  "recipient": "37120000000",
  "important": 2
}

Conversations by importance

GET{domain}api/crm/mailer/recipients/getConversationImportant/?important=0
ParameterTypeDescription
importantintegerImportance flag to filter by.

Send a confirmation code (OTP)

POST{domain}api/crm/mailer/confirmation/make/

Sends a one-time code to a phone — e.g. to confirm an appointment or a phone number.

Request body (JSON)
{
  "phone": "20000000"
}

Verify a confirmation code

POST{domain}api/crm/mailer/confirmation/makeCheck/
Request body (JSON)
{
  "phone": "20000000",
  "code": 123456
}

Requests (tickets)

Log and read customer requests, including linking them to a call and its recording.

List requests

GET{domain}api/crm/requests/requests/list/?dateFrom=...&dateTo=...
ParameterTypeDescription
dateFromdatetimeStart of the period.
dateTodatetimeEnd of the period.

List categories

GET{domain}api/crm/requests/requests/categories/

Returns the category IDs to use when adding a request.

Add a request

POST{domain}api/crm/requests/requests/add/
ParameterTypeDescription
subjectstringOutgoing, Incoming or another subject.
typestringFor a call request: outgoing or incoming.
operatorstringThe agent's first and last name.
uniqueidstringCall ID (from the call list) — links the request to the call recording.
category_idintegerCategory from the category list.
caller_category_idintegerCaller category from the category list.
phonestringCustomer phone number.
commentstringComment.
Request body (JSON)
{
  "subject": "Outgoing",
  "type": "outgoing",
  "operator": "First Last",
  "uniqueid": "",
  "category_id": 1,
  "caller_category_id": 3,
  "phone": "20000000",
  "comment": "Request from API"
}

Customers

Sync customer records with your system. The outer_id field is the customer's ID in your system.

Customer details

GET{domain}api/crm/customers/customers/get/?code=...
ParameterTypeDescription
codestringCustomer identifier.

Search customers

GET{domain}api/crm/customers/customers/list/?dateFrom=...&dateTo=...&phone=...&email=...
ParameterTypeDescription
dateFromdatetimeCreated/modified from.
dateTodatetimeTo.
phonestringSearch by phone number.
emailstringSearch by email.

Add a customer

POST{domain}api/crm/customers/customers/add/
Request body (JSON)
{
  "name": "Anna",
  "surname": "Bērziņa",
  "phone": ["20000000"],
  "email": ["klients@example.com"],
  "outer_id": 111
}

Update a customer

POST{domain}api/crm/customers/customers/update/

Phone numbers and email addresses can be given a label (e.g. Home, Work).

Request body (JSON)
{
  "id": 1,
  "outer_id": 111,
  "name": "Anna",
  "surname": "Bērziņa",
  "personal_code": "XXXXXX-XXXXX",
  "company": "Uzņēmums SIA",
  "phones": [
    { "contact": "20000000", "title": "Home" },
    { "contact": "20000001", "title": "Work" }
  ],
  "emails": [
    { "contact": "klients@example.com", "title": "" }
  ]
}

Appointments and calendar

Manage appointments (visits, bookings): rooms/specialists, available time slots, and creating, updating and cancelling appointments, as well as invoices.

Rooms / specialists

GET{domain}api/crm/meetings/rooms/list/

A list of resources (rooms, specialists, departments) that appointments can be booked for.

Appointment fields

GET{domain}api/crm/meetings/meetings/moduleFields/

A description of the appointment form fields (including custom fields).

Available time slots

GET{domain}api/crm/meetings/scheduler/list/?service=...&id=...&params[time_end]=...

Returns available appointment times for the selected service and resource.

ParameterTypeDescription
servicestringService name.
idintegerRoom / specialist ID.
params[time_end]datetime (ISO)Search up to this time.
Response
{
  "2025-08-27 10:30:00": { "room_id": 28, "scheduler_id": 9802, "participantsMax": 1 },
  "2025-08-27 10:45:00": { "room_id": 28, "scheduler_id": 9802, "participantsMax": 1 },
  ...
}

List appointments

GET{domain}api/crm/meetings/events/list/?dateFrom=...&dateTo=...&phone=...&customer_id=...
ParameterTypeDescription
dateFromdatetimeStart of the period.
dateTodatetimeEnd of the period.
phonestringFilter by phone number.
customer_idintegerFilter by customer.

Appointment details

GET{domain}api/crm/meetings/events/event/?code=...
ParameterTypeDescription
codestringAppointment code (UUID).

Create an appointment

POST{domain}api/crm/meetings/events/event/
ParameterTypeDescription
room_idintegerRoom / specialist.
outer_customer_idintegerCustomer ID in your system.
name_surnamestringCustomer's first and last name.
phonestringPhone number.
languagestringCommunication language: lv, ru, en.
start_timedatetimeStart.
end_timedatetimeEnd (optional).
Request body (JSON)
{
  "room_id": 1,
  "outer_customer_id": 1,
  "name_surname": "Anna Bērziņa",
  "phone": "20000000",
  "language": "lv",
  "start_time": "2026-03-05 09:10:00"
}

Update an appointment

PATCH{domain}api/crm/meetings/events/event/
Request body (JSON)
{
  "id": 14,
  "room_id": 1,
  "name_surname": "Anna Bērziņa",
  "start_time": "2026-03-05 08:10:00"
}

Delete an appointment

DELETE{domain}api/crm/meetings/events/event/
Request body (JSON)
{
  "id": 14
}

Create an invoice

POST{domain}api/crm/meetings/invoices/create/

Creates an invoice for an appointment; send: true — sends it to the customer.

Request body (JSON)
{
  "id": 1,
  "send": true
}

Orders and payments

Register a payment

POST{domain}api/orders/transactions/create/

Adds a payment transaction to an order (e.g. a card terminal payment).

ParameterTypeDescription
order_idstringOrder ID.
transaction_amountnumberAmount in EUR.
transaction_reasonstringPayment type, e.g. Terminal.
Request body (JSON)
{
  "order_id": "4755",
  "transaction_amount": 10,
  "transaction_reason": "Terminal"
}

Identity verification

Verify a customer's identity with eParaksts (LVRTC) and Smart-ID.

eParaksts — authentication link

GET{domain}api/crm/integration/LVRTC/authentication/

Returns a link the customer uses to verify their identity with eParaksts.

Smart-ID — start

POST{domain}api/crm/integration/smartID/init/

Sends a request to the customer's Smart-ID app and returns a verification code and session ID.

ParameterTypeDescription
idnstringPersonal identification code.
countrystringCountry code: LV, LT, EE.
Request body (JSON)
{
  "idn": "XXXXXX-XXXXX",
  "country": "LV"
}

Smart-ID — check

POST{domain}api/crm/integration/smartID/process/

Checks whether the customer has confirmed the request.

Request body (JSON)
{
  "idn": "XXXXXX-XXXXX",
  "country": "LV",
  "sessionId": "SESSION_ID"
}