Skip to main content

Customer API Errors

Funnel Customer APIs use standard HTTP status codes to indicate whether a request succeeded or failed. Some errors include a structured JSON response body with additional details you can use for debugging and user-friendly handling.

How to interpret responses

HTTP status codes are grouped into ranges that describe the category of the response:

  • 2xx: The request succeeded.
  • 4xx: The request failed due to client-side input or permissions.
  • 5xx: The request failed due to a server-side error.

Error response format

Funnel's Customer API does not use a single error envelope. Depending on the endpoint, you will receive one of the shapes below. Always branch on the HTTP status code first, then inspect the body defensively. Not every error includes a JSON body, and no shape is guaranteed across all endpoints.

ShapeWhen you'll see it
{ "errors": { <field>: [<message>, …] } }Form or schema validation failures on most endpoints.
{ "error_type": "<Type>", "errors": {…} }Structured validation or business-rule errors.
{ "error_type": "<Type>", "message": "<text>" }Not-found or state errors without field-level detail.
Plain-text or empty bodySome endpoints return a non-JSON (or zero-length) body on certain error responses, for example a 404 on a single-resource lookup.

Examples:

Example error response shapes
errors object, no error_type
{
  "errors": {
    "client": {
      "people": ["Missing data for required field."]
    }
  }
}

HTTP status codes

The Funnel Customer APIs may return the following HTTP status codes:

CodeStatusWhat it means
200OKThe request succeeded.
201CreatedThe request succeeded and created a new resource (for example, a prospect).
400Bad RequestThe request is invalid, often due to missing or malformed parameters.
401UnauthorizedAuthentication failed (missing or invalid API key).
403ForbiddenThe API key is valid, but it isn't permitted to access this resource or configuration.
404Not FoundThe requested resource doesn't exist, or the endpoint path is incorrect.
405Method Not AllowedThe HTTP method isn't supported on this endpoint (for example, GET on an endpoint that only accepts DELETE). The body is an empty JSON string.
422Unprocessable EntityThe request body wasn't valid JSON, or was missing the top-level object Funnel expects (for example, a client key). Unlike other error responses, the body here is plain text: either Invalid Json or No Data Sent, not JSON.
429Too Many RequestsRequest volume is too high. Reduce frequency and retry with backoff. Honor Retry-After if provided.
5xxServer ErrorsAn internal error occurred on Funnel's side. Retry with backoff for transient failures.

Retry strategy and resilience

Production integrations should treat failures differently depending on the error class. The guidance below helps prevent retry storms and improves end-user experience.

  • Do not automatically retry most 4xx errors: Fix the request (parameters, permissions, endpoint path) before retrying.
  • Retry 429 with backoff: Slow down and respect any server guidance (such as Retry-After).
  • Retry transient 5xx errors: Use exponential backoff with jitter and a maximum retry cap.
  • Set timeouts: Always use reasonable connect and read timeouts to prevent hung workers.
  • Log with context: Include endpoint, method, status code, and any returned error_type or message to speed up debugging.

Getting help

If you contact support about an error, include enough detail for us to reproduce or investigate quickly.

  • Customer account name (or the organization the key is issued to)
  • Endpoint URL and HTTP method
  • Timestamp and timezone
  • HTTP status code and any error response body (remove secrets)
  • Whether the issue is intermittent or consistently reproducible