Connect NEXA LYNK
to your own systems.
Use the public API to read customers and conversations, send messages and start automations. Use webhooks to have a new message or a new order sent to your system as it happens.
Start free trialSee the endpoints
- OpenAPI 3.1 description
- Bearer API keys
- Every time in UTC
- Lists are paged; sends carry an idempotency key
API reference
10 endpoints for customers, conversations and messages, automations, and members and teams. Each one names the permission it needs.
See the endpointsWebhook events
7 kinds of event, sent as a signed POST to your https address, so your system can check each one came from us.
See the eventsService accounts and API keys
Give a program a service account with only the permissions it needs. A key is shown once when it is issued, and can be rotated or revoked at any time.
See how to startYour first request in three steps
The workspace needs API and Webhook access. A key belongs to one workspace and carries the permissions it was issued with.
- 1
Create a service account with only what it needs
Create one under Service accounts in the Portal and give it a role holding just the permissions it uses. To read customers, give it the permission to read customers.
Permission: crm.contact.read - 2
Issue an API key and copy it straight away
A key starts with xk_ and is shown this once; it is not stored anywhere it can be read back. Afterwards the list shows only its prefix.
- 3
Send your first request
Put the key in the Authorization header. On the last page nextCursor is null; otherwise send it back unchanged as cursor for the next one.
# First request: list 20 customers
curl "https://api.nexa-lynk.com/v1/tenants/{tenantId}/customers?limit=20" \
-H "Authorization: Bearer xk_••••••••••••••••"
# The answer (in part)
{
"customers": [
{
"id": "…",
"displayName": "Amira Zain",
"channels": ["whatsapp"],
"stage": "customer",
"tags": ["wedding"],
"updatedAt": "2026-10-27T08:15:30.123456Z"
}
],
"nextCursor": "…"
}
The endpoints
All 10 of them, from our public API description. Each accepts a key only when it carries the permission named beside it.
Customers
Read, create and change customer records, with their tags, stage and custom fields.
- GET
/v1/tenants/{tenantId}/customersList customers, filtered by tag, stage or time of last change; paged · Permission
crm.contact.read - POST
/v1/tenants/{tenantId}/customersAdd a customer · Permission
crm.contact.update - GET
/v1/tenants/{tenantId}/customers/{customerId}Read one customer · Permission
crm.contact.read - PUT
/v1/tenants/{tenantId}/customers/{customerId}Change a customer, sending the version you last read · Permission
crm.contact.update
Conversations and messages
Read conversations and their messages, and send a message or a template in one.
- GET
/v1/tenants/{tenantId}/conversationsList conversations, filtered by status or time of last change; paged · Permission
inbox.conversation.read - GET
/v1/tenants/{tenantId}/conversations/{conversationId}Read one conversation and its messages, oldest first; paged · Permission
inbox.conversation.read - POST
/v1/tenants/{tenantId}/conversations/{conversationId}/messagesSend a text of up to 4,000 characters, or a template; carries an idempotency key · Permission
inbox.message.send
Automations
Start an automation for a customer from your own system.
- POST
/v1/tenants/{tenantId}/automations/{automationId}/runsStart an automation on the customer’s latest conversation; carries an idempotency key · Permission
automation.workflow.manage
Members and teams
Read the workspace’s members and teams, to match them with the people in your system.
- GET
/v1/tenants/{tenantId}/membersList the members · Permission
tenancy.membership.list - GET
/v1/tenants/{tenantId}/teamsList the teams · Permission
tenancy.team.list
What every endpoint has in common
Paging
Customers, conversations and messages are always paged, 100 to a page unless you send limit, which goes up to 200. Pass the previous page’s nextCursor to get the next page; nothing is skipped or repeated.
Idempotency keys
Sending a message and starting an automation need an Idempotency-Key. Send the same key again and nothing is sent or started twice.
Times
RFC 3339, in UTC, to the microsecond: 2026-10-27T08:15:30.123456Z.
Money
Whole minor units, as a string, beside an ISO 4217 currency.
Errors
A refused request always has the same envelope: a fixed error code, a sentence, a request id, and whether trying again can help.
Workspace rules
When the workspace’s own rules turn a write down, such as the plan’s customer limit, a stale version or a send the platform refused, the answer carries an outcome word, as the Portal does.
Webhook events
Each event is a POST with a JSON body to an address you add, signed so your system can confirm it came from us. Each address can take only the events it wants.
| Event | When it is sent |
|---|---|
message.received | A customer sends a message |
conversation.assigned | A conversation is assigned |
conversation.closed | A conversation is closed |
contact.created | A customer is added |
order.created | A new order comes in |
automation.step | An automation reaches its webhook step |
webhook.test | You send a test event from the Portal |
automation.step and webhook.test need no subscription: an automation sends the first to the address its step names, and you send the second yourself.
import { createHmac, timingSafeEqual } from 'node:crypto';
function verify(secret, headers, rawBody) {
const timestamp = String(headers['webhook-timestamp'] ?? '');
// Refuse a delivery more than 300 seconds from your own clock
if (!/^[0-9]+$/.test(timestamp) || Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false;
const expected = 'v1=' + createHmac('sha256', secret)
.update(timestamp + '.' + rawBody)
.digest('hex');
// Compare in constant time, over the body exactly as it arrived
const given = String(headers['webhook-signature'] ?? '');
return given.length === expected.length &&
timingSafeEqual(Buffer.from(given), Buffer.from(expected));
}
- The address must start with https://, use the standard port, and not point into a private network.
- The signing secret is shown once, when you add the address, and can be changed at any time.
- Answer with a 2xx within 10 seconds. Otherwise the delivery is tried again, up to 5 times, with the same id.
- After 20 failed attempts in a row the address is switched off; turn it back on once the receiving system is fixed.
- Send a test event whenever you like, and see the result among the recent deliveries.
The headers on every delivery
Webhook-Id- The delivery’s id, the same on every retry: drop one you have seen.
Webhook-Timestamp- When it was signed, in whole seconds since 1970.
Webhook-Event- The event, as in the table.
Webhook-Signature- v1= followed by the hex HMAC-SHA256 of the timestamp, a dot and the body.
Usage and plans
Call allowance
- Every call counts against the workspace’s monthly allowance; the per-minute budget is drawn first.
- A call refused for either budget is not counted.
- A refused call is answered 429, with Retry-After saying how many seconds to wait.
- API calls are included in each plan that has the API, under fair use.
Which plans have it
Want us to connect it for you?
Connecting the AI customer service to your ERP, order or membership system is a project XYSTEM TECH SOLUTIONS quotes for. Tell us on WhatsApp what you want to connect.
