Nexa API · v1

Developers

Getting started

The Nexa API

Read and write your maintenance data from your own systems. One REST API over assets, work orders, technicians and spare parts, authenticated with a key you create yourself, plus signed webhooks so you do not have to poll.

Everything the Nexa portal does with your data, this API can do too. It is the same services behind both, so an operation opened through the API is indistinguishable from one a supervisor opened by hand — it appears on the calendar, reaches the technician’s phone, and counts toward the same KPIs.

What you can build

  • ERP synchronisation. Push your equipment master data into Nexa and keep it in step, so the register your maintenance team works from is the one your finance team owns.
  • Automated work orders. Have a monitoring system, a helpdesk or a building management system open an operation the moment something needs attention, rather than waiting for somebody to notice and type it in.
  • Reporting and BI. Pull completed operations, downtime and spare-part movements into your own warehouse and report on them beside everything else.
  • Custom interfaces. A kiosk on the shop floor, a tablet view for a specific line, or an internal tool that fits how one plant actually works.

Quickstart

Five minutes, assuming you have a Nexa account on an Enterprise plan.

  1. Create a key. In the Nexa portal, go to Settings → API keys and press Create key. Only a business owner can do this. Start with read-only scopes; you can widen them later.
  2. Copy the secret. It is shown once and never again. If you lose it, rotate the key to get a new one.
  3. Check it works. The /me endpoint tells you which business the key belongs to and what it may do — the fastest way to confirm you are pointed at the right place.
export NEXA_API_KEY="nxa_live_..."

curl https://nexa.com.tn/api/v1/me \
  -H "Authorization: Bearer $NEXA_API_KEY"

Then fetch something real. This lists your machines, newest first:

curl "https://nexa.com.tn/api/v1/assets?category=production_machine&limit=10" \
  -H "Authorization: Bearer $NEXA_API_KEY"

Resources

Eight resources. Assets and operations are what most integrations are about; the rest support them.

How it fits together

Four things to read next, roughly in this order:

  • Authentication — creating a key, what scopes mean, and how to rotate without an outage.
  • Conventions — the response envelope, pagination, errors, rate limits and idempotency. Read this before you write a client; it is the part that saves you the most time.
  • API reference — every endpoint, with runnable samples.
  • Webhooks — how to stop polling, and how to verify that a delivery really came from us.

The machine-readable spec lives at /api/v1/openapi.json. It needs no key, and you can generate a client in your own language from it.

On this page