Skip to main content
When a FusionDesk API request cannot be completed successfully, the API returns a structured error response alongside an appropriate HTTP status code. Understanding these codes and the shape of error payloads helps you build integrations that handle failures gracefully, surface meaningful messages to end users, and diagnose issues quickly.

Error response structure

Every error response contains a top-level error object and a meta object. The data field is absent on error responses.
string
required
A stable, machine-readable string that identifies the error type. Use this field in your error-handling logic — the message field is for humans and may change across releases.
string
required
A human-readable description of the error. Suitable for logging and, in some cases, surfacing to end users.
object | null
Optional structured data providing additional context about the error, such as which field failed validation and what value was provided. May be null when no additional context is available.
string
required
A unique identifier for the request. Include this value when contacting FusionDesk support — it allows the support team to locate the exact request in the system logs.

HTTP status codes

The API uses standard HTTP status codes to indicate the outcome of every request.

Error codes

In addition to HTTP status codes, the error.code field provides a stable string you can match in your code.

Handling 429 rate limit errors

When your integration exceeds 1,000 requests per minute, the API responds with HTTP 429 and a Retry-After header. The value of Retry-After is an integer representing the number of seconds to wait before retrying.
Always implement exponential backoff with jitter for retry logic rather than retrying at a fixed interval. The example below shows a simple retry wrapper in JavaScript:
To reduce the likelihood of hitting rate limits, consider caching frequently read resources, batching write operations where the API supports it, and spreading scheduled jobs across time rather than triggering them simultaneously.
Whenever you contact FusionDesk support about an unexpected API error, include the meta.request_id value from the error response. This identifier lets the support team retrieve the exact server-side logs for your request, which dramatically speeds up diagnosis and resolution.