Skip to main content
Melso Agents is available only internally or by private invitation. Agents-specific features require existing access. For the autónomo fiscal service, see Get started.
Most REST failures return a JSON object with error. Some add code and contextual fields.
The example shows a company-key scope error. Use status and code to handle the error category; the English message supplies diagnostic context.

Company key scope

403 workspace_key_scope is deliberately shared by a key targeting another company, a route outside the key allowlist, and a route requiring admin scope when the key has tasks scope. The code identifies the credential boundary, not a unique cause. The scope tables and the company attached to the key tell you what to check. Messages can distinguish these cases for a person; clients should not branch on their exact wording or retry an unchanged forbidden request.

A saved definition may not be active

Company definition edits can be saved but fail to apply immediately. A 409 can describe this state. Keep any returned operation or commit identifier and inspect the resource before trying to save the same change again. Idempotency covers supported retry keys.

OAuth and MCP

OAuth errors use error and error_description. For MCP JSON-RPC and tool-result failures, follow MCP results, including how to inspect errors inside an HTTP success response.

Task and scope codes

A funding conflict can return 409 with the literal message requested execution funding is unavailable, without a dedicated code. Inspect the execution identity’s permitted funding and capacity. Clients must allow errors with no code and avoid depending on English message text.