Skip to main content

Dokeos API: what to do when you get a 429 (Too Many Requests) error?

API 429 Too Many Requests error: space out calls, retry, contact support; where to find the Swagger documentation.

Written by Badr Fawzi

The HTTP 429 (Too Many Requests) error means your application sent too many requests to the Dokeos API in a short period: the API limits the number of calls and temporarily rejects the following ones.

What to do when you get a 429 error

  1. Space out the calls: slow down the rate of requests (for example by adding a short pause between two calls in an import or synchronization script).

  2. Retry after waiting: wait about a minute before retrying, rather than resending the request immediately.

  3. Reduce the number of calls: group operations, avoid re-reading the same data and limit the number of simultaneous runs that use the same token.

  4. Contact support if the error persists: give the portal concerned, the approximate time of the errors and the tool calling the API (connector, script). Never share your secret token in writing.

Where can I find the API documentation?

Log in with the Administrator role, open Paramètres et configuration (Settings and configuration) then API. The page shows the PORTAL, the PORTAL_SECRET_TOKEN (with the Régénérer (Regenerate) button), the Swagger link to the technical API documentation and the portal's BASE URL.

Frequently asked questions

What does the 429 error mean?
The application exceeded the number of calls allowed in a short period. The following calls are temporarily rejected.

My connector occasionally fails with a 429 error: is it a bug?
Not necessarily: it means the call limit was reached. Reduce the call rate; if the error persists, contact support.

Can the call limit be increased?
In some cases, support can review the limit applied to your portal. Contact them describing your API usage (call volume, tool used).

Where is the technical API documentation?
In Paramètres et configuration, API, via the "Lien vers la documentation technique de l'API" link (Swagger).

Did this answer your question?