Limits and error codes
Write limits
Writes (creations, updates and deletions) are counted per account, across all of its keys and access tokens.
| Account | Limit |
|---|---|
| Account validated by OpenAgenda | 3000 writes per minute |
| Account not validated yet | 10 writes per minute and 100 writes per hour |
An account that has just created its first secret key is not validated yet. To have your account validated or a limit raised, write to support@openagenda.com describing your use and the volume you expect.
A write beyond the limit is not processed. The API answers with code 429 and a Retry-After header giving the number of seconds to wait before retrying:
HTTP/1.1 429 Too Many Requests
Retry-After: 43
{
"message": "too many writes: an account OpenAgenda has not validated writes at most 10 times a minute and 100 times an hour; contact support@openagenda.com to raise the limit"
}
A refused request is not counted: waiting for the given delay is enough to resume.
Read limits
Reads are counted per account, across all of its keys and access tokens, and are subject to two limits:
| Limit | Value |
|---|---|
| Calls | 1000 calls per minute |
| Volume read | 500 MB per day |
The volume read is the cumulative size of the responses to your event listings and searches. A response of 300 full events weighs far more than a response of 10 identifiers: that weight is what is counted, not the number of events. As a guide, a full event weighs about 6 KB, which is in the order of 80,000 full events per day.
An account that goes beyond one of these limits may have its requests refused with code 429.
If your use requires more, write to support@openagenda.com describing your use and the volume you expect.
Reducing the volume read
Four parameters reduce the volume of a synchronisation. They are detailed in reading events.
| Parameter | Effect | Example |
|---|---|---|
includeFields, if | Returns only the listed fields. Use it in place of detailed=1 as soon as you go to production. | if[]=uid&if[]=title |
updatedAt[gte] | Returns only the events modified since a date. | updatedAt[gte]=2026-12-01T06:00:00Z |
removed | With null, includes the events removed since the last run. | removed=null |
monolingual | Returns a single language. | monolingual=fr |
Request size
- An
application/jsonrequest body is limited to 100 KB. Beyond that, the API answers400with the messagerequest body is too large. - Image constraints are detailed in the event structure.
Access token lifetime
An access token is valid for one hour. See Authentication.
Error codes
Error responses are in JSON.
| Code | Meaning | Response body |
|---|---|---|
400 | Invalid data or unreadable request body | errors: the list of fields in error (see below), or message |
401 | Invalid secret key when requesting a token, or missing authentication | message |
403 | Missing, invalid or expired access token, unknown key, or insufficient rights on the agenda | error or message |
404 | Agenda, event, location or route not found | error or message |
409 | Operation in conflict with the current state, for example removing the last administrator of an agenda | message |
429 | Write limit or read limit reached | message, with the Retry-After header |
500 | Server-side error | message. If the error persists, write to support@openagenda.com |
Validation errors
When an event or a location is refused on creation or update, the 400 response details each field in error:
{
"errors": [
{
"field": "title",
"code": "required",
"message": "a string is required",
"lang": "fr",
"step": "validation"
}
]
}
field: the field concernedcode: the error code, stable, to use in your processingmessage: an explanation in English, meant for the developer
Expired token
A write made with an expired token receives a 403 code:
{
"error": "access token is expired"
}
Simply request a new token and replay the request.