Limits

Rate limits, page sizes, webhook delivery behavior, idempotency and identifiers

Last updated: December 4, 2026

These limits may change. The values on this page describe current behavior. We may raise a limit at any time, and we will announce a reduction in advance on this page.

Rate Limits

Two limits apply to every request. Both are counted in one-second windows.

LimitValueCounted per
Requests per IP address100 per secondSource IP address
Requests per key owner40 per second, plus a short queue for burstsThe 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

EndpointPage sizeNotes
GET /api/organizations/{orgId}/labelslimit 1–100, default 100Offset paging. X-Total-Count header carries the total.
GET /api/nxhub/conversationspageSize 1–100, default 50Token paging with pageToken.
GET /api/task-boards/{boardId}/taskslimit up to 500, default 200Offset paging.
Task commentsNo pagingAll comments on the task are returned.
Voice-assistant turnslimit up to 100, default 20Newest first.
Conversation timelineUp to 6 hours per queryendMs - startMs must not exceed 6 hours.
Conversation preview and createUp to 90 minutes per range

Size Limits

ItemLimit
Request body30,000,000 bytes (about 28.6 MB)
Tasks in one bulk create100
Task comment body10,000 characters
Task externalRef and patientRef100 characters each, in source:id form
Webhooks per organization10, 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 Range requests 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

BehaviorValue
Response timeout10 seconds per attempt
SuccessAny 2xx response. Everything else is a failure. Redirects are not followed: a 3xx response counts as a failed delivery, so register the final URL.
Attempts1 delivery plus up to 5 retries, with growing delays. The last retry lands between about 7 and 17 minutes after the first attempt.
Auto-disableAfter 10 consecutive failed attempts. Retries count, so an endpoint that is down for two events in a row is disabled.
Re-enablePOST /api/organizations/{orgId}/webhooks/{id}/enable. Events missed while disabled are not replayed.
Delivery logThe 50 most recent attempts per webhook
Endpoint URLHTTPS only, on a public address

Duplicates and replay

  • The X-NerveX-Delivery header 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:

OperationHow to make it safe to retry
Create a taskSet 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 tasksSend skipExisting: true. Items whose externalRef already exists are skipped and listed in skippedExternalRefs.
Add a task commentNot idempotent. Every call adds a comment, so record that you posted before retrying.
Create a conversationNot idempotent. Every call creates a new conversation.
Update a task, assign a patientSafe to repeat: the same request gives the same end state.

Identifiers

  • deviceId in conversation routes and webhook payloads is the device serial, for example nxhub-B7FA7D4B1D8D28CF or extero-1A2B3C4D5E6F. It is not a UUID. GET /api/devices returns both id (UUID) and serial; use serial wherever a route asks for deviceId.
  • Labels carry id, patientId, conversationId, deviceSerial and, when recognized, clinician.userId. All are stable.
  • Conversations carry conversationId, deviceId and nxvetLabelId.
  • Tasks carry externalRef (your ID for the task) and patientRef (your ID for the patient, for example yourpims: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 patientId and label id.

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/me lists a key's allowedFeatures.

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.