Skip to main content
POST
manage ad tracking

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:
fields,
pixels,
tags,
set_tags,
lead_forms,
lead_form,
create_lead_form,
archive_lead_form,
form_leads,
test_lead,
delete_test_lead,
leads,
lead_counts,
set_lead_status,
match_quality,
send_conversions,
adjust_conversions,
conversion_actions,
create_conversion_action,
update_conversion_action,
conversion_goals,
set_conversion_goals,
campaign_conversion_goals,
set_campaign_conversion_goals,
custom_goals,
create_custom_goal,
update_custom_goal,
delete_custom_goal,
destinations,
destination,
create_destination,
update_destination,
delete_destination,
destination_campaigns,
add_destination_campaigns,
remove_destination_campaigns,
destination_metrics,
custom_conversions,
create_custom_conversion
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[]