Narro docs
Loading…
Every response has the same outer shape, and every error has a stable code you can switch on. Messages are plain English for people; do not parse them.
Success:
{
"ok": true,
"requestId": "req_example",
"data": { "...": "the route payload" },
"meta": { "rateLimit": { "limit": 120, "remaining": 87, "reset": 23 } }
}Error:
{
"ok": false,
"requestId": "req_example",
"error": {
"code": "insufficient_scope",
"message": "This credential is missing a scope this call needs.",
"details": { "required": ["network:paths.read"] }
}
}meta, retryAfter and details appear only when they have something to say. A refusal you can fix yourself carries the way out in details: nextStep (a label and a Partner Hub link) and, for a payment, options. Quote requestId when you contact support.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://thenarro.com/schemas/partner/api/envelope.json",
"title": "Success envelope (v2)",
"description": "Every partner REST response with envelope v2 (?envelope=v2 or Accept-Version: 2026-10-12). data holds the route payload described by that route's response schema.",
"type": "object",
"additionalProperties": false,
"required": [
"ok",
"requestId",
"data"
],
"properties": {
"ok": {
"const": true
},
"requestId": {
"type": "string",
"description": "Echo this when you contact support."
},
"data": {
"description": "The route payload."
},
"meta": {
"type": "object",
"description": "Optional paging and rate limit details.",
"properties": {
"nextCursor": {
"type": [
"string",
"null"
],
"description": "Pass as ?cursor= for the next page."
}
}
}
}
}{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://thenarro.com/schemas/partner/api/error.json",
"title": "Error envelope (v2)",
"description": "Every partner REST error with envelope v2.",
"type": "object",
"additionalProperties": false,
"required": [
"ok",
"requestId",
"error"
],
"properties": {
"ok": {
"const": false
},
"requestId": {
"type": "string"
},
"error": {
"type": "object",
"additionalProperties": false,
"required": [
"code",
"message"
],
"properties": {
"code": {
"type": "string",
"description": "Stable machine code.",
"enum": [
"unauthorized",
"invalid_token",
"revoked",
"insufficient_scope",
"consent_required",
"plan_required",
"coverage_required",
"billing_required",
"rate_limited",
"quota_exceeded",
"spend_cap_reached",
"partner_paused",
"not_found",
"validation_failed",
"conflict",
"not_supported",
"unavailable"
]
},
"message": {
"type": "string",
"description": "Plain English. Do not parse it."
},
"retryAfter": {
"type": "integer",
"minimum": 0,
"description": "Seconds to wait. Present on 429 and some 503."
},
"details": {
"type": "object",
"description": "Extra context, for example the scopes to ask for or the fields that failed validation."
}
}
}
}
}The Events API routes always answer in envelope v2. Every other route keeps its v1 shape so existing clients do not break: /me, /companies and the tabs, capabilities, entitlement, consents, intake, outcomes, webhooks and business fields. To get envelope v2 from them, send either:
curl "https://api.thenarro.com/data/v1/companies?envelope=v2" \
-H "Authorization: Bearer narro_pk_test_EXAMPLEKEY0000000000000000"
curl https://api.thenarro.com/data/v1/companies \
-H "Authorization: Bearer narro_pk_test_EXAMPLEKEY0000000000000000" \
-H "Accept-Version: 2026-10-12"We recommend sending the header on every call. A response in envelope v2 carries Narro-Envelope: v2.
Without the opt in, a v1 route returns its payload at the top level, and errors are flat:
{ "ok": false, "error": "insufficient_scope", "message": "This credential is missing a scope this call needs.", "requestId": "req_example" }{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://thenarro.com/schemas/partner/api/error.v1.json",
"title": "Error (v1, legacy)",
"description": "The flat error the v1 read routes return without envelope v2. Kept for existing clients.",
"type": "object",
"additionalProperties": false,
"required": [
"ok",
"error",
"message"
],
"properties": {
"ok": {
"const": false
},
"error": {
"type": "string",
"description": "Error code. v1 also uses CONFLICT and SIGNATURE_INVALID."
},
"message": {
"type": "string"
},
"requestId": {
"type": "string"
},
"retryAfter": {
"type": "integer",
"minimum": 0
}
}
}| HTTP | error.code | Meaning |
|---|---|---|
| 401 | unauthorized | No credential was sent, or it is not a Narro credential. |
| 401 | invalid_token | The key or access token is malformed, unknown or expired. |
| 401 | revoked | The key or token was revoked. Revocation takes effect within 30 seconds. |
| 403 | insufficient_scope | The credential lacks a scope this call needs. details names the scopes to ask for. |
| 403 | consent_required | The user has not granted this purpose for this company, or revoked it. |
| 403 | plan_required | The caller has no entitled plan for this connection or capability. |
| 402 | coverage_required | Live use needs a plan or a funded balance. details carries nextStep (choose a plan, add a card and top up) and options. Test keys are never refused for this. |
| 402 | billing_required | Live calls are paused because the last payment did not go through. Update the payment method in the Partner Hub (Billing). Test keys keep working. |
| 429 | rate_limited | Too many requests in the current window. Wait for Retry-After, in seconds. |
| 429 | quota_exceeded | The daily request or intake record allowance for your org or key is used up. |
| 402 | spend_cap_reached | Your org reached the monthly spend cap it set. Raise it in the Partner Hub. |
| 403 | partner_paused | Your org or this key is paused. The Partner Hub says why. |
| 404 | not_found | Anything outside the grant. Narro does not say whether it exists. |
| 400 | validation_failed | The request does not match the schema. details lists the fields. |
| 409 | conflict | Same idempotency id, different payload. |
| 501 | not_supported | The route, version or option is not supported for this credential type. |
| 503 | unavailable | This surface is switched off or briefly unavailable. Discovery still answers. |
Older routes can still send these spellings in the v1 shape:
| HTTP | error | Meaning |
|---|---|---|
| 409 | CONFLICT | v1 spelling of conflict. |
| 401 | SIGNATURE_INVALID | v1 only: the Narro-Signature on an outcome is missing, stale or wrong. |
| 403 | forbidden | v1 only: a general refusal. v2 uses a specific code instead. |
Every response carries a X-Narro-Request-Id header, and every error body carries the same value as requestId. Log it with each failed call. When you contact Narro support, give the request id and your partner number (for example N1234567, shown in the Partner Hub), and the public id of the key (for example key_live_7F3K-9Q2M-X). Never send a key secret or a signing secret.
rate_limited after Retry-After, and unavailable with backoff (it carries Retry-After too when Narro knows how long).coverage_required and billing_required, take the step in nextStep (see Pricing and tiers).The Data API does not read an idempotency header. A retry is made safe by the ids you send in the body, so a write that is sent twice is counted once:
batchId. Resend the same batch with the same batchId.sourceId and its kind. Resend it unchanged. See Outcome write-back.batchId.409 conflict: a new operation needs a new id.Data API lists are returned whole, inside fixed caps, with no cursor: the companies a credential may read, its webhooks, and up to 500 consents (filter them with status). The Events API takes limit, up to 500. Use webhooks to learn what changed instead of reading lists again.