2xx means success; a 4xx
means the request was rejected; a 5xx means something failed on our side.
Error response shape
Every error returns the same JSON body:error string is a human-readable description of what went wrong. Successful
responses do not include the success field — they return the resource directly.
Write endpoints add detail where it helps you fix the request. A rejected
PATCH lists every problem at once rather than the first:
orphanedSessions —
see Writing events.
Status codes
A
404 is returned for both missing and inaccessible resources by design.
Don’t treat it as proof that an id is invalid — only that it isn’t readable
with your key.Every 4xx on a write means nothing was written, so it is always safe to
correct the request and retry without first checking what partially landed.