Skip to content
Narro
Narro AI
Pricing
Log inContact sales
Contact sales
Documentation
How it worksSupport

Get started

OverviewWorkspaceHow Narro works

Moxie

Moxie

The record

Company record

Prepare

Prepare

Fundraise

Fundraise
Add-ons

Network

Narro Network

Bring data in

IntegrationsGoogle DriveGmail

Share Narro out

Connect
MCP
PlatformsPermissionsCustom apps

Account

AccountBillingTeamMemory

Reference

SecurityFAQ

Developers

Which API do I need?
Data API
Getting started for partnersAuthentication and keysRate limitsEnvelope and errorsSandbox dataEndpointsWebhooksEvents APIOutcome write-backIntakeMCP for Claude and CursorJSON SchemasPricing and tiers
Programs API
Getting startedCompany profile and readinessAsk NarroAuthenticationKeysKey scopingRate limitsErrors and retriesSandboxEndpointsWebhooksEventsOutcomesIntake and documentsMCPJSON SchemasObjects and error codesWidgetsVersioningGo livePricing and billingData protection

Narro docs

Loading…

Docs/Developers/Data API/Envelope and errors

Envelope and errors

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.

Envelope v2

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.

Success schema: /schemas/partner/api/envelope.json
{
  "$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."
        }
      }
    }
  }
}
Error schema: /schemas/partner/api/error.json
{
  "$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."
        }
      }
    }
  }
}

Opting in

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.

v1 responses

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" }
v1 error schema: /schemas/partner/api/error.v1.json
{
  "$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
    }
  }
}

Error catalogue

HTTPerror.codeMeaning
401unauthorizedNo credential was sent, or it is not a Narro credential.
401invalid_tokenThe key or access token is malformed, unknown or expired.
401revokedThe key or token was revoked. Revocation takes effect within 30 seconds.
403insufficient_scopeThe credential lacks a scope this call needs. details names the scopes to ask for.
403consent_requiredThe user has not granted this purpose for this company, or revoked it.
403plan_requiredThe caller has no entitled plan for this connection or capability.
402coverage_requiredLive 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.
402billing_requiredLive calls are paused because the last payment did not go through. Update the payment method in the Partner Hub (Billing). Test keys keep working.
429rate_limitedToo many requests in the current window. Wait for Retry-After, in seconds.
429quota_exceededThe daily request or intake record allowance for your org or key is used up.
402spend_cap_reachedYour org reached the monthly spend cap it set. Raise it in the Partner Hub.
403partner_pausedYour org or this key is paused. The Partner Hub says why.
404not_foundAnything outside the grant. Narro does not say whether it exists.
400validation_failedThe request does not match the schema. details lists the fields.
409conflictSame idempotency id, different payload.
501not_supportedThe route, version or option is not supported for this credential type.
503unavailableThis surface is switched off or briefly unavailable. Discovery still answers.

v1 error codes

Older routes can still send these spellings in the v1 shape:

HTTPerrorMeaning
409CONFLICTv1 spelling of conflict.
401SIGNATURE_INVALIDv1 only: the Narro-Signature on an outcome is missing, stale or wrong.
403forbiddenv1 only: a general refusal. v2 uses a specific code instead.

Request ids

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.

What to retry

  • Retry rate_limited after Retry-After, and unavailable with backoff (it carries Retry-After too when Narro knows how long).
  • Retry network errors and 5xx with exponential backoff and jitter, a cap and a limit on attempts.
  • Do not retry other 4xx errors. Fix the request, the key or its scopes first. For coverage_required and billing_required, take the step in nextStep (see Pricing and tiers).
  • Use timeouts: about 5 seconds to connect and 30 seconds for the whole request.

Retrying writes safely

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:

  • An intake batch is known by its batchId. Resend the same batch with the same batchId.
  • An outcome is known by your sourceId and its kind. Resend it unchanged. See Outcome write-back.
  • An attendee import is known by its batchId.
  • The same id with a different payload is refused with 409 conflict: a new operation needs a new id.

Lists and pagination

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.

PreviousRate limitsNextSandbox data

Home · Sign in

On this page

Envelope v2Opting inv1 responsesError cataloguev1 error codesRequest idsWhat to retryRetrying writes safelyLists and pagination