| sidebar_position |
|---|
9 |
| Code | Name | Description |
|---|---|---|
-32700 |
Parse error | Invalid JSON in the request body |
-32601 |
Method not found | Unknown JSON-RPC method |
-32602 |
Invalid params | Missing or invalid parameters |
-32000 |
Unauthorized | Invalid or missing Bearer token |
{
"jsonrpc": "2.0",
"error": {
"code": -32700,
"message": "Parse error: invalid JSON"
},
"id": null
}{
"jsonrpc": "2.0",
"error": {
"code": -32000,
"message": "Unauthorized: invalid or missing Bearer token. Get your token at https://www.wazion.com/dashboard → Settings."
},
"id": 1
}{
"jsonrpc": "2.0",
"error": {
"code": -32601,
"message": "Method not found: tools/invalid"
},
"id": 1
}When a tool call fails, the response uses the standard MCP tool result format with isError: true:
{
"jsonrpc": "2.0",
"result": {
"content": [
{
"type": "text",
"text": "Error: phone is required"
}
],
"isError": true
},
"id": 1
}| Error Message | Cause | Solution |
|---|---|---|
tool 'xyz' no encontrado |
Tool name does not exist | Check tools/list for available tools |
phone is required |
Missing required phone parameter | Include phone in arguments |
No credits available |
Insufficient credits | Purchase credits from the dashboard |
Session not connected |
WhatsApp session is disconnected | Reconnect the session |
Shopify not connected |
E-commerce integration not configured | Connect your store (Shopify, WooCommerce, PrestaShop or VTEX) first |
Agent limit reached |
Maximum agents for your plan | Remove an agent or upgrade plan |
These errors are returned by the VPS direct API (wa.wazion.com):
| HTTP Status | Error | Description |
|---|---|---|
401 |
API key requerida |
No X-API-Key header provided |
401 |
API key invalida |
API key not found in database |
401 |
Session does not belong to your shop |
Cross-shop access attempt |
503 |
credits_api_unavailable |
Billing API unreachable, message blocked (fail-closed) |
503 |
credits_api_error |
Billing API returned error, message blocked (fail-closed) |
Some destructive actions return a warning on the first call:
{
"jsonrpc": "2.0",
"result": {
"content": [
{
"type": "text",
"text": "⚠️ CONFIRMACION REQUERIDA: Eliminar agente\nEsta accion no se puede deshacer\n\nPara ejecutar, llama de nuevo con confirm: true"
}
]
},
"id": 1
}To proceed, call the same tool again with "confirm": true in the arguments.
If a tool returns more than 50,000 characters, the response is truncated:
⚠️ [TRUNCADO] La respuesta original tenia 75,000 caracteres. Usa parametros de filtro (period, limit, days, etc.) para reducir los datos.
Solution: Use filtering parameters like limit, period, days, date_from, date_to to reduce the result set.
| Status | Meaning |
|---|---|
200 |
Success (check JSON-RPC response for errors) |
202 |
Notification acknowledged (no body) |
204 |
OPTIONS preflight response |
405 |
Method not allowed (use POST) |
- Ensure the
Authorizationheader is formatted asBearer YOUR_TOKEN(with a space) - Check that the token has not been regenerated from the dashboard
- The token is case-sensitive
- Some operations (AI analysis, smart follow-up) can take up to 5 minutes
- The server has a 300-second timeout
- If you get a timeout, the operation may still complete server-side
- You sent a notification (request without
idfield) - Add an
idfield to your request to get a response
- You made a GET request instead of POST
- The WAzion MCP server only supports the Streamable HTTP transport (POST)
- Send an array of JSON-RPC requests for batch processing
- Each request in the batch is processed independently
- Notifications in a batch do not generate responses