What is this?
Every response — success or failure — uses the same envelope, so your code can handle results the same way for every endpoint.What can I do here?
- Recognize a successful response
- Read the error shape and status codes
- Diagnose the most common failures
How to use it
Success
pagination and total alongside data.
Failure
Status codes
Individual endpoints may document extra status codes, such as
404 for a resource that isn’t found. Check the endpoint’s own page.
Troubleshooting / Technical Notes
400with a message naming a parameter. That parameter is required or invalid. Check the request body on the endpoint page.401right after generating a key. Make sure you copied the whole key and sent it in a header. See Authentication.403on a Workspace endpoint. ThechannelIdyou passed isn’t owned by the key’s account. Use List channels to find valid IDs.- “No channel found for this user.” Pass a
channelId, or create a channel first.