Part: For developers · Chapter 41 of 41
Errors and limits
One shape, everywhere:
This chapter describes screens only an administrator can open. Read it to know what happens there, even if those screens are not visible to you.
The shape of an error
{ "error": "meeting_not_found", "message": "No such meeting in this organization." }
error is a stable code to branch on. It does not change and is not translated.
message is a sentence for whoever reads the log, and its wording may change.
So never compare the message text. A program that branches on an English sentence breaks the day we fix a comma in it.
The codes
401 unauthorized |
The key is missing, unknown, or revoked. One answer for all three, deliberately: telling them apart tells somebody probing us which of their guesses was closer |
403 read_only_key |
A read key tried to write. 403, not 401: your key is perfectly valid, and a 401 would send you to re-check a credential that is fine |
403 not_permitted |
Your organization has forbidden this action without a person — see What Mudawin does by itself |
404 …_not_found |
It does not exist, or it is not yours. The same answer to both |
400 …_required |
Something is missing, and the code names it |
409 … |
The state forbids it: a bot is already there, or the organization has no active member |
429 rate_limited |
Over the limit. Comes with Retry-After, in seconds |
The limit
300 requests a minute, per key.
Generous on purpose: it exists to stop a runaway loop, not to price the API or to make you think about batching. If you hit it doing ordinary work, you have found a bug in the number rather than in your integration — tell us.
Why a limit at all? An API is an invitation to write a loop, and somebody eventually writes one without a sleep in it — usually by accident, usually on the day they are integrating and everything is new. Without a ceiling that loop is indistinguishable from a denial of service, and the people who suffer it are the customers who did nothing wrong.
Retry-After tells you how long to wait. A client refused without a number retries immediately,
which is the behaviour the limit exists to prevent.
Paging
Lists are paged: limit up to 100 (25 by default) and offset.
GET /api/v1/meetings?limit=100&offset=100
total in the response is the count before paging.
The ceiling on
limitis deliberate:?limit=1000000is one request that reads the whole table and makes the database every other customer's problem.
Things you do not have to worry about
A key sees only its own organization. There is no organization parameter anywhere in this API — not hidden, absent. Every query begins from the key's organization.
All times are UTC, ending in Z.
Fields are added, never removed. We may add a field to a response at any time, so ignore what you do not recognise. Removing a field or changing its meaning is a breaking change and gets a new version number in the path.