Skip to main content

The error body

Every error has the same shape:
New codes can be added within v2. Handle one you don’t know by its HTTP status.
errors.ts

Request errors

Not found

threadNotFound, messageNotFound, contactNotFound, accountLinkNotFound, memberNotFound, tagNotFound, statusNotFound: all 404. The ID doesn’t exist in your team, or the object was deleted. A lookup by platform identity never returns 404. It returns an empty data array.

Conflicts

The platform said no

The platform failed

After sendUnconfirmed, never retry with a new idempotency key: the person may receive the message twice.

What to retry

Sends are only safe to retry with an Idempotency-Key.