Limits
Rate limits, page sizes, webhook delivery behavior, idempotency and identifiers
Last updated: December 4, 2026
Rate Limits
Two limits apply to every request. Both are counted in one-second windows.
| Limit | Value | Counted per |
|---|---|---|
| Requests per IP address | 100 per second | Source IP address |
| Requests per key owner | 40 per second, plus a short queue for bursts | The user who created the API key. All keys created by the same user share this budget, and other activity by the same user counts toward it. |
A request over the limit gets 429 with the plain-text body Rate limit exceeded. Please try again later. When a Retry-After header is present it gives the wait in seconds. If it is absent, wait one second and retry with exponential backoff.
For reconciliation polling, one request at a time is enough: list conversations or labels by time window and page through the results. There is no need to fan out per device.
Page Sizes and Ranges
| Endpoint | Page size | Notes |
|---|---|---|
GET /api/organizations/{orgId}/labels | limit 1–100, default 100 | Offset paging. X-Total-Count header carries the total. |
GET /api/nxhub/conversations | pageSize 1–100, default 50 | Token paging with pageToken. |
GET /api/task-boards/{boardId}/tasks | limit up to 500, default 200 | Offset paging. |
| Task comments | No paging | All comments on the task are returned. |
| Voice-assistant turns | limit up to 100, default 20 | Newest first. |
| Conversation timeline | Up to 6 hours per query | endMs - startMs must not exceed 6 hours. |
| Conversation preview and create | Up to 90 minutes per range |
Size Limits
| Item | Limit |
|---|---|
| Request body | 30,000,000 bytes (about 28.6 MB) |
| Tasks in one bulk create | 100 |
| Task comment body | 10,000 characters |
Task externalRef and patientRef | 100 characters each, in source:id form |
| Webhooks per organization | 10, counting disabled ones |
Transcripts and SOAP notes have no fixed size cap. A long recording produces a long transcript, so do not assume a small payload.
Audio Download
GET /api/labels/{labelId}/audio returns the whole file as a binary response (audio/wav or audio/mp4).
- HTTP
Rangerequests are not supported. Download the full file, then serve ranges from your own storage if your player needs seeking. - The response is the file itself, not a redirect or a signed URL.
- Long recordings can take several seconds to return. Use a client timeout of at least 60 seconds.
Webhook Delivery
| Behavior | Value |
|---|---|
| Response timeout | 10 seconds per attempt |
| Success | Any 2xx response. Everything else is a failure. Redirects are not followed: a 3xx response counts as a failed delivery, so register the final URL. |
| Attempts | 1 delivery plus up to 5 retries, with growing delays. The last retry lands between about 7 and 17 minutes after the first attempt. |
| Auto-disable | After 10 consecutive failed attempts. Retries count, so an endpoint that is down for two events in a row is disabled. |
| Re-enable | POST /api/organizations/{orgId}/webhooks/{id}/enable. Events missed while disabled are not replayed. |
| Delivery log | The 50 most recent attempts per webhook |
| Endpoint URL | HTTPS only, on a public address |
Duplicates and replay
- The
X-NerveX-Deliveryheader carries the event ID (evt_...). It is the same on every retry of that event and on every webhook that receives it. Use it as your deduplication key. - The signature covers the raw request body, which includes the event timestamp. The timestamp is set once and is the same on every retry. NxVET enforces no replay window, so reject on your side: deduplicate on the event ID, and optionally refuse events older than 30 minutes (wider than the retry span) so stored event IDs can expire.
- Because missed events are not replayed, pair webhooks with a periodic reconciliation poll.
Rotating a secret without downtime
A webhook has one secret, shown once at creation. To rotate it: create a second webhook on the same URL, accept signatures from either secret, then delete the old webhook. During the overlap each event arrives twice with the same event ID, which your deduplication already handles.
Idempotency on Writes
The API does not read an Idempotency-Key header. Use these instead:
| Operation | How to make it safe to retry |
|---|---|
| Create a task | Set externalRef (for example yourpims:task:8841). It is unique per board. A second create with the same value returns 409, and you can look the task up with ?externalRef=...&includeArchived=true (uniqueness includes archived tasks, and the list hides them by default). |
| Bulk create tasks | Send skipExisting: true. Items whose externalRef already exists are skipped and listed in skippedExternalRefs. |
| Add a task comment | Not idempotent. Every call adds a comment, so record that you posted before retrying. |
| Create a conversation | Not idempotent. Every call creates a new conversation. |
| Update a task, assign a patient | Safe to repeat: the same request gives the same end state. |
Identifiers
deviceIdin conversation routes and webhook payloads is the device serial, for examplenxhub-B7FA7D4B1D8D28CForextero-1A2B3C4D5E6F. It is not a UUID.GET /api/devicesreturns bothid(UUID) andserial; useserialwherever a route asks fordeviceId.- Labels carry
id,patientId,conversationId,deviceSerialand, when recognized,clinician.userId. All are stable. - Conversations carry
conversationId,deviceIdandnxvetLabelId. - Tasks carry
externalRef(your ID for the task) andpatientRef(your ID for the patient, for exampleyourpims:patient:123). - PIMS patient, appointment and visit IDs are not returned on labels or conversations in the stable API. Keep the mapping on your side, keyed by the NxVET
patientIdand labelid.
API Key Scope
- A key is bound to one organization and acts with the permissions of the user who created it.
- Keys can carry an expiry date and can be revoked at any time. An expired or revoked key gets
401. - Managing webhooks requires a key created by an organization owner.
- Keys restricted to specific features (for example read-only conversations) are issued by NxVET on request: support@nx.vet.
GET /api/auth/melists a key'sallowedFeatures.
Error Bodies
Error bodies are not uniform: 401 returns JSON ({"error": "..."}), while most 400, 404, 409 and 429 responses return a plain-text message. Branch on the status code, not on the body.
Whiteboard Events
whiteboard_updated and whiteboard_due are notification events. Whiteboard read and write endpoints are not part of the stable API yet. If your integration needs them, contact support@nx.vet.