approve_conversion | Performance ads. Approves a conversion that is on hold before its hold ends, which releases its payout to the promoter. It cannot be undone. |
archive_addestructive | Ends an ad for good (Banner, Native, Paid Visits). What it has not spent returns to the balance. It cannot be started again. |
buy_ad_credit | Buys prepaid ad credit at a fixed price: amount_usd in USDC, 1 USDC = $1.00 of credit (for example 1, 5, 10, 25, 50, 100). The first call returns isError with the x402 PaymentRequired object; call again with the signed payment. Without an API key the paid result carries api_key: the key of a new account whose balance is the credit, shown once. With an API key the credit is added to that account. Orders placed with the key are then paid from the balance, with no further payment. |
create_account | Creates an anonymous account with a zero balance and returns its API key, shown once. Only needed to upload an image before paying for anything (a Paid Visits ad needs an image or a video); otherwise use buy_ad_credit or create_ad, which create the account with the first payment. A video cannot be uploaded to an account made this way until it has been funded: for a video, start with buy_ad_credit. |
create_ad | Places an ad order. With an API key whose balance covers the price, it is paid from the balance. Otherwise the result is isError with the x402 PaymentRequired object for the exact price: sign it and call this tool again with the same order and the payment (in _meta["x402/payment"], or as payment_signature). Without an API key the paid result carries api_key, the key of the new account that owns the ad: store it, it is shown once. The ad goes to review; poll get_ad. (The ad of an account the network has marked as trusted is active in this answer.) |
create_event_credential | Performance ads. Creates the credential your server signs its conversion events with, and returns credential.key_id (bpk_...), signing_secret_hex and postback_token. They are shown once: store them. The first step of a Performance ad. |
create_sandbox_click | Performance ads. Mints a test click (click_id, tclk_...) and a draft_key, to prove the integration before an order. Give destination_template (your https landing URL with {click_id}) for a new ad, or ad_id to test an existing one. Then send one signed test event for the click (send_sandbox_event), and order with the draft_key in product_options.draft_key. A verified test event counts for one ad. |
end_addestructive | Performance ads. Starts the wind-down of an ad: no new promoters, conversions already attributed are still paid, and what is not spent returns to the balance at the final settlement. It cannot be started again. |
get_adread-only | One ad of the account: status (in_review, active, paused, rejected, completed, archived), spend, what remains, and the reason if it was rejected. |
get_ad_statsread-only | Delivery of one ad: totals and a daily series (impressions, clicks, visits, spend). |
get_balanceread-only | The account's balance in USD: available, reserved by ads in review or live, and total. |
get_sandbox_verificationread-only | Performance ads. Whether a signed live test event has arrived for a draft_key (before the order) or for an ad: verified, when, by which transport, and the test events seen. |
get_service_inforead-only | What this service is, whether payments are available, and on which networks a payment can be made (USDC, x402), with the smallest and largest payment. |
get_videoread-only | One video of the account: whether it is still processing, in_review or ready (both can be ordered as video_id of a Paid Visits ad), or failed or rejected, with the reason. A video is uploaded over HTTP, not through a tool: POST the file to /api/v1/videos (see list_ad_formats, video of Paid Visits). |
list_ad_conversionsread-only | Performance ads. Conversions and daily revenue-share accruals of an ad, newest first: goal, payout, status (held, approved, paid, rejected) and when a hold ends. |
list_ad_eventsread-only | Performance ads. The events your server sent for an ad, newest first, each with what became of it: accepted, or dropped and why. |
list_ad_formatsread-only | The catalog: every ad format (PTC, Sponsored Listing, Banner, Native, Paid Visits, Performance) with its fields, limits, pricing models, minimum bids, minimum order, image, video and HTML5 banner rules and an example order with its price. Read this before building an order. |
list_adsread-only | The account's ads, newest first. |
list_event_credentialsread-only | Performance ads. The account's event-signing credentials: id, key_id, status and when each was last used. Never the secrets. |
pause_ad | Pauses an active ad (Banner, Native, Paid Visits). Its budget stays reserved. |
quote_adread-only | Validates an order and returns its exact price in USD with a breakdown. Creates nothing and costs nothing. An invalid order is answered with the code of the problem and the field it is in. |
reject_conversion | Performance ads. Rejects a conversion while it is on hold: nothing is paid for it and its amount returns to the ad's budget. reject_code is one of duplicate, fraud, bonus_abuse, chargeback, terms_violation, other; other needs a reject_note of 10 to 500 characters. |
resume_ad | Resumes a paused ad: it serves again, within what is left of its budget. |
revoke_event_credentialdestructive | Performance ads. Revokes a credential at once: events signed with it are refused from then on. It cannot be undone. |
rotate_event_credential | Performance ads. Replaces the secret and the postback token of a credential and returns the new ones, shown once. The old ones keep working for grace_hours (24 unless given, 0 to 168). |
send_sandbox_event | Performance ads. With key_id and signing_secret_hex (or postback_token) of your credential, signs a test event for a sandbox click and sends it to the live event endpoint: verified true in the answer means the order will be accepted. Without credentials it only simulates the event against goals and verifies nothing. Costs nothing either way. |
top_up_ad | Performance ads. Adds reward budget to an ad; the platform fee is added on top. Paid from the balance, or the result is isError with the x402 PaymentRequired object: sign it and call again with the same arguments, the returned idempotency_key and the payment. |
update_ad | Performance ads. Changes an ad: changes takes the fields of an order that are to change (name, landing_url, ad_title, ad_description, targeting, product_options). An edit that changes what promoters are paid for goes to review again; the answer says so in edit.requires_review. |
upload_image | Stores an image for a Paid Visits ad (it needs an image or a video) or a Banner ad (optional; PNG, JPEG or GIF of exactly one banner size, see list_ad_formats) and returns its id, to send as image_id in the order. Needs an API key. A video for a Paid Visits ad is uploaded over HTTP instead: POST the file to /api/v1/videos, then follow it with get_video. |