Error format

An error has a code your software can test, and a message for people:

{
  "error": {
    "code": "ROUTE_NOT_FOUND",
    "message": "No route matched 'GET /DoesNotExist'. Closest route: GET, POST /NotActiveReasons.",
    "target": "/DoesNotExist",
    "timestamp": "2026-12-02T15:58:25+01:00",
    "type": "NotFoundException"
  }
}

Some errors have the same fields without the error wrapper. Read error.code, and else code.

Status codes

StatusMeaningRetry?
400The request is wrong: a query option, a value, a bodyNo: fix the request
401No token, or it expiredGet a new token, then once
403A scope or license is missing (AUTHORIZATION_REQUIREMENTS_NOT_FULFILLED), or a key field in a PATCHNo
404No such entity set, route or row (ROUTE_NOT_FOUND names the closest route)No
405The entity set doesn't have this operationNo
409Two saves of the same row at the same timeYes
412If-Match missing, or the row changed (see Writing data)After reading the row again
422The data doesn't pass Fledge's checksNo: fix the data
429Too many requestsYes, after waiting
500An error in the API, or a request the API doesn't support yet (see Known limitations)At most a few times
501The entity set can't be writtenNo
503The API is busy or being updatedYes, after waiting

An integration on v2-latest that suddenly gets 400, 404 or 500 errors after it worked for weeks may meet a renamed field or entity set of a new release. Check the reference, or move to the stable version (see Versions).

Rate limits

The API limits how fast you can call it:

LimitPerBurst
10 requests per second on averageIP address50
120 requests per minuteAccess token from an API key20

Over a limit, the API answers 429. Then wait: as long as the Retry-After header says, else start at one second and double the wait at each next 429. Don't send requests in parallel to get around the limit: send one request, wait for its answer, then send the next.

Every request also costs work in your company's Fledge database, which colleagues use at the same time. Good practice shows how to ask for less.

Wingman