Skip to main content
POST
manage ads

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:
ad_accounts,
allowance,
save_measure,
delete_measure,
fields,
health,
live,
activity,
alerts,
dismiss_alert,
instagram_identities,
tiktok_identities,
apps,
ios14_limits,
dsa_defaults,
dsa_recommendations,
campaigns,
campaign,
ad_sets,
ad_set,
list,
ad,
review,
ad_preview,
ad_media,
schedule,
bidding,
create,
boost,
create_message_ad,
create_call_ad,
create_campaign,
create_ad_set,
preview,
update_campaign,
update_ad_set,
update_ad,
set_schedule,
campaign_status,
ad_set_status,
ad_status,
duplicate_campaign,
duplicate_ad_set,
duplicate_ad,
delete_campaign,
delete_ad_set,
end,
creatives,
creative,
create_creative,
rename_creative,
delete_creative,
images,
upload_image,
videos,
video,
upload_video,
delete_video,
boostable_posts,
partnership_content,
partnership_permissions,
set_partnership_permission,
comments,
reply_comment,
hide_comment,
delete_comment,
value_rule_sets,
value_rule_set,
create_value_rule_set,
replace_value_rule_set,
delete_value_rule_set,
budget_increases,
schedule_budget_increase,
catalogs,
catalog,
create_catalog,
delete_catalog,
products,
product,
add_product,
update_product,
delete_product,
batch_products,
product_batch,
feeds,
create_feed,
feed_uploads,
fetch_feed,
product_sets,
create_product_set,
update_product_set,
delete_product_set
account_id
string

An ad account connection from manage_social_accounts list, for each action that reaches an ad account.

ad_account_id
string

An ad account on that connection, from manage_ads ad_accounts.

id
string

What the action is about: the campaign, ad set, ad, audience, creative, form or other thing, by its id.

sub_id
string

A second id where a thing is inside another: a comment on an ad, a product in a catalog.

fields
object

The action's values, by the names the fields action lists.

of
string

fields: the action to describe. Left out, every action with a line on what it does.

field
string

fields: read inside one field, by its path, such as targeting or placements.

match
string

fields: only fields whose name or text has these letters.

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[]