API limits, pages and errors
Requests a minute
Each key may make a set number of requests a minute (the reference says how many). An MCP request counts once against its key, or against the app and the person who connected it, whatever its tool calls inside. Past the limit the answer is 429 with a Retry-After header: wait that many seconds.
Every call is counted for your organisation, by REST and by MCP, and a key used from a network it hasn't been used from before is noted on Tooli's security log.
Pages
A list that comes in pages answers with rows and next. Pass next back as cursor, with the same filters, for the page after; on the last page next is null. limit says how many a page has, up to each list's own most. A cursor is only for the list and filters that made it.
Sending a change twice
Every POST carries an Idempotency-Key header: 16 to 64 letters, digits, - or _, new for each change. The first answer to a key is kept for 24 hours. The same request sent again with it gets the same answer, with Idempotent-Replayed: true, and changes nothing twice. The same key with a different request is refused (422); one sent while the first is still being answered is refused for the moment (409). A refused request keeps nothing, so you can correct it and send it again with the same key. A webhook's signing secret is in the first answer only.
Refusals
A refusal is JSON, with a code for the kind of refusal and a message a program can match:
{ "error": { "code": "forbidden", "message": "not_permitted", "details": { "area": "links", "action": "write" }, "requestId": "…" } }
401: no key, or one that isn't known or no longer works.403: the key wasn't given that area, or may only read it; the person's role may not; or the organisation is suspended or deleted.404: no such route or record. Another organisation's record is the same 404 as one that doesn't exist.400and422: a filter or a body it doesn't take;messagesays which.409: the change clashes with what is there (a slug that is taken).
The reference lists every code and message. Give the requestId when you ask us about one.
Times and places
Times are UTC, in ISO 8601. A place is a country (a two-letter code), a region and a city, never a point; it is null where a mail service's proxy hid where the reader was.