DocumentationActions
Actions
One endpoint for everything an account can do. type names the action.
Request
POST/v1/accounts/{id}/actions
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": "Hello", "media": ["0199f7a8-..."], "wait": 60 }'- type
- The action. See the reference below.
- wait
- Seconds to hold the request, max 120. Omit it to get
202at once. - Idempotency-Key
- Header. A retry with the same key does not run the action twice.
- other fields
- The action's parameters, at the top level.
Action object
200 when it finished inside wait, else 202. Same object.
{
"id": "0199e5f6-...",
"account_id": "0199a1b2-...",
"type": "post",
"status": "succeeded",
"params": { "text": "Hello", "media": ["0199f7a8-..."] },
"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": "Support agent" },
"created_at": "2026-10-14T09:00:00Z",
"started_at": "2026-10-14T09:00:01Z",
"finished_at": "2026-10-14T09:00:09Z"
}status: queued, running, needs_input, succeeded, failed, canceled. Meanings, error and challenge: Errors and challenges.
requested_by is the API key or the person that asked for the action. It is null when that key or person was deleted, and for an automatic sign-in.
Results
result.type says the shape. Fields the page does not show are null.
| Type | Fields | From |
|---|---|---|
created | url, id | post, reply, quote, send_message |
done | changed: false when the account was already in that state | Other writes |
posts | items: posts | read_feed, read_reels, search with kind: posts |
post | item, replies | read_post |
users | items: people | list_followers, list_following, search with kind: people |
profile | profile | read_profile |
conversations | items: conversations | list_conversations |
messages | items: messages | read_conversation |
notifications | items: notifications | read_notifications |
browser | steps: one entry per step | browser |
Stable ids
People keep their handle and name as the page shows them, and get the platform's own account id, which stays the same after a rename. Name the person by id:{user_id} in a later action. The id is null when the page does not give it. X has it.
| Item | Field |
|---|---|
| Users and profiles | user_id |
| Posts | author_id |
| Notifications | actor_id |
Usage
Every action uses the usage of the plan.
| Kind | Uses usage |
|---|---|
Write, browser | When it starts running. An action that ends failed or canceled gives it back, except with outcome_unknown. |
Read, check | When it succeeds. |
connect | When each sign-in attempt starts. It is not given back. |
When usage is used up, a new action gets 402 usage_limit, and a queued action that has not started fails with usage_limit. See Plans and usage.
Publish
post
Publish a new post, with media, a title, a link, a destination or a thread. Write.
- text
- The text.
- media[]
- Array of media ids from the media upload.
- title
- A title, where the platform has one. On Mastodon: the content warning.
- link
- A link, such as a Pin link or a Reddit link post.
- destination
- Where to post when not on the account itself: a subreddit, board, Page, group or channel.
- visibility
- A visibility word the platform knows, such as
public,followersorunlisted. - thread[]
- Array of texts that continue the post as a thread, in order.
- tags[]
- made_for_kids
- flair
reply
Reply to a post, by its URL. Write.
- target
- The post URL.
- text
- The text.
- media[]
- Array of media ids from the media upload.
quote
Share a post with your own text above it. Write.
- target
- The post URL.
- text
- The text.
- media[]
- Array of media ids from the media upload.
delete_post
Delete one of the account's own posts. Write.
- target
- The post URL.
Engage
repost
Repost a post as it is. Write.
- target
- The post URL.
unrepost
Remove a repost. Write.
- target
- The post URL.
like
Like a post. Write.
- target
- The post URL.
unlike
Remove a like. Write.
- target
- The post URL.
bookmark
Save a post to the account's bookmarks. Write.
- target
- The post URL.
unbookmark
Remove a saved post. Write.
- target
- The post URL.
People
follow
Follow a person, by handle, profile URL or id:{user_id} where the platform takes one. Write.
- user
- A handle, a profile URL, or
id:{user_id}on X, Bluesky, YouTube, LinkedIn and Hacker News: the account id, which still names the person after a rename.
unfollow
Stop following a person. Write.
- user
- A handle, a profile URL, or
id:{user_id}on X, Bluesky, YouTube, LinkedIn and Hacker News: the account id, which still names the person after a rename.
block
Block a person. Write.
- user
- A handle, a profile URL, or
id:{user_id}on X, Bluesky, YouTube, LinkedIn and Hacker News: the account id, which still names the person after a rename.
unblock
Remove a block. Write.
- user
- A handle, a profile URL, or
id:{user_id}on X, Bluesky, YouTube, LinkedIn and Hacker News: the account id, which still names the person after a rename.
mute
Mute a person. Write.
- user
- A handle, a profile URL, or
id:{user_id}on X, Bluesky, YouTube, LinkedIn and Hacker News: the account id, which still names the person after a rename.
unmute
Remove a mute. Write.
- user
- A handle, a profile URL, or
id:{user_id}on X, Bluesky, YouTube, LinkedIn and Hacker News: the account id, which still names the person after a rename.
report
Report a person or a post to the platform, with a reason. Done only when the platform confirms. Write.
- user
- The person to report. Give
userortarget, not both. - target
- The post to report, by its URL.
- reason
- Why. See Report reasons below.
Messages
send_message
Send a direct message to a handle, a profile or an open conversation. Write.
- to
- A handle, a profile URL, or a conversation URL or id.
- text
- The text.
- media[]
- Array of media ids from the media upload.
list_conversations
Read the inbox: the latest conversations, newest first. Read.
- limit
- How many items. Default 20, max 100.
read_conversation
Read the messages in one conversation. Read.
- conversation
- A conversation URL, id or handle.
- limit
- How many items. Default 20, max 100.
Read
read_feed
Read the home feed the platform picks, or only the accounts the account follows. Read.
- feed
for_you(default) orfollowing. See Feeds below.- limit
- How many items. Default 20, max 100.
read_notifications
Read the latest notifications. Read.
- limit
- How many items. Default 20, max 100.
read_post
Read one post and its replies. Read.
- target
- The post URL.
- replies
- How many replies to read. Default 20.
read_profile
Read a profile and its latest posts. Without user, the account itself. Read.
- user
- A handle, a profile URL or
id:{user_id}. Default: the account itself. - limit
- How many items. Default 20, max 100.
read_reels
Read the reels stream the platform picks, or one person's reels with their plays. Read.
- user
- A handle or a profile URL: that person's reels, with their plays in
views. Default: the stream the platform picks. - limit
- How many items. Default 20, max 100.
list_followers
List the people who follow a profile. Read.
- user
- A handle, a profile URL or
id:{user_id}. Default: the account itself. - limit
- How many items. Default 20, max 100.
list_following
List the people a profile follows. Read.
- user
- A handle, a profile URL or
id:{user_id}. Default: the account itself. - limit
- How many items. Default 20, max 100.
search
Search posts or people. Read.
- query
- The search text.
- kind
postsorpeople.- limit
- How many items. Default 20, max 100.
Profile
update_profile
Change the display name, bio, website, location, pronouns, avatar or banner, where the platform has them. Write.
- display_name
- New display name.
- bio
- New bio.
- website
- New website.
- location
- New location.
- pronouns
- avatar
- A media id.
- banner
- A media id.
Browser
browser
Run your own steps in the signed-in browser, for anything without a named action. Browser.
- steps[]
- The steps to run. See Browser steps below.
Feeds
read_feed takes feed. A platform without the feed answers 422 unsupported with the feeds it has.
- for_you
- The home feed the platform picks. The default.
- following
- Only the posts of the accounts the account follows, newest first. X, Instagram, Bluesky, Mastodon, YouTube, Reddit, Twitch, GitHub and DEV Community.
Profile fields
update_profile changes only what the platform has. The account lists it as profile_fields. Another field answers 422 unsupported with the fields it has.
Reels
read_reels is on Instagram and Twitch; on Twitch it reads a channel's clips. On Instagram a post of one video is a reel, and post returns its /reel/ URL. A reel URL works as target of like, unlike, bookmark, unbookmark, repost, unrepost, reply, read_post and delete_post.
Report reasons
report walks the platform's own report flow and is done when the platform confirms. When X asks who is affected, the report says everyone on X. When no choice fits a question, nothing is sent: the action fails with ui_changed and the message lists the choices.
| reason | X's choice |
|---|---|
spam | Spam |
abuse | Abuse & Harassment |
hate | Hate |
violent_speech | Violent Speech |
impersonation | Impersonation |
privacy | Privacy |
child_safety | Child Safety |
self_harm | Suicide or self-harm |
sensitive_media | Sensitive or disturbing media |
other | X's own "something else" choice, where the flow shows one |
Browser steps
type: "browser" runs your steps in the account's signed-in browser. Use it for anything without a named action.
{ "type": "browser", "wait": 90, "steps": [
{ "op": "goto", "url": "https://x.com/settings" },
{ "op": "perceive" },
{ "op": "click", "node": "f1:42" },
{ "op": "click", "locator": { "role": "button", "name": "Save" } },
{ "op": "type", "text": "hello", "locator": { "role": "textbox" } },
{ "op": "press", "key": "enter" },
{ "op": "scroll", "dy": 800 },
{ "op": "wait", "ms": 1500 },
{ "op": "extract", "container": { "role": "article" },
"fields": [ { "key": "text", "locator": {}, "source": { "kind": "text" } } ] },
{ "op": "screenshot" }
] }| op | Fields | Does |
|---|---|---|
goto | url | Open a page. |
perceive | Read the page. Returns a perception with node ids, such as f1:42. | |
click | node or locator | Click a node from perceive, or the element a locator finds. |
type | text, locator | Type into a field. |
press | key | Press a key, such as enter. |
scroll | dy | Scroll by pixels. |
wait | ms | Wait. |
extract | container, fields | Read each matching container into named fields. |
screenshot | Returns an image_url. |
{
"type": "browser",
"steps": [
{ "op": "perceive", "ok": true, "perception": { "...": "..." } },
{ "op": "screenshot", "ok": true, "image_url": "https://..." }
]
}The session stays warm for 2 minutes after a run, so the next call starts at once.
History and control
| Route | Does |
|---|---|
GET /v1/actions/{id}?wait=30 | One action. Waits up to wait seconds while it is queued or running. |
GET /v1/accounts/{id}/actions | Account history, newest first: { actions, next_cursor }. Query: limit, cursor, status, type, since, until. since and until are RFC 3339 times on created_at: since is included, until is not. |
GET /v1/workspaces/{ws}/actions | Workspace history. The same query, plus account_id and api_key_id (the actions one key asked for). |
POST /v1/actions/{id}/answer | { "answer": "123456" } for a needs_input action. |
POST /v1/actions/{id}/cancel | Cancel a queued or needs_input action. |
POST /v1/workspaces/{ws}/actions | One action on many accounts. See Batch. |
Batch
POST/v1/workspaces/{ws}/actions
The same action on 1 to 100 accounts of one workspace, all or nothing. Each account gets its own action.
curl https://api.vicevox.com/v1/workspaces/$WORKSPACE_ID/actions \
-H "Authorization: Bearer $VICEVOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"account_ids": ["0199a1b2-...", "0199b2c3-..."],
"type": "like",
"target": "https://x.com/acme_demo/status/1"
}'{ "actions": [
{ "id": "0199d1e2-...", "account_id": "0199a1b2-...", "type": "like", "status": "queued" },
{ "id": "0199d3e4-...", "account_id": "0199b2c3-...", "type": "like", "status": "queued" }
] }