DocumentationErrors and challenges
Errors and challenges
What an action can end with, and what to do next.
Action statuses
- queued
- Waiting to start.
- running
- Running in the account's browser.
- needs_input
- A challenge waits for an answer. See
challenge. - succeeded
- Done. See
result. - failed
- Stopped. See
error. - canceled
- Canceled before it finished.
Error object
A failed action still answers 200 or 202. Read status and error.
{
"status": "failed",
"error": { "code": "rate_limited", "message": "..." }
}Error codes
| Code | Meaning | Do |
|---|---|---|
signed_out | The account is signed out and no stored credentials could sign it in again. | Connect again, or send the owner a sign-in link. |
login_failed | The platform refused the username, password or code. | Fix credentials with PATCH /v1/accounts/{id}, then connect again. |
account_blocked | The platform shows a checkpoint or a suspension on the account. | Open a sign-in link and clear the checkpoint in the live browser. |
rate_limited | The platform asked the account to slow down. Try again later. | Space out actions on this account. |
not_found | The post, person or conversation does not exist or is not visible to the account. | Check the URL, handle or id. |
unsupported | This platform has no such action. | Use browser steps, or send feedback. |
invalid_input | A parameter is missing or has the wrong shape. | Check the parameters in the action reference. |
rejected | The platform refused the action, for example a duplicate post. | Read message, change the request, retry. |
ui_changed | The page did not look the way the driver expects. We are told and fix it. | Retry later. |
challenge_timeout | A sign-in challenge was not answered before it expired. | Run the action again and answer in time. |
browser_unavailable | No browser could be started. It used no usage; try again. | Retry with the same Idempotency-Key. |
browser_error | The browser failed while running the action. | Retry. If it repeats, send feedback. |
subscription_required | The organization had no active subscription when the action started. Subscribe in Billing. | Tell the person: they subscribe in the web app at /app/billing. |
usage_limit | The usage of this period was used up when the action started. Upgrade in Billing, or wait for the reset. | Wait for resets_at of GET /v1/usage, or tell the person to upgrade at /app/billing. |
outcome_unknown | The write may have taken effect. Check the account before you try again. The usage stays. | Read the account (read_profile, read_feed) before you try again. |
Challenges
A sign-in step ViceVox cannot finish alone stops the action at needs_input. Answer before expires_at, or the action fails with challenge_timeout.
{
"status": "needs_input",
"challenge": {
"kind": "two_factor_code",
"message": "Enter the code from your authenticator app.",
"expires_at": "2026-10-14T09:10:00Z",
"sign_in_url": "https://vicevox.com/connect/bts_..."
}
}| Kind | Meaning | Answer with |
|---|---|---|
two_factor_code | A code from an authenticator app. | API or MCP. With a stored totp_secret, ViceVox answers it itself. |
email_code | A code the platform sent by email. | API or MCP. |
sms_code | A code the platform sent by text message. | API or MCP. |
device_approval | Approve the sign-in on another device. | Approve on the other device, or use the live browser. |
captcha | A puzzle the platform shows to a new sign-in. | Live browser. |
passcode | A passcode only the owner knows, such as the X Chat passcode. The account stays signed in. | API, MCP or live browser. |
other | Anything else the page asks for. The message says what. | Read message. API, MCP or live browser. |
Three ways to answer
| API | POST /v1/actions/{id}/answer with { "answer": "..." }. |
|---|---|
| MCP | The tool result carries the challenge. Pass the answer back through the server. |
| Live browser | Open sign_in_url. It works for 30 minutes, without a ViceVox login. |
POST/v1/actions/{id}/answer
curl -X POST https://api.vicevox.com/v1/actions/$ACTION_ID/answer \
-H "Authorization: Bearer $VICEVOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "answer": "123456" }'Request errors
A request that fails creates no action and uses no usage.
| HTTP | Meaning |
|---|---|
| 400 | The request is malformed, such as bad JSON. |
| 401 | The API key is missing or not valid. |
| 402 | Subscription status, usage or the plan does not allow the request. See Payment errors. |
| 403 | The key may not act on this workspace or account. action_not_allowed: the key's list of action types does not name this type. |
| 404 | No such account, action or workspace for this key. |
| 409 | The request conflicts with the current state. subscription_exists: a checkout while the status is trialing, active or past_due. |
| 410 | link_expired: the sign-in link no longer works. |
| 422 | A field has the wrong value or shape. channel_ceiling: the organization has 400 accounts, the most it can hold. |
| 429 | Too many requests. Wait for Retry-After seconds, then retry. |
The limits of a key: API keys. Request limits and headers: Rate limits.
Payment errors
A 402 is application/problem+json with one of these codes. upgrade is the URL of /app/billing: send a person there. An agent cannot pay. Do not retry a 402.
| Code | Meaning | Members |
|---|---|---|
subscription_required | Subscription status is none or canceled. | upgrade |
usage_limit | The usage of the plan for the period is used up. | resets_at, upgrade |
key_usage_limit | The API key's dailyUsagePercent is used up for today. | limit_percent, used_percent (today, queued actions included), resets_at (00:00 UTC) |
plan_limit | A create past a limit of the plan. | limit (accounts, identities, members or workspaces), max, upgrade |
plan_feature | The plan does not have the feature. | feature (approvals or client_access), upgrade |
over_plan_limit | The organization holds more than its plan allows, after a downgrade. | limit, max, upgrade |
Before ViceVox queues an action, it checks, in this order: subscription_required, over_plan_limit, usage_limit, key_usage_limit. The first that applies refuses the action, and nothing is queued. See Plans and usage.