Skip to main content
POST
manage social accounts

Authorizations

Authorization
string
header
required

An API key (es_live_…) from Settings, under API keys, or an OAuth access token.

Headers

Idempotency-Key
string

Retry a paid dispatch safely: the same key returns the job already dispatched instead of charging again.

x-workspace-id
string

The workspace this one call acts in, when it is not the default: for a key or a connected agent, one of the workspaces the user allowed it.

Body

application/json
action
enum<string>
required
Available options:
list,
connect,
reconnect,
disconnect,
add_ad_pack,
buy_replies,
save_measure,
delete_measure
measure
object

save_measure: a number of the workspace's own on its social accounts.

measure_id
string

delete_measure: the number to drop.

platform
enum<string>

connect: the platform or ad platform to connect.

Available options:
instagram,
tiktok,
youtube,
twitter,
linkedin,
facebook,
threads,
pinterest,
metaads,
tiktokads,
linkedinads,
googleads,
pinterestads,
xads,
redditads,
openaiads
account_id
string

reconnect, disconnect: an id from list.

packs
integer

add_ad_pack, buy_replies: count.

Required range: 1 <= x <= 20
context
string

Optional: one sentence shown to the user beside this action.

Maximum string length: 600

Response

Done, or a job started for work that runs longer (follow it with get_jobs).

ok
any
required
data
object
required
meta
object
required
media
object[]