DocumentationQuickstart
Quickstart
Find your workspace, add an account, then act through it.
Before you start
In the web app, open Developers and create an API key. Copy it at once: ViceVox shows it one time only. Set it in your shell.
For this page the key needs the scopes integrations_manage (add an account) and content_publish (post). With a list of action types, it also needs connect, live and post. See API keys.
The organization needs an active subscription or a trial. Else an action gets 402 subscription_required. See Plans and usage.
export VICEVOX_API_KEY="btk1_..."Find your workspace id
GET/v1/agency/workspaces
Each account, post and media file belongs to a workspace. This call lists the workspaces your key can reach. A new organization has one.
curl https://api.vicevox.com/v1/agency/workspaces \
-H "Authorization: Bearer $VICEVOX_API_KEY"[
{
"id": "0199a0b1-...",
"name": "Acme",
"slug": "acme",
"timezone": "Europe/Berlin",
"accounts_total": 0
}
]export WORKSPACE_ID="0199a0b1-..."Add an account
POST/v1/workspaces/{workspace_id}/accounts
Send connect.method: browser. The answer has a sign_in_url. Give it to the person who owns the account. They open it, sign in in a live browser and select Done. They need no ViceVox login, and their password and codes do not go through you.
curl https://api.vicevox.com/v1/workspaces/$WORKSPACE_ID/accounts \
-H "Authorization: Bearer $VICEVOX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: add-brand-main" \
-d '{
"platform": "x",
"label": "Brand main",
"connect": { "method": "browser" }
}'{
"account": {
"id": "0199a1b2-...",
"platform": "x",
"label": "Brand main",
"status": "connecting",
"has_credentials": false
},
"action": {
"id": "0199c3d4-...",
"type": "connect",
"status": "queued"
},
"sign_in_url": "https://vicevox.com/connect/bts_..."
}Save account.id as $ACCOUNT_ID. The link works for 30 minutes and opens only this account. Idempotency-Key makes a retry safe: the same key and body give the same account, and a new link while the sign-in is not finished. The request has no proxy, so the account's identity uses a location of the ViceVox network.
Read the account until status is active.
curl https://api.vicevox.com/v1/accounts/$ACCOUNT_ID \
-H "Authorization: Bearer $VICEVOX_API_KEY"Other ways to add an account: a password with a 2FA secret, so ViceVox answers 2FA codes itself, or exported cookies. See Connect methods and Sign-in links.
Run an action
POST/v1/accounts/{id}/actions
wait holds the request up to that many seconds (max 120). Idempotency-Key makes a retry safe.
curl https://api.vicevox.com/v1/accounts/$ACCOUNT_ID/actions \
-H "Authorization: Bearer $VICEVOX_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: launch-post-1" \
-d '{ "type": "post", "text": "Dark mode is live.", "wait": 60 }'{
"id": "0199e5f6-...",
"account_id": "0199a1b2-...",
"type": "post",
"status": "succeeded",
"params": { "text": "Dark mode is live." },
"result": { "type": "created", "url": "https://x.com/acme_demo/status/1", "id": "1" },
"error": null,
"challenge": null,
"requested_by": { "kind": "api_key", "id": "0199b8c9-...", "name": "Quickstart" },
"created_at": "2026-10-14T09:00:00Z",
"started_at": "2026-10-14T09:00:01Z",
"finished_at": "2026-10-14T09:00:09Z"
}Not finished inside wait: you get 202 and the same object. Poll GET /v1/actions/{id}?wait=30.
Answer a challenge
An action stops at needs_input when the platform asks for something only the owner knows. An example is an email code when ViceVox signs in again with a stored password.
{
"id": "0199c3d4-...",
"type": "connect",
"status": "needs_input",
"challenge": {
"kind": "email_code",
"message": "Enter the code the platform sent by email.",
"expires_at": "2026-10-14T09:10:00Z",
"sign_in_url": "https://vicevox.com/connect/bts_..."
}
}Send the owner sign_in_url, so the code stays with them. Or, when you have the code, answer it.
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" }'
curl "https://api.vicevox.com/v1/actions/$ACTION_ID?wait=30" \
-H "Authorization: Bearer $VICEVOX_API_KEY"Post with media
POST/v1/workspaces/{workspace_id}/media
Upload the file, then pass its id in media.
# Ask for an upload
curl https://api.vicevox.com/v1/workspaces/$WORKSPACE_ID/media \
-H "Authorization: Bearer $VICEVOX_API_KEY" \
-H "Content-Type: application/json" \
-d "{
\"filename\": \"launch.png\",
\"mime_type\": \"image/png\",
\"bytes\": $(wc -c < launch.png | tr -d ' '),
\"checksum_sha256\": \"$(shasum -a 256 launch.png | cut -d ' ' -f 1)\"
}"
# Send the file to upload_url, with every header in required_headers
curl -X PUT "$UPLOAD_URL" -H "Content-Type: image/png" --data-binary @launch.png
# Finish the upload
curl -X POST "https://api.vicevox.com$FINALIZE_URL" \
-H "Authorization: Bearer $VICEVOX_API_KEY"{
"outcome": "upload_required",
"asset": { "id": "0199f7a8-...", "mime_type": "image/png" },
"upload_url": "https://...",
"required_headers": { "...": "..." },
"finalize_url": "/v1/workspaces/0199.../media/0199f7a8-.../finalize"
}outcome: already_present means the workspace has this file. Use asset.id. Do not send the file or finish the upload.
curl https://api.vicevox.com/v1/accounts/$ACCOUNT_ID/actions \
-H "Authorization: Bearer $VICEVOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "type": "post", "text": "Launch day.", "media": ["0199f7a8-..."], "wait": 60 }'Next
- Accounts: connect methods, statuses, identities.
- Actions: every type and parameter.
- API keys: scopes and limits for an agent's key.
- MCP server: give the same accounts to your agent.