Skip to main content

Limits and error codes

Write limits​

Writes (creations, updates and deletions) are counted per account, across all of its keys and access tokens.

AccountLimit
Account validated by OpenAgenda3000 writes per minute
Account not validated yet10 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:

LimitValue
Calls1000 calls per minute
Volume read500 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.

ParameterEffectExample
includeFields, ifReturns 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
removedWith null, includes the events removed since the last run.removed=null
monolingualReturns a single language.monolingual=fr

Request size​

  • An application/json request body is limited to 100 KB. Beyond that, the API answers 400 with the message request 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.

CodeMeaningResponse body
400Invalid data or unreadable request bodyerrors: the list of fields in error (see below), or message
401Invalid secret key when requesting a token, or missing authenticationmessage
403Missing, invalid or expired access token, unknown key, or insufficient rights on the agendaerror or message
404Agenda, event, location or route not founderror or message
409Operation in conflict with the current state, for example removing the last administrator of an agendamessage
429Write limit or read limit reachedmessage, with the Retry-After header
500Server-side errormessage. 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 concerned
  • code: the error code, stable, to use in your processing
  • message: 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.