Limits and errors


Rate limits

Limit

Value

Requests per minute, per key

60 by default. Higher tiers (300 or 1,000 a minute) are set by Fr8Labs on request

Requests per minute, per company (all your keys together)

1,200

Requests in flight at the same time, per key

4

CRM search (GET /crm/search), per key

20 a minute, on top of the key's own limit

Requests per minute from one IP address, before the key is checked

600

  • Minutes are fixed windows.

  • GET /me shows your key's own limit in rateLimitPerMin.

  • The per-IP limit matters if many systems reach the API through one shared address. It counts every request from that address, whatever the key.

When you hit a limit

You get 429 Too Many Requests with the error code RATE_LIMITED and a Retry-After header: the number of seconds to wait. The message says which limit you hit.

What to do:

  1. Wait for the Retry-After seconds, then retry.

  2. For writes, retry with the same Idempotency-Key. See Writes: send, or preview first.

  3. Spread your calls out. Run at most 4 requests in parallel per key.

  4. If you regularly need more, ask Fr8Labs for a higher tier.


Requests

  • JSON only. Send bodies as application/json. Other content types are refused with 415. Form bodies are never read.

  • Body size: at most 256 KB (413 above that).

  • Strict fields. An unknown query parameter or body field is refused with 400 VALIDATION_FAILED, and details names it. Check the spelling against the live reference.

  • No company or tenant ids. Never send company_id or tenant_id (or companyId, tenantId, in any spelling). The key decides the company. See Authentication and keys.

  • Dates in query parameters are calendar dates: YYYY-MM-DD.

  • Request id. Every response carries an X-Request-Id header (req_ followed by 16 hex characters). Log it. Quote it when you contact support.


Paging through lists

Lists are paged in a few different ways, depending on the module. Each list in the live reference shows its own parameters.

Lists

Ask for

If you leave limit out

The answer tells you

CRM (leads, deals, organizations, contacts, attachments)

limit (1 to 50) and start (how many to skip)

20

page.limit, page.start, and page.more: true when a further page may exist. Ask again with start = start + limit

Tasks (GET /tasks)

limit (1 to 100) and offset (how many to skip)

50

total: how many tasks match in all

Quotations (GET /quotations)

limit (1 to 50)

10

page.limit and page.returned. There is no next page: narrow the filters (dates, customer, status, ports) to see others

Partners, charge codes (GET /partners, GET /charge-codes)

limit (1 to 100)

50

The rows. Narrow with search to see others

Accounting: GL accounts, customers and suppliers, items, outstanding invoices

limit (up to 500)

200

truncated: true when there were more rows than you got. Narrow the filters (search, party, dates) to see the rest

Accounting: invoices to post

limit (up to 200)

100 for each of sales and purchase

truncated: true when there were more rows than you got

Accounting: cost centres, bank accounts, item tax templates

—

Every row is returned

The rows

Accounting: documents (GET /accounting/documents)

limit (up to 200)

50

total: how many documents match. Narrow the filters (state, dates, party) to see the rest

Accounting: assets (GET /accounting/assets)

limit (up to 1,000)

100

read.stopped: true when the list stopped at limit

Accounting: bank reconciliation

limit (up to 200) on the vouchers listed in needsALook; fromDate and toDate for the period (at most a year)

50

readThrough is set when the period held too many bank lines and was read only through that date

Vendor rate sheets, quotation templates

limit (1 to 100)

50

The rows. Quotation templates also return total


The error format

Every answer that is not a success (4xx or 5xx) has the same shape (the details text below is an example):

{
  "error": {
    "code": "VALIDATION_FAILED",
    "message": "The request is not valid. See details.",
    "requestId": "req_0123456789abcdef",
    "details": [
      { "path": "query.limit", "message": "Number must be less than or equal to 50" }
    ]
  }
}

Field

Meaning

code

A stable code from the table below. Build your error handling on code, not on message

message

A short explanation in plain English. It may change wording over time

requestId

The same value as the X-Request-Id header

details

More information, when there is any (otherwise an empty list)

What details holds:

  • VALIDATION_FAILED and TENANT_FIELD_FORBIDDEN: one item per problem, with path (where in the request) and message.

  • BLOCKED: the blocking findings, each with a code, a message, and sometimes a field and meta. These codes are specific to each write (for example CUSTOMER_NOT_FOUND, PERIOD_CLOSED, CHANGED_SINCE_DRY_RUN) and are listed per operation in the live reference.

  • WARNINGS_NOT_ACKNOWLEDGED: one item per warning you did not acknowledge, in full: code, message, and field / meta where the warning has them.

Some answers carry extra headers:

Header

When

Retry-After

On 429, on 503, and on 409 IN_PROGRESS: seconds to wait before retrying

Allow

On 405: the methods this path accepts

Idempotent-Replayed: true

On a write answer that was replayed from a stored answer


Error codes

HTTP

Code

What it means

What to do

400

VALIDATION_FAILED

The request is not valid: a missing, unknown or malformed field or parameter

Read details, fix the request

400

TENANT_FIELD_FORBIDDEN

The request carries a company or tenant id (company_id, tenant_id, …)

Remove it. The key decides the company. (company on accounting calls, your legal entity's name, is fine)

400

AUTH_IN_URL

A key or a credential-style parameter was found in the URL

Send the key only in the Authorization header. If a real key was in the URL, it has been revoked: create a new one

400

IDEMPOTENCY_KEY_INVALID

A write has no Idempotency-Key, or it is not 16 to 64 letters, digits or hyphens

Send a valid key, for example a UUID

401

AUTH_REQUIRED

No key, a malformed key, or a key that is not recognised

Send Authorization: Bearer fr8_live_<keyId>_<secret> with a current key

401

KEY_REVOKED

The key has been revoked

Create a new key in the API access tile

401

KEY_EXPIRED

The key's overlap after a rotation has ended

Use the replacement key

403

API_DISABLED

The API is switched off for your company

Contact Fr8Labs. Your keys are not revoked

403

API_USER_UNAVAILABLE

Your company's API user is not available

Contact Fr8Labs

403

SCOPE_DENIED

The key was not created with the scope this operation needs

Create a key with that scope

403

GRANT_REQUIRED

The key has the scope, but your company's API user does not hold that access now (for example, the module is off)

Ask your company administrator to turn the module back on or restore the access

403

CONSOLE_LIVE_READ_ONLY

A write was sent from the portal's "Try it" console on live

The console runs reads and dry runs only. Send writes from your own system with a key

403

SANDBOX_NOT_PROVISIONED

A test key was used, and the sandbox is not switched on for your company

Ask Fr8Labs to switch on the test environment, or use a live key with reads and dry runs

404

NOT_FOUND

No such endpoint, or no such record for your company

Check the path and the id. A record of another company is never visible

405

METHOD_NOT_ALLOWED

The path exists, but not with this method

Use a method from the Allow header

409

CONFLICT

The request conflicts with the record's current state

Read the record again and start over with a new dry run

409

DUPLICATE_BLOCKED

Reserved

Not returned today. A likely duplicate is reported by a named code instead: DUPLICATE_RECORD (a warning you can acknowledge), or DUPLICATE_MBL / DUPLICATE_VENDOR_INVOICE / DUPLICATE_EXTERNAL_INVOICE (which block the write, inside BLOCKED)

409

KEY_CAP_REACHED

Your company already holds the most active keys it may hold

Revoke a key you no longer use, or ask Fr8Labs to raise the limit

409

WARNINGS_NOT_ACKNOWLEDGED

The write raised warnings you did not acknowledge

Review the codes in details, then send them in acknowledgedWarnings

409

DRY_RUN_STALE

The write differs from its dry run

Send exactly the dry run's body, or run a new dry run

409

DRY_RUN_EXPIRED

The dry run is older than 15 minutes

Run the dry run again

409

DRY_RUN_USED

The dry run has already been used

Run a new dry run for a new change. To retry the same write, reuse its Idempotency-Key

409

IN_PROGRESS

A write with this Idempotency-Key is still running

Wait Retry-After seconds and retry with the same key

412

PRECONDITION_FAILED

The record changed since the version you sent in If-Match

Read the record again, run a new dry run, send the new version

413

PAYLOAD_TOO_LARGE

The body is larger than 256 KB

Send less per request

415

UNSUPPORTED_MEDIA_TYPE

The body is not application/json

Send JSON with Content-Type: application/json

422

BLOCKED

Something blocks the write. The findings are in details

Fix what details says, then run a new dry run

422

IDEMPOTENCY_KEY_REUSED

This Idempotency-Key was used for a different request

Use a new key for a new change

422

UPSTREAM_REJECTED

The system of record refused the request

Read the message. Usually nothing changed: fix the inputs and start again with a new dry run and a new Idempotency-Key. If the message says the change was saved but not as intended, check the record first

428

DRY_RUN_REQUIRED

Reserved

Not returned today: every write accepts a request without a dry run

428

PRECONDITION_REQUIRED

This write changes an existing record and needs If-Match

Send the record's version in If-Match

429

RATE_LIMITED

Too many requests

Wait Retry-After seconds. See Rate limits

500

INTERNAL

Something went wrong on the Fr8Labs side

Retry later. If it persists, contact support with the requestId

502

UPSTREAM_CONTRACT_CHANGED

A system behind the API answered in an unexpected shape. Fr8Labs has been alerted

Retry later. Contact support with the requestId if it persists

503

UPSTREAM_UNAVAILABLE

A system this request depends on is unavailable

Wait Retry-After seconds and retry. For a write, use the same Idempotency-Key

503

ACTING_IDENTITY_UNAVAILABLE

Your company's API user cannot act in the freight system right now

Retry later. If it persists, contact Fr8Labs

403

APPROVAL_REQUIRED

Reserved

Not returned today

409

PROPOSAL_EXPIRED

Reserved

Not returned today

409

PROPOSAL_USED

Reserved

Not returned today

A write can also answer 202 Accepted with { "status": "OUTCOME_UNKNOWN", "checkUrl": "…" }. That is not an error: the change was sent and its result is not known yet. Do not send it again. See When the outcome is unknown.


Handling errors well

  1. Branch on code, not on the HTTP status alone and never on message.

  2. Retry only what is safe to retry: 429, 503, 409 IN_PROGRESS, and network errors. Wait the Retry-After seconds. Reuse the same Idempotency-Key for writes.

  3. Do not retry 400, 401, 403, 404, 412, 422 or 428 unchanged. They will fail the same way.

  4. Log the requestId with every error.


Documentation owner: Fr8Labs Customer Success. Text reviewed: 18 October 2026.