Verified, not promisedEvery URL is pre-checked, sent through official channels and checked after 1, 3, 7 and 14 daysHow Verification Works
Errors and rate limits

Errors and rate limits

How errors are reported, what each status code means, and how to stay within your plan's request limits.

By LinkForg Team · Last updated


Error format#

json
{
  "message": "Not enough credits",
  "code": "INSUFFICIENT_CREDITS"
}

Some errors add a details object. Validation errors also include an issues list with the field path and message.

Status codes#

StatusCodeMeaning
400BAD_REQUESTThe request is malformed or a field is invalid.
401UNAUTHORIZEDThe API key is missing, invalid or revoked.
402INSUFFICIENT_CREDITSNot enough credits for this request.
402PLAN_REQUIREDYour plan doesn't include this feature.
403FORBIDDENYou don't have access to this project.
404NOT_FOUNDThe resource does not exist.
412KEY_MISSINGThe feature needs a provider key in Integrations.
429RATE_LIMITEDToo many requests. Slow down and retry.
502PROVIDER_ERRORAn upstream data provider failed. Safe to retry later.
500INTERNALSomething failed on our side. Safe to retry.

Rate limits#

PlanRequests per minute, per key
Free30
Starter60
Professional120
Agency Max600
Response headers
RateLimit-Policystring
The limit and window that apply to your key.
RateLimitstring
Requests remaining and seconds until the window resets.

Retrying safely#

Retry 429 and 5xx responses with exponential backoff. Submitting the same URL to a project twice is safe: the second time it is reported as a duplicate and not charged.

javascript
async function request(url, options, attempt = 0) {
  const res = await fetch(url, options);

  if ((res.status === 429 || res.status >= 500) && attempt < 4) {
    await new Promise((resolve) => setTimeout(resolve, 2 ** attempt * 1000));
    return request(url, options, attempt + 1);
  }

  return res;
}
Was this page helpful?