NexNFC API for your HR, ERP and CRM

Connect NexNFC to your systems

Keep every employee's card up to date from your HR system, send each lead to your CRM the moment it arrives, and pull card analytics into your own reports.

employees inHR / ERP → NexNFCNew starters get a card, changes show on it, leavers are switched off. Matched by your employee number.
leads outNexNFC → CRMA webhook tells your CRM about each new lead within seconds, or read them on a schedule.
analytics outNexNFC → BIViews, contact saves and leads per person and per day.

The address of every call starts with https://nfc.nexnfc.com/api/v1. Send and receive JSON (Content-Type: application/json). Times are in UTC, written as ISO 8601 (2026-11-21T09:30:00+00:00).

API keys

A company admin makes keys on the dashboard: Dashboard → Integrations → New API key. Give each system its own key, so you can switch one off without touching the others.

The key is shown once. Keep it in your system's secret settings; NexNFC keeps only a scrambled copy and can't show it again. If it is lost or leaked, revoke it on the same page and make a new one. A key only ever sees its own company's cards.

PermissionLets the key
employees:readlist and read employees
employees:writecreate and change employees, switch cards off, sync the list
leads:readread leads (people who shared their details, scanned business cards)
analytics:readread views, saves and leads per person and per day

Sending the key

Put the key in the Authorization header (or in X-Api-Key if your tool can't set that one). Never put it in the address. Try it with GET /me, which says which company the key belongs to:

curl https://nfc.nexnfc.com/api/v1/me \
  -H "Authorization: Bearer nxk_your_key"
{
  "status": true,
  "data": {
    "company": { "id": "9b2f…", "name": "Acme Trading", "employees": 42, "max_employees": 50, "remaining": 8 },
    "key": { "name": "Odoo HR", "prefix": "nxk_3fK9aQ2m", "scopes": ["employees:read", "employees:write"] }
  },
  "error": "",
  "message": "OK"
}

Answers and errors

Every answer has the same shape: status (true or false), data, message, and error when something went wrong. Validation errors also list what is wrong with each field in errors.

HTTPMeans
200, 201Done (201: a new employee was created).
401No key, an unknown or revoked key, or the company's account is switched off.
403The key doesn't have the permission this call needs.
404No such employee in your company.
422Something in the request is wrong (see errors), or your plan's card limit is reached ("error": "quota").
429Too many calls: wait the seconds in Retry-After.
503The API is being updated. Try again in a few minutes.
{
  "status": false,
  "data": null,
  "errors": { "email": ["This e-mail is already used by another card."] },
  "error": "This e-mail is already used by another card.",
  "message": "Validation failed."
}

Each key may make 120 calls a minute (the X-RateLimit-Remaining header shows what's left). To send many people at once, use sync: one call for up to 500 people.

The employee

Each person has a card. Your system finds them by your own employee number (employee_number, unique within your company), or by the card's id. Employees added on the dashboard without a number can be given one there, or found by e-mail with GET /employees?email=….

FieldAbout it
idThe card's id (also in the card link). Read only.
employee_numberYour HR or ERP id for the person, up to 100 characters.
first_name, last_name, emailNeeded when creating. The e-mail must not be used by another card.
position, department, company_nameShown on the card (company name falls back to your company's).
mobile_number, telephone_number, whatsapp_numberWith the country code, e.g. +966500000000.
website, booking_url, linkedin_url, twitter_url, insta_url, fb_url, snapchat_urlLinks on the card.
address, bioText on the card.
first_name_ar, last_name_ar, position_ar, company_name_ar, address_ar, bio_arThe Arabic side of the card.
activeWrite false to switch the card off, true to switch it back on.
statusRead only: active, inactive or waiting_for_card (a printed card is on order).
executiveRead only: true for an executive card.
card_url, vcard_url, photo_urlRead only. Photos, layout and colours are set on the dashboard.
created_at, updated_atRead only.

GET/employeesemployees:read

Oldest first, 50 a page (per_page up to 200, page). Filters: employee_number, email, department, status (active, inactive, waiting_for_card) and updated_since (a date or time: only people changed since then).

curl "https://nfc.nexnfc.com/api/v1/employees?updated_since=2026-11-20T00:00:00Z&per_page=100" \
  -H "Authorization: Bearer nxk_your_key"
{
  "status": true,
  "data": {
    "employees": [
      {
        "id": "4c1d8e2a-…",
        "employee_number": "EMP-0042",
        "first_name": "Sara", "last_name": "Al-Harbi", "email": "sara@acme.com",
        "position": "Sales Manager", "department": "Sales",
        "mobile_number": "+966500000042",
        "status": "active", "active": true, "executive": false,
        "card_url": "https://nfc.nexnfc.com/?Uid=4c1d8e2a-…",
        "updated_at": "2026-11-20T08:14:03+00:00"
      }
    ],
    "meta": { "total": 1, "per_page": 100, "current_page": 1, "last_page": 1 }
  },
  "error": "",
  "message": "Employees"
}

GET/employees/{employee_number}employees:read

One person, by your employee number or by the card id. If your numbers contain a /, use the list filter ?employee_number= instead.

PUT/employees/{employee_number}employees:write

Creates the person if your company has no one with that number, otherwise changes them. Fields you leave out stay as they are; null clears a field. PATCH does the same. The answer has the employee and result: created (HTTP 201), updated or unchanged.

curl -X PUT https://nfc.nexnfc.com/api/v1/employees/EMP-0042 \
  -H "Authorization: Bearer nxk_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "first_name": "Sara",
    "last_name": "Al-Harbi",
    "email": "sara@acme.com",
    "position": "Sales Manager",
    "department": "Sales",
    "mobile_number": "+966500000042",
    "position_ar": "مديرة المبيعات"
  }'

A new card counts towards your plan. When the plan is full the answer is 422 with "error": "quota"; ask NexNFC for more cards. New people can't sign in to the dashboard until a company admin sends them an invite there.

DELETE/employees/{employee_number}employees:write

Switches the card off: it stops opening, and the person is signed out of the dashboard. Nothing is deleted, so their leads and history stay. Switch it back on with PUT and {"active": true}.

POST/employees/syncemployees:write

Sends your whole list (up to 500 people a call) and creates or changes each one, matched by employee_number. With "deactivate_missing": true, cards whose employee number is not in the list are switched off. Cards without an employee number are never touched. Send "dry_run": true first to see what would happen without saving anything.

curl -X POST https://nfc.nexnfc.com/api/v1/employees/sync \
  -H "Authorization: Bearer nxk_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "deactivate_missing": true,
    "dry_run": false,
    "employees": [
      { "employee_number": "EMP-0042", "first_name": "Sara", "last_name": "Al-Harbi", "email": "sara@acme.com", "position": "Sales Manager" },
      { "employee_number": "EMP-0043", "first_name": "Omar", "last_name": "Saleh", "email": "omar@acme.com" }
    ]
  }'
{
  "status": true,
  "data": {
    "created": 1, "updated": 1, "unchanged": 0, "deactivated": 3, "failed": 0,
    "errors": [],
    "dry_run": false
  },
  "error": "",
  "message": "Synced"
}

A person who can't be saved doesn't stop the others: they appear in errors with their place in your list (index, from 0), their employee_number and what is wrong. With more than 500 people, send them in several calls and turn deactivate_missing on only in a single call that holds everyone (or leave it off and switch leavers off one by one).

Leads

GET/leadsleads:read

People who shared their details from your company's cards, and business cards your team scanned. Oldest first, 50 a page (up to 200). To fetch only new leads on a schedule, keep the meta.last_id of your last call and send it as after_id next time. Other filters: since and updated_since (date or time), employee_number, status (new, contacted, won, lost), source (nfc, qr, link, scan…).

curl "https://nfc.nexnfc.com/api/v1/leads?after_id=1287" \
  -H "Authorization: Bearer nxk_your_key"
{
  "status": true,
  "data": {
    "leads": [
      {
        "id": 1288,
        "name": "Khalid Mansour", "email": "khalid@buyer.sa", "phone": "+966551234567",
        "company": "Buyer Co", "job_title": "Procurement",
        "message": "Please send your price list.",
        "source": "nfc", "status": "new", "has_photo": false,
        "campaign": { "id": 7, "name": "LEAP 2026" },
        "employee": { "id": "4c1d8e2a-…", "employee_number": "EMP-0042", "name": "Sara Al-Harbi", "email": "sara@acme.com", "department": "Sales" },
        "created_at": "2026-11-21T10:02:11+00:00",
        "updated_at": "2026-11-21T10:02:11+00:00"
      }
    ],
    "meta": { "total": 1, "per_page": 50, "current_page": 1, "last_page": 1, "last_id": 1288 }
  },
  "error": "",
  "message": "Leads"
}

For leads the moment they arrive, use the lead.created webhook instead of asking every minute.

Analytics

GET/analyticsanalytics:read

Totals, one row per card (your employees and the company's own card) and one row per day, for from to to (YYYY-MM-DD, UTC days; the last 30 days if you leave them out; at most 366 days a call). Add employee_number for one person.

NumberCounts
viewstimes the card was opened (tap, QR, link)
unique_visitorsdifferent visitors (counted per day)
savescontact saved to a phone
clicksbuttons and links tapped
leadsdetails shared
wallet, sharesadded to a wallet, card shared on
{
  "status": true,
  "data": {
    "range": { "from": "2026-11-01", "to": "2026-11-21", "timezone": "UTC" },
    "totals": { "views": 1840, "unique_visitors": 1312, "saves": 402, "clicks": 977, "leads": 61, "wallet": 18, "shares": 25 },
    "employees": [
      { "id": "4c1d8e2a-…", "employee_number": "EMP-0042", "name": "Sara Al-Harbi", "email": "sara@acme.com",
        "department": "Sales", "company_card": false,
        "views": 212, "unique_visitors": 160, "saves": 51, "clicks": 88, "leads": 9, "wallet": 2, "shares": 4 }
    ],
    "daily": [ { "date": "2026-11-01", "views": 74, "saves": 15, "leads": 2 } ]
  },
  "error": "",
  "message": "Analytics"
}

Webhooks

A webhook is an address on your system that NexNFC calls when something happens, so you don't have to keep asking. Add one on the dashboard: Integrations → Add webhook. Pick the events, then copy the signing secret (shown once; you can make a new one there). Send test sends a ping event and shows what your address answered.

The address must be public and start with https://. NexNFC sends a POST with a JSON body and waits up to 10 seconds. Answer with any 2xx status as soon as you have the message (do the slow work afterwards). Redirects are not followed.

Events

EventSent whendata holds
lead.createdsomeone shares their details from a card, or a business card is scannedthe lead
employee.createda card is added (dashboard, import, order or API)the employee
employee.updateda person's details, number or status changethe employee
employee.deactivateda card is switched offthe employee
employee.deleteda card is deleted on the dashboardid, employee_number, email
pingyou press Send testa message

Changes your own system makes through the API are sent too. If your system both writes employees and listens for employee.updated, compare the data with what you hold before writing it back.

POST /your/webhook HTTP/1.1
Content-Type: application/json
User-Agent: NexNFC-Webhooks/1.0
X-NexNFC-Event: lead.created
X-NexNFC-Delivery: 0f3e2c1a-6d1b-4b0e-9a57-2c7f0f3c9b11
X-NexNFC-Signature: t=1763719331,v1=5b1f0e…

{
  "id": "0f3e2c1a-6d1b-4b0e-9a57-2c7f0f3c9b11",
  "event": "lead.created",
  "created_at": "2026-11-21T10:02:11+00:00",
  "company": { "id": "9b2f…", "name": "Acme Trading" },
  "data": { "id": 1288, "name": "Khalid Mansour", "email": "khalid@buyer.sa", "…": "…" }
}

The id stays the same when a message is sent again, so you can skip one you already have.

Checking the signature

Check every message before trusting it. X-NexNFC-Signature holds the send time t (Unix seconds) and v1: the HMAC-SHA256, in hex, of t, a dot and the raw body, made with your webhook's secret. Work it out on the body exactly as it arrived (before parsing the JSON), compare in constant time, and refuse messages more than 5 minutes old.

const crypto = require('crypto');

// rawBody: the request body as a string, before JSON.parse
function verifyNexnfc(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(',').map(p => p.split('=')));
  if (!parts.t || !parts.v1 || Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false;
  const expected = crypto.createHmac('sha256', secret).update(`${parts.t}.${rawBody}`).digest('hex');
  return expected.length === parts.v1.length
    && crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}

Retries

If your address doesn't answer with a 2xx within 10 seconds, the message is sent again after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 12 hours, then given up. Each try is signed again with a fresh time. The dashboard lists the last messages with what your address answered. A webhook that has failed every try for more than a day is switched off; switch it back on in Integrations once your address works again.

Versions

This is version 1 (/api/v1). New fields and calls may be added to it at any time, so ignore fields you don't know. Nothing is renamed or removed in v1; a change that would break your code comes as a new version, announced in advance.

Questions, or a system you'd like to connect? Contact NexNFC.