/api/commands returns a JSON envelope with two keys: success (boolean) and result (the command’s payload on success, the error on failure).
Errors
Whensuccess is false, result holds the error:
| Key | Description |
|---|---|
name | Stable error code, safe to switch on. |
message | Human-readable explanation. |
data | Error-specific context (e.g. the query, offending field, schema version). |
Transport errors
Returned without thesuccess/result envelope — the command never reached the dispatcher.
| HTTP | When | Body |
|---|---|---|
401 | Missing or invalid API token | Plain text Unauthorized |
429 | Rate limit exceeded (see Request limits) | Plain text |
500 | Unknown command name, malformed JSON body, or unexpected server error | {"name": "...", "message": "...", "data": ...} |