> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vsyble.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors and recovery

REST failures return an HTTP status and a JSON error envelope:

```json theme={null}
{
  "error": {
    "code": "invalid_request",
    "message": "Check the requested fields and try again.",
    "request_id": "11111111-1111-4111-8111-111111111111",
    "retry_after_seconds": 0
  }
}
```

This is an illustrative envelope. `request_id` and `retry_after_seconds` are optional. Use `code` for program logic and keep any request ID for support. A retry delay of zero is not permission to poll continuously.

## Choose the next action

| Status or condition | What to do |
| - | - |
| `400` invalid request | Correct the named field. Check the method-specific contract and REST versus MCP field names. |
| `401` unauthorized | Check or replace the API key, or reconnect OAuth. |
| `403` forbidden | Check scopes, current workspace membership, plan eligibility, and workspace controls. |
| `404` search or run unavailable | Use an ID returned to the same authorized credential or workspace. Do not substitute another user's reference. |
| `409` conflict | Read the current saved state and revision. Review the change before issuing a new command. |
| `413` request too large | Reduce the payload within the operation's item and byte limits. Preserve existing batch receipts. |
| `429` request throttling | Wait for the reported delay and retry within a bounded policy. |
| Allowance or spend cap reached | Review usage with the workspace admin. Waiting a short interval may not restore allowance. |
| `500`, `502`, `503`, or `504` | Reads may be retried with bounded backoff. Inspect state before repeating a mutation with an uncertain outcome. |

The MCP client can also display a protocol or connection error before a tool executes. If authentication is required, finish the client sign-in flow rather than placing a token in tool arguments.

## Recover without duplicating work

| Work | Recovery |
| - | - |
| Search | A new search is new work and can consume allowance. Do not automatically repeat a costly search because the client stopped waiting. |
| Enrichment | Keep the same `request_id`, `result_numbers`, and selected `field`; repeat that selection to resume. |
| Company import | Retain `requestId` and the exact companies payload. Use a new UUID only for a different batch. |
| Saved reply draft | Retain the request UUID and exact message/body for an uncertain retry. Do not overwrite another draft. |
| Campaign work | Read `get_run`, the campaign, and the saved messages before starting another run. |
| Approval, activation, or scheduling | Read the saved state. Never blindly repeat an action that might have released mail. |

## Common actionable codes

* `insufficient_scope`: reconnect with the required permission or issue a correctly scoped key.
* `company_import_changed`: retry the original batch unchanged or use a new UUID for new companies.
* `campaign_review_required`: choose a campaign in human review mode.
* `run_unavailable`: check the run/campaign ID and current workspace.
* `reply_target_changed`: read the conversation again and select its latest incoming email.
* `draft_changed` or `scheduled_reply_changed`: open or reread the saved draft and current revision.
* `invalid_send_time`: choose a future time with an explicit timezone offset, at least one minute and within one year ahead.

[Troubleshooting](https://docs.vsyble.com/troubleshooting.md) · [Contact support](https://docs.vsyble.com/support.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.