Run your affiliate program, products, revenue, leads and paid ads from your AI assistant.
Maintain this server? Claim it
This server signs you in with OAuth, which the playground doesn't support yet. Install it in your MCP client to try it.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http affiliateo https://affiliateo.com/api/mcp
Showing the first 150 of 227, by name. Connect in the playground above to browse them all.
Add one screenshot or preview video to a section of an app with a mobile rail, from a public https url that is fetched once: an image (JPEG, PNG, WebP or GIF, up to 10 MB) or a video (MP4 or MOV, H.264, up to 50 MB, one per section, stored as MP4). It goes to the end of the section; 409 when the section is full. Requires the business OWNER’s read_write key.
| Argument | Type | Description |
|---|---|---|
| app* | string |
| App UUID or app slug, from the apps array in list_businesses |
| url* | string | Public https URL of the image or video |
| section* | string | Which store and device, or onboarding |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app",
"section",
"url"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"url": {
"type": "string",
"description": "Public https URL of the image or video"
},
"section": {
"enum": [
"app_ios_mobile",
"app_ios_tablet",
"app_android_mobile",
"app_android_tablet",
"onboarding"
],
"type": "string",
"description": "Which store and device, or onboarding"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}APPLE ADS ONLY. Adds targeting keywords to one ad group: POST …/ads/keywords. The usual use is promoting a search term that converts (get_ad_stats by_level.searchterm, source AUTO = Search Match found it) into a keyword of its own, usually EXACT, in the named ad group. keywords: [{ text, matchType EXACT|BROAD, bidCents? }]; no bidCents inherits the ad group's default bid. New keywords are PAUSED unless status is ACTIVE, so nothing spends until one is turned on. text, match type and ad group cannot be changed later (delete and add again). Requires a read_write key. BILLING: adding keywords counts as managing that campaign through Affiliateo, which starts the 1% ads platform fee on its spend from that day. An account still inside its 7-day partner-link fee trial pays no platform fee at all, here or on any other surface, so there may be nothing to warn about yet.
| Argument | Type | Description |
|---|---|---|
| status | string | Default PAUSED |
| account | string | Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account. |
| keywords* | array | |
| ad_group_id* | string | The ad group the keywords go in |
| campaign_id* | string | The campaign of the ad group |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"campaign_id",
"ad_group_id",
"keywords"
],
"properties": {
"status": {
"enum": [
"ACTIVE",
"PAUSED"
],
"type": "string",
"description": "Default PAUSED"
},
"account": {
"type": "string",
"description": "Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account."
},
"keywords": {
"type": "array",
"items": {
"type": "object",
"required": [
"text",
"matchType"
],
"properties": {
"text": {
"type": "string"
},
"bidCents": {
"type": "integer",
"description": "Bid in cents of the org's currency; omit to inherit"
},
"matchType": {
"enum": [
"EXACT",
"BROAD"
],
"type": "string"
}
}
}
},
"ad_group_id": {
"type": "string",
"description": "The ad group the keywords go in"
},
"campaign_id": {
"type": "string",
"description": "The campaign of the ad group"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Add a chapter at the end of a course: title. Requires the business OWNER’s read_write key with the Content area.
| Argument | Type | Description |
|---|---|---|
| title* | string | |
| course_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"course_id",
"title"
],
"properties": {
"title": {
"type": "string"
},
"course_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Add a file to the Files app from an upload: upload_key (from create_upload), name (up to 200 characters), allow_downloads (default false), instance. Up to 50 MB and 50 files a copy; blocked types are refused. Requires the business OWNER’s read_write key with the Content area.
| Argument | Type | Description |
|---|---|---|
| name* | string | |
| instance | integer | |
| upload_key* | string | |
| business_slug* | string | Business slug, from list_businesses |
| allow_downloads | boolean |
{
"type": "object",
"required": [
"business_slug",
"upload_key",
"name"
],
"properties": {
"name": {
"type": "string"
},
"instance": {
"type": "integer"
},
"upload_key": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"allow_downloads": {
"type": "boolean"
}
}
}Add a lesson at the end of a chapter: chapter_id, title, lesson_type (multimedia: text with a video and attachments, the default; pdf; quiz). Fill it in with update_lesson. Requires the business OWNER’s read_write key with the Content area.
| Argument | Type | Description |
|---|---|---|
| title* | string | |
| course_id* | string | |
| chapter_id* | string | |
| lesson_type | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"course_id",
"chapter_id",
"title"
],
"properties": {
"title": {
"type": "string"
},
"course_id": {
"type": "string"
},
"chapter_id": {
"type": "string"
},
"lesson_type": {
"enum": [
"multimedia",
"pdf",
"quiz"
],
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Store a picture for a lesson and return its URL for the lesson’s content (<img src="…">, set with update_lesson): upload_key (an image from create_upload) or image_url (a public PNG, JPEG, WebP or GIF), up to 25 MB. Requires the business OWNER’s read_write key with the Content area.
| Argument | Type | Description |
|---|---|---|
| course_id* | string | |
| image_url | string | |
| lesson_id* | string | |
| upload_key | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"course_id",
"lesson_id"
],
"properties": {
"course_id": {
"type": "string"
},
"image_url": {
"type": "string"
},
"lesson_id": {
"type": "string"
},
"upload_key": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Add a question to a quiz lesson: question_text, question_type (multiple_choice, true_false, select_multiple, short_answer), options [{ text, is_correct }] (up to 20; for short_answer the correct entry is the expected answer, matched without case), sort_order. Requires the business OWNER’s read_write key with the Content area.
| Argument | Type | Description |
|---|---|---|
| options | array | [{ text, is_correct }] |
| course_id* | string | |
| lesson_id* | string | |
| sort_order | integer | |
| business_slug* | string | Business slug, from list_businesses |
| question_text* | string | |
| question_type* | string |
{
"type": "object",
"required": [
"business_slug",
"course_id",
"lesson_id",
"question_text",
"question_type"
],
"properties": {
"options": {
"type": "array",
"items": {
"type": "object"
},
"description": "[{ text, is_correct }]"
},
"course_id": {
"type": "string"
},
"lesson_id": {
"type": "string"
},
"sort_order": {
"type": "integer"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"question_text": {
"type": "string"
},
"question_type": {
"enum": [
"multiple_choice",
"true_false",
"select_multiple",
"short_answer"
],
"type": "string"
}
}
}Add a copy of an App Store app to the business’s sidebar, as the dashboard’s App Store does. A further copy gets the next number ("Chat 2" at /chat-2); funnels, tracking, leads and revenue have one copy, and adding one back restores it as it was. live_chat is added once per app and needs app_id (GET /api/v1/businesses/{slug}/apps through call_api: an affiliate, web traffic or ads app); 409 when that app already has one. 409 at the limit. Requires the business OWNER’s read_write key.
| Argument | Type | Description |
|---|---|---|
| app_id | string | live_chat only: the id of the app this Live Chat is for |
| app_slug* | string | Which app (community is Chat) |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app_slug"
],
"properties": {
"app_id": {
"type": "string",
"description": "live_chat only: the id of the app this Live Chat is for"
},
"app_slug": {
"enum": [
"community",
"faqs",
"courses",
"events",
"files",
"calendar",
"funnels",
"tracking",
"leads",
"revenue",
"live_chat",
"apple_ads",
"tiktok_ads",
"meta_ads",
"google_ads",
"x_ads",
"snapchat_ads"
],
"type": "string",
"description": "Which app (community is Chat)"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Add a website (kind web: website_url and provider stripe, paddle, polar, whop, shopify or woocommerce) or a mobile app (kind mobile: name and provider revenuecat, stripe, apple_iap, google_play or adapty) under "Track your sales". It starts pending. Its payment provider connects through the call in site.connect (Stripe, Polar and RevenueCat answer a connect_url the owner opens while signed in, Adapty is connected in the dashboard), and site.snippet goes on every page of the website, or the Affiliateo SDK in the app. An app store page is refused as a website. A site or app one of the business’s affiliate apps already covers (same website host, or a phone app of the same name) is refused with 409 already_tracked_as_affiliate_app, naming that app: its sales already feed the ads. The same site or app paused before is turned back on instead (same id, same connection, same history; answer reopened: true). Up to 10 per business; paused ones are not counted. Requires the business OWNER’s read_write key with the Ads area.
| Argument | Type | Description |
|---|---|---|
| kind | string | Default web |
| name | string | mobile: the app’s name |
| provider* | string | How it takes payments (see the description for each kind) |
| website_url | string | web: https:// address the snippet runs on |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"provider"
],
"properties": {
"kind": {
"enum": [
"web",
"mobile"
],
"type": "string",
"description": "Default web"
},
"name": {
"type": "string",
"description": "mobile: the app’s name"
},
"provider": {
"type": "string",
"description": "How it takes payments (see the description for each kind)"
},
"website_url": {
"type": "string",
"description": "web: https:// address the snippet runs on"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Approve one waiting request, as Approve on the app’s Edit visibility page in the dashboard does: the person joins the app’s people list (people in list_sidebar_apps, the list update_sidebar_app’s people_user_ids sets) and is notified. A request already answered is a 409, and so is one whose person can no longer be on the list (no longer a member, or on the team for Leads and the ads apps), which is closed. Requires the business OWNER’s read_write key.
| Argument | Type | Description |
|---|---|---|
| request_id* | string | The request id, from list_app_access_requests |
| instance_id* | string | id from list_sidebar_apps |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"instance_id",
"request_id"
],
"properties": {
"request_id": {
"type": "string",
"description": "The request id, from list_app_access_requests"
},
"instance_id": {
"type": "string",
"description": "id from list_sidebar_apps"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Approve one waiting request to join an app, as Approve on its Visibility page in the dashboard does: the person goes on the app’s invite list (the list list_app_invites reads and invite_to_app adds to) and is notified. On an affiliate program or a web traffic app they are made an affiliate in the same step, as any new affiliate (automatic free access included): joined says whether that happened, and when it could not finish (no username yet, say) they stay approved and press Join themselves. On a clipping app the invite is what lets them submit. A request already answered is a 409, and so is one whose person can no longer join (banned), which is closed. Requires the business OWNER’s read_write key.
| Argument | Type | Description |
|---|---|---|
| app_id* | string | App UUID or app slug, from the apps array in list_businesses |
| request_id* | string | The request id, from list_app_join_requests |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app_id",
"request_id"
],
"properties": {
"app_id": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"request_id": {
"type": "string",
"description": "The request id, from list_app_join_requests"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Approve one waiting request to answer a Live Chat, as Approve on its Edit visibility page in the dashboard does: the person joins the people picked to answer that app (the list update_live_chat_settings’s picked_user_ids sets; an affiliate answers restricted: no visitor emails or ids, no links) and is notified. Under who_answers team it also turns on picked_with_team. A request already answered is a 409, and so is one whose Live Chat no longer takes requests or whose person is no longer on the team or an affiliate of the app (those two are closed). Requires the business OWNER’s read_write key with the Community area.
| Argument | Type | Description |
|---|---|---|
| request_id* | string | The request id, from list_live_chat_access_requests |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"request_id"
],
"properties": {
"request_id": {
"type": "string",
"description": "The request id, from list_live_chat_access_requests"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Ban a person by username (or user_id). This is the dashboard’s whole ban, not just the chat: every chat message they sent here is deleted, their membership and affiliate rows are banned, a staff role ends, free access, invites and pending requests are taken back, their subscriptions to the business STOP and the access they paid for ends at once, and they cannot come back. A subscription billed by Apple cannot be stopped from here: they get a notice telling them to turn it off. UPSTREAM_ERROR means a subscription could not be stopped and nothing changed: try again. Requires the business OWNER’s read_write key with the Community area, or a moderator’s own key.
| Argument | Type | Description |
|---|---|---|
| user_id | string | |
| username | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"user_id": {
"type": "string"
},
"username": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}GET only: reads any Affiliateo REST endpoint, including those no named tool covers. Endpoints, parameters and answers are in the REST reference at https://affiliateo.com/docs/api. The path /api/v1 returns the list of every endpoint, and /api/v1/businesses/{slug}/ads/resources with no resource parameter returns the catalogue of ad network objects (audiences, automated rules, custom conversions, keywords, identities and more) with what each network supports. Areas no named tool reads include ad groups below a campaign, keywords and negative keywords, keyword ideas and bid recommendations, automated rules on Meta and TikTok, custom conversions, server-side conversion checks, product catalogs, TikTok promoted apps, delivery estimates, webhooks, and TikTok balances and identities. Same permissions and rate limits as the REST API.
| Argument | Type | Description |
|---|---|---|
| body | object | JSON request body (POST/PATCH/PUT/DELETE) |
| path* | string | Endpoint path starting with /api/v1, e.g. /api/v1/businesses/{slug}/ads/rules |
| query | object | Query parameters as a flat object, e.g. {"network": "google"} |
| method | string | GET, the default and only value |
{
"type": "object",
"required": [
"path"
],
"properties": {
"body": {
"type": "object",
"description": "JSON request body (POST/PATCH/PUT/DELETE)"
},
"path": {
"type": "string",
"description": "Endpoint path starting with /api/v1, e.g. /api/v1/businesses/{slug}/ads/rules"
},
"query": {
"type": "object",
"description": "Query parameters as a flat object, e.g. {\"network\": \"google\"}"
},
"method": {
"enum": [
"GET"
],
"type": "string",
"description": "GET, the default and only value"
}
}
}POST, PATCH, PUT or DELETE: changes data through any Affiliateo REST endpoint, including those no named tool covers. Endpoints and request bodies are in the REST reference at https://affiliateo.com/docs/api. Areas no named tool changes include ad groups below a campaign, keywords and negative keywords, automated rules on Meta and TikTok (a rule keeps running on the network after the call), custom audiences and lookalikes, custom conversions and conversion test events, product catalogs, account spend caps, webhooks, ad images and videos fetched from a URL (POST /api/v1/businesses/{slug}/ads/media), and Elements sessions. A sign-in cannot move money: payout routes refuse it. Same permissions and rate limits as the REST API.
| Argument | Type | Description |
|---|---|---|
| body | object | JSON request body (POST/PATCH/PUT/DELETE) |
| path* | string | Endpoint path starting with /api/v1, e.g. /api/v1/businesses/{slug}/ads/rules |
| query | object | Query parameters as a flat object, e.g. {"network": "google"} |
| method* | string | HTTP method |
{
"type": "object",
"required": [
"method",
"path"
],
"properties": {
"body": {
"type": "object",
"description": "JSON request body (POST/PATCH/PUT/DELETE)"
},
"path": {
"type": "string",
"description": "Endpoint path starting with /api/v1, e.g. /api/v1/businesses/{slug}/ads/rules"
},
"query": {
"type": "object",
"description": "Query parameters as a flat object, e.g. {\"network\": \"google\"}"
},
"method": {
"enum": [
"POST",
"PATCH",
"PUT",
"DELETE"
],
"type": "string",
"description": "HTTP method"
}
}
}Cancel a booked call exactly as the Leads app’s button does: the time is free again at once, THE VISITOR IS EMAILED that it was cancelled (in their own time zone, with a link back to the page to pick another time), and booking.cancelled goes to the owner’s webhooks. The lead stays in the list. THIS SENDS AN EMAIL TO A REAL PERSON AND CANNOT BE UNDONE. Safe to repeat: a call that is already cancelled answers 200 with changed: false and sends nothing. A form entry answers 400, since there is no call to cancel, and a call that has ALREADY STARTED answers 409. Erasing the person’s details is delete_lead. Requires a read_write OWNER key.
| Argument | Type | Description |
|---|---|---|
| lead_id* | string | The booked call’s lead UUID, from list_leads |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"lead_id"
],
"properties": {
"lead_id": {
"type": "string",
"description": "The booked call’s lead UUID, from list_leads"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The dashboard’s "Check again": runs every credential check with the keys already stored, read only at Apple or Google, and stores the report. Answers { provider, status, checks }, checks being the checklist { checked_at, ok, waiting, items: [{ id, state pass|fail|waiting|skipped, required, code, params, detail }] }. Apple rows: apple_key_file, apple_purchases, apple_app_match, apple_catalog. Google rows: google_key_file, google_key_active, google_purchases, google_products, google_subscriptions, google_notifications. An app the store had refused (status error) is connected again when the checks pass (Apple: the purchases check), and a pending Google key whose checks pass goes live exactly like a connect. It is for after the owner fixes a permission the checklist named. Nothing is paid. Requires the business OWNER’s read_write key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| provider* | string | Which store connection |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app",
"provider"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"provider": {
"enum": [
"apple",
"google_play"
],
"type": "string",
"description": "Which store connection"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Connect the app to where its sales happen, with the dashboard’s own steps. stripe, polar, revenuecat: answers a connect_url the OWNER must open in a browser signed in to Affiliateo and approve (15 minutes); revenuecat then asks for the project there, or send project_id here afterwards. shopify (shop) and woocommerce (shop_url): a connect_url approved in the store admin; when already connected to that provider send replace: true, because starting again removes the current webhooks at once. paddle, whop: api_key, connected at once. apple: issuer_id, key_id, p8 (the In-App Purchase key), bundle_id, app_apple_id, environment; or reuse_from_app_id (a source_app_id from list_saved_store_keys) in place of issuer_id, key_id and p8. Optional for apple: the App Store Connect API key that imports products and prices, asc_key_id + asc_p8 or asc_reuse_from_app_id (role App Manager or above; set_app_store_connect_key adds or removes it later). google_play: service_account_json (or reuse_from_app_id), package_name, pubsub_topic?, environment? (stored, changes nothing). The keys are checked read only and the answer carries checks, the checklist { checked_at, ok, waiting, items: [{ id, state pass|fail|waiting|skipped, required, code, params, detail }] }, plus webhook_url and setup_url; apple also asc_key. Send send_test: false for apple: then no test notification is sent on connect (absent means the old behaviour, a test sent after the save); webhook_url goes in App Store Connect, and send_apple_test_notification sends the test. Send accept_pending: true for google_play: then it answers connected, or pending: true (connected false, with pending_until) when Google accepts the key but Play access is not active yet (a new key can take up to 36 hours): the key is kept, checked again every 10 minutes for 72 hours, and the app goes live once the checks pass. Without accept_pending such a key is not kept and the answer is a 400 (play_access_pending) with checks. A pending key never replaces one that is connected and working (400), and never holds a package against another owner. A google_play reconnect keeps the stored pubsub_topic when none is sent. Notifications are connect_google_play_notifications. A failed required check is a 400 whose message ends with the check code in brackets, with checks beside the error; 409 CONFLICT (already_connected) when another Affiliateo app holds the same bundle ID (per environment) or package name (other_app names it when it is the same owner’s). When RevenueCat already handles that app, leave the store pointed at RevenueCat (Apple takes one Server URL per app and Play Console one topic): Apple’s webhook_url goes in RevenueCat’s Apple Server Notification Forwarding URL, and Google’s is a push subscription added to RevenueCat’s own Pub/Sub topic (connect_google_play_notifications with that topic does it). Pasting webhook_url is optional, the fast lane (sales within seconds): without it Affiliateo reads Apple’s notification history hourly with the In-App Purchase key (sales within about an hour), and for Google Play checks each subscription with Google when its period ends and finds a new purchase from the app’s own purchase report (sales within about 15 minutes). adapty is dashboard only (its setup shows a secret no key may read). stripe, paddle, whop, polar, shopify and woocommerce connect beside each other, so a website can move between them without a gap. revenuecat, adapty, apple and google_play connect beside each other too, so an app can move between them without a gap, and a purchase two of them report is counted once. apple and google_play find a sale’s buyer by the tag the app passes with the purchase (StoreKit appAccountToken, Play Billing obfuscatedAccountId): the tag the mobile SDK hands out, or the app’s own account id when the app passes that exact same id to identify right after sign-in, before the person can buy (Apple takes only a UUID; Google’s is matched to the identify id exactly, only a UUID’s letter case ignored, and must be at least 8 characters and not a plain number); the SDK’s own tag wins when both could match. Nothing is paid. Requires the business OWNER’s read_write key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| fields | object | The provider’s fields as listed above (api_key, shop, shop_url, replace, project_id, the Apple or Google keys, reuse_from_app_id, asc_key_id, asc_p8, asc_reuse_from_app_id); none for stripe and polar |
| provider* | string | Which provider |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app",
"provider"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"fields": {
"type": "object",
"description": "The provider’s fields as listed above (api_key, shop, shop_url, replace, project_id, the Apple or Google keys, reuse_from_app_id, asc_key_id, asc_p8, asc_reuse_from_app_id); none for stripe and polar",
"additionalProperties": true
},
"provider": {
"enum": [
"stripe",
"paddle",
"whop",
"polar",
"shopify",
"woocommerce",
"revenuecat",
"apple",
"google_play"
],
"type": "string",
"description": "Which provider"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Optional: without them Google Play sales still arrive within about 15 minutes; with them, within seconds, and a new purchase the app never reported is caught too. Sets up Google Play’s real-time notifications with the app’s stored service account: topic (a full name projects/P/topics/T from list_google_play_topics, an existing topic such as the one RevenueCat made, so both hear it) or create_topic (a new topic id, e.g. play-store-notifications). Affiliateo creates the topic if asked, lets Google Play publish to it ([email protected] gets Pub/Sub Publisher), and creates or updates its own push subscription to the app’s webhook. Answers { provider, topic, subscription, play_console_steps_url }. Then the OWNER pastes the topic in Play Console > Monetize with Play > Monetization setup, picks "Subscriptions, voided purchases, and all one-time products", saves, and clicks "Send test notification". Refused with 400 and problem: pubsub_role_missing (the service account needs Pub/Sub Admin), actas_missing (it needs Service Account User on itself), api_disabled (problem.params.url turns the API on), org_policy (Domain Restricted Sharing), topic_not_found. Nothing is paid. Requires the business OWNER’s read_write key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| topic | string | An existing topic: projects/PROJECT_ID/topics/TOPIC_ID |
| create_topic | string | A new topic id to create in the service account’s project |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"topic": {
"type": "string",
"description": "An existing topic: projects/PROJECT_ID/topics/TOPIC_ID"
},
"create_topic": {
"type": "string",
"description": "A new topic id to create in the service account’s project"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Create an app on a business - the four kinds businesses run: clipping (pay creators per 1k views), affiliate (commission on sales from the merchant’s website, mobile app, or both), web_traffic (pay per qualified click), collab (paid placements/content on creator channels). An affiliate app is ONE app with ONE referral link that covers whichever rails are configured: `provider` sets the web rail (stripe, paddle, polar, whop, shopify or woocommerce, the wizard’s six, then connected with connect_app_provider) and/or `mobile_provider` + a store URL for the mobile rail (or `mobile_provider` revenuecat + `website_url` and no store URL for a website that sells through RevenueCat with no app in a store: its affiliate links open the website); either can be added later with update_app - ONE app carries both rails behind one device-routed referral link (phones_to_website sends phones to the website too), so there is one app to set up. An app with a mobile rail can also take AFFILIATE CODES typed inside the app (affiliate_codes_enabled: a buyer types an affiliate’s code, their ref_code, in a box the app shows, and that affiliate is credited with no discount and no IP match; match_link_clicks false makes it codes only), so there is no separate web-affiliate and mobile-affiliate app to create. content_type is required and takes "affiliate_app" - one name, sent and read back. The providers decide the rails; the name never does. An affiliate app must end up with at least ONE rail, so sending it with neither provider is a 400. Same validation as the dashboard wizard (percent commission at most 70% on every app, website and store alike, shared with the closer commission, and refused above it rather than lowered; flat capped $50; 1% floor). What the API cannot finish: clipping/web_traffic/collab apps are born pending_budget (the owner funds them in the dashboard, $100 minimum; funding itself is free, and the 1% platform fee is charged per payout out of the same budget, so a $100 payout to a creator costs the budget $101, so plan a budget as intended payouts x 1.01; An account still inside its 7-day partner-link fee trial pays no platform fee at all, here or on any other surface, so there may be nothing to warn about yet.), and affiliate apps are born pending the provider connection - connect_app_provider makes it (the OAuth providers answer a link the owner approves in a signed-in browser), or next_step gives the dashboard URL. Media: pass public https URLs (thumbnail_url, media_urls); they are fetched server-side and validated. Placement collabs require at least one media_urls creative. free_access_auto (1w | 1m | 3m | 1y | forever) with free_access_auto_product_id gives every affiliate who joins the paid app free for that long (see update_app). closer_bonus_type + closer_bonus_rate set the closer commission (see update_app). The app name becomes the URL slug (globally unique - a taken or reserved name is a hard error; pick another name). The reply never carries the app’s webhook secret. Requires a read_write key.
| Argument | Type | Description |
|---|---|---|
| faqs | array | FAQ list: [{"question":"...","answer":"..."}] |
| name* | string | App name (max 100 chars) - also becomes the URL slug |
| category | string | Category, e.g. Music, Gaming, Finance, Tech & Software (default Other) |
| provider | string | affiliate WEB rail: payment provider for sales on website_url, the same six the dashboard wizard offers. The app is created pending until that provider is connected: POST /api/v1/businesses/{slug}/apps/{appId}/connections/{provider} (an approval link for stripe and polar, an approval in the store admin for shopify and woocommerce, an API key for paddle and whop), or in the dashboard. Until then a shopify or woocommerce app reads back web_provider stripe (status pending_stripe), as the wizard’s draft does: connect the provider you named |
| cpm_cents | integer | clipping: reward per 1,000 views in cents (required unless per_platform_rewards); web_traffic: rate per qualified click in cents (required) |
| platforms | array | clipping (required) / web_traffic: platforms, e.g. ["tiktok","instagram","youtube","x","facebook"] |
| media_urls | array | collab: up to 5 public https creative URLs (placement: PNG/JPEG/WebP images; content: also MP4). Required (min 1) for placement collabs |
| sound_urls | object | clipping: the sound to use when require_sounds is true, {"url": "https://..."} |
| visibility | string |
Create a business: the workspace that products, apps and affiliate programs live in. Same validation as the dashboard create dialog. The name BECOMES the globally unique URL slug, so a taken one answers 409 CONFLICT; a name that impersonates the platform, an authority role (admin, support, official, team) or a payment brand is refused, as is one whose URL would be a reserved word. business_model must be one of the six category labels, and an invalid value is refused with the list in the message. AT MOST THREE BUSINESSES PER ACCOUNT: a fourth is 409, and deleting one frees a slot. NEEDS AN ACCOUNT-WIDE KEY: every other write proves its right by naming a business_slug, and there is no slug yet when making one, so a key pinned to a single business is refused with 403. Safe to retry: the same name and category replays the first answer rather than spending another of three slots. Add the logo, cover and description afterwards with update_business. Requires a read_write key.
| Argument | Type | Description |
|---|---|---|
| name* | string | Max 50 characters, any script. Becomes the URL slug. |
| description | string | Max 400 characters. |
| business_model* | string | One of the six category labels; an invalid one is refused with the list. |
{
"type": "object",
"required": [
"name",
"business_model"
],
"properties": {
"name": {
"type": "string",
"description": "Max 50 characters, any script. Becomes the URL slug."
},
"description": {
"type": "string",
"description": "Max 400 characters."
},
"business_model": {
"type": "string",
"description": "One of the six category labels; an invalid one is refused with the list."
}
}
}Add an entry to the Calendar app: title, start_at and end_at, and optionally description, all_day, timezone, location, color (#rrggbb) and instance. Up to 1,000 entries a copy. Requires the business OWNER’s read_write key with the Content area, or a manager’s own key.
| Argument | Type | Description |
|---|---|---|
| color | string | #rrggbb; null clears it |
| title* | string | Up to 200 characters |
| end_at* | string | ISO 8601 with an offset; on or after start_at |
| all_day | boolean | |
| instance | integer | |
| location | string | Up to 300 characters; null clears it |
| start_at* | string | ISO 8601 with an offset |
| timezone | string | IANA name, like America/New_York |
| description | string | Up to 2,000 characters; null clears it |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"title",
"start_at",
"end_at"
],
"properties": {
"color": {
"type": "string",
"description": "#rrggbb; null clears it"
},
"title": {
"type": "string",
"description": "Up to 200 characters"
},
"end_at": {
"type": "string",
"description": "ISO 8601 with an offset; on or after start_at"
},
"all_day": {
"type": "boolean"
},
"instance": {
"type": "integer"
},
"location": {
"type": "string",
"description": "Up to 300 characters; null clears it"
},
"start_at": {
"type": "string",
"description": "ISO 8601 with an offset"
},
"timezone": {
"type": "string",
"description": "IANA name, like America/New_York"
},
"description": {
"type": "string",
"description": "Up to 2,000 characters; null clears it"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Create a course in the Courses app: name, description, is_hidden, instance (which copy; default the first), and a cover by public link (cover_url) or upload (cover_upload_key from create_upload). Then add chapters and lessons. 409 when the business has no Courses app yet (add_sidebar_app with courses). Requires the business OWNER’s read_write key with the Content area.
| Argument | Type | Description |
|---|---|---|
| name* | string | |
| instance | integer | |
| cover_url | string | A public PNG, JPEG, WebP or GIF, up to 25 MB |
| is_hidden | boolean | |
| description | string | |
| business_slug* | string | Business slug, from list_businesses |
| cover_upload_key | string | An image from create_upload |
{
"type": "object",
"required": [
"business_slug",
"name"
],
"properties": {
"name": {
"type": "string"
},
"instance": {
"type": "integer"
},
"cover_url": {
"type": "string",
"description": "A public PNG, JPEG, WebP or GIF, up to 25 MB"
},
"is_hidden": {
"type": "boolean"
},
"description": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"cover_upload_key": {
"type": "string",
"description": "An image from create_upload"
}
}
}Create an event in the Events app: name, start_at and end_at, and optionally description, timezone (default America/New_York), repeat_type, location_type (place | link | zoom | google_meet, default link) with location_value, host_type and host_name, allow_rsvp, capacity, instance (a copy of the app), and a cover (cover_url or cover_upload_key). Members who want Events notifications are told unless notify_members is false. A refused cover makes no event. Requires the business OWNER’s read_write key with the Content area, or a manager’s own key.
| Argument | Type | Description |
|---|---|---|
| name* | string | Up to 100 characters |
| end_at* | string | ISO 8601 with an offset; on or after start_at |
| capacity | integer | 1 to 100,000; null: no limit |
| instance | integer | |
| start_at* | string | ISO 8601 with an offset, like 2026-11-01T18:00:00Z |
| timezone | string | IANA name, like America/New_York |
| cover_url | string | A public PNG, JPEG, WebP or GIF, fetched server-side |
| host_name | string | |
| host_type | string | |
| allow_rsvp | boolean | |
| description | string | Up to 500 characters; null clears it |
| repeat_type | string | |
| business_slug* | string | Business slug, from list_businesses |
| location_type | string | |
| location_value | string | A web address for link, zoom and google_meet; any text for a place |
| notify_members | boolean | false: tell no member (default true) |
| cover_upload_key | string | An image from create_upload |
{
"type": "object",
"required": [
"business_slug",
"name",
"start_at",
"end_at"
],
"properties": {
"name": {
"type": "string",
"description": "Up to 100 characters"
},
"end_at": {
"type": "string",
"description": "ISO 8601 with an offset; on or after start_at"
},
"capacity": {
"type": "integer",
"description": "1 to 100,000; null: no limit"
},
"instance": {
"type": "integer"
},
"start_at": {
"type": "string",
"description": "ISO 8601 with an offset, like 2026-11-01T18:00:00Z"
},
"timezone": {
"type": "string",
"description": "IANA name, like America/New_York"
},
"cover_url": {
"type": "string",
"description": "A public PNG, JPEG, WebP or GIF, fetched server-side"
},
"host_name": {
"type": "string"
},
"host_type": {
"enum": [
"self",
"other"
],
"type": "string"
},
"allow_rsvp": {
"type": "boolean"
},
"description": {
"type": "string",
"description": "Up to 500 characters; null clears it"
},
"repeat_type": {
"enum": [
"none",
"daily",
"weekly",
"biweekly",
"monthly"
],
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"location_type": {
"enum": [
"place",
"link",
"zoom",
"google_meet"
],
"type": "string"
},
"location_value": {
"type": "string",
"description": "A web address for link, zoom and google_meet; any text for a place"
},
"notify_members": {
"type": "boolean",
"description": "false: tell no member (default true)"
},
"cover_upload_key": {
"type": "string",
"description": "An image from create_upload"
}
}
}Add a question and answer at the end of a copy of the FAQs app (plain text, up to 500 characters each; 50 a copy). Requires the business OWNER’s read_write key with the Content area, or a manager’s own key.
| Argument | Type | Description |
|---|---|---|
| answer* | string | |
| instance | integer | |
| question* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"question",
"answer"
],
"properties": {
"answer": {
"type": "string"
},
"instance": {
"type": "integer"
},
"question": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Make a bill for one person and EMAIL IT AT ONCE (there is no draft), exactly as the dashboard’s Create invoice does. The person pays through the link in the email by card, Link or US bank account with no account needed; paying makes them a member of the business, credits the seller like any sale, and pays the affiliate who sent them. THIS SENDS AN EMAIL TO A REAL PERSON. amount_cents is USD cents, 50 to 10000000. due_in_days (0 to 365, default 7) or due_date (YYYY-MM-DD, today or later); the link stays payable after the due date until the bill is voided. product_id, optional, gives the payer that product’s access on payment; product_name, optional and ignored beside product_id, names a custom product ("Website build") with nothing behind it; leave both out for a plain amount. pricing_type one_time (default) charges amount_cents once. pricing_type subscription charges amount_cents once when the bill is paid, then charges the payer’s saved method recurring_amount_cents every recurring_interval (7d | monthly | 3m | 6m | yearly, default monthly) starting one interval after the payment, until the owner (stop_invoice_subscription) or the payer (from the pay page) stops it; a flat subscription is amount_cents equal to recurring_amount_cents, and "$100 now, then $30 a month" is amount_cents 10000 with recurring_amount_cents 3000. lead_id, optional, ties the bill to a lead from list_leads and copies that lead’s affiliate onto it, so "we had the call, here is the bill" pays the affiliate who booked it. Refusals are 400 with the reason in the message: invalid_name, invalid_email, invalid_amount, invalid_due_date, invalid_pricing, cannot_invoice_self, invoice_already_open (that address already has an open bill from this business: void it or wait for it to be paid), or 404 product_not_found / lead_not_found. A business may send 30 an hour and 200 a day (429 past that). The owner must be verified and not suspended from selling (403). Fires invoice.created. Requires a read_write OWNER key.
| Argument | Type | Description |
|---|---|---|
| lead_id | string | A lead UUID from list_leads: the bill carries that lead’s affiliate |
| due_date | string | YYYY-MM-DD, today or later, at most a year ahead |
| product_id | string | A product UUID from list_products: what the payer gets access to |
| description | string | What it is for, up to 500 characters, shown on the email and the pay page |
| due_in_days | integer | Days from today, 0 to 365. Default 7. Wins over due_date |
| amount_cents* | integer | USD cents, 50 to 10000000: 10000 is $100.00 |
| pricing_type | string | Default one_time. subscription needs recurring_amount_cents |
| product_name | string | A custom product’s name, up to 120 characters, when no product_id is given |
| business_slug* | string | Business slug, from list_businesses |
| recipient_name* | string | Who the bill is for, up to 100 characters |
| recipient_email* | string | Where it is sent. Any address; it need not have an account |
| recurring_interval | string | How often the recurring charge runs. Default monthly |
| recurring_amount_cents | integer | USD cents, 50 to 10000000, charged every interval after the first payment (subscription only) |
{
"type": "object",
"required": [
"business_slug",
"recipient_name",
"recipient_email",
"amount_cents"
],
"properties": {
"lead_id": {
"type": "string",
"description": "A lead UUID from list_leads: the bill carries that lead’s affiliate"
},
"due_date": {
"type": "string",
"description": "YYYY-MM-DD, today or later, at most a year ahead"
},
"product_id": {
"type": "string",
"description": "A product UUID from list_products: what the payer gets access to"
},
"description": {
"type": "string",
"description": "What it is for, up to 500 characters, shown on the email and the pay page"
},
"due_in_days": {
"type": "integer",
"description": "Days from today, 0 to 365. Default 7. Wins over due_date"
},
"amount_cents": {
"type": "integer",
"description": "USD cents, 50 to 10000000: 10000 is $100.00"
},
"pricing_type": {
"enum": [
"one_time",
"subscription"
],
"type": "string",
"description": "Default one_time. subscription needs recurring_amount_cents"
},
"product_name": {
"type": "string",
"description": "A custom product’s name, up to 120 characters, when no product_id is given"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"recipient_name": {
"type": "string",
"description": "Who the bill is for, up to 100 characters"
},
"recipient_email": {
"type": "string",
"description": "Where it is sent. Any address; it need not have an account"
},
"recurring_interval": {
"enum": [
"7d",
"monthly",
"3m",
"6m",
"yearly"
],
"type": "string",
"description": "How often the recurring charge runs. Default monthly"
},
"recurring_amount_cents": {
"type": "integer",
"description": "USD cents, 50 to 10000000, charged every interval after the first payment (subscription only)"
}
}
}Make the key owner’s own tracking link for the business’s storefront program, at 0% commission, as the dashboard’s Join button does: the sales the owner sends themselves are then counted by source. Answers created true with the link the first time and created false with the same link after, so a retry is safe. It never adds anyone else: other people join from the business page. Requires the business OWNER’s read_write key.
| Argument | Type | Description |
|---|---|---|
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Make a feed post: content (up to 500 characters), media [{ upload_key, thumbnail_upload_key? }] (up to 10 pictures or H.264 MP4 videos from create_upload), poll_options (2 to 6 choices), pinned. It needs text, media or a poll. Requires the business OWNER’s read_write key with the Content area, or a manager’s own key.
| Argument | Type | Description |
|---|---|---|
| media | array | [{ upload_key, thumbnail_upload_key? }] |
| pinned | boolean | |
| content | string | |
| poll_options | array | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"media": {
"type": "array",
"items": {
"type": "object"
},
"description": "[{ upload_key, thumbnail_upload_key? }]"
},
"pinned": {
"type": "boolean"
},
"content": {
"type": "string"
},
"poll_options": {
"type": "array",
"items": {
"type": "string"
}
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Create a product on a business: a thing the storefront sells, with up to four plans and a sales page built from elements. Same validation as the dashboard editor - plan caps, commission clamps (percent ≤ 90), FAQ limits, and every page element checked and every text element sanitized - so it cannot store a product the editor would refuse. Pricing IS the plan list: send pricing_options and never a product-level price (an empty list, or pricing_type "free", is a free product). banner_url is REQUIRED: a public https image we fetch and store; it is the hero, the thumbnail everywhere else and the social share card. The name is unique per business and the URL slug is unique across the business’s products AND apps - a clash answers 409 CONFLICT naming it. The owner must have passed identity verification (403 ACCOUNT_INELIGIBLE otherwise). Omit page_settings.blocks to get the default page (title, subtitle, hero, plans, reviews, FAQ). Requires a read_write key. PAGE ELEMENTS (page_settings.blocks): an ordered array; order IS the layout, there are no coordinates. Every element is { id?, type, style?, …type fields }. Types: text { text (plain text, newlines kept) OR html, plus size?: "display" | "h1" | "h2" | "h3" | "body" | "small" (default body) - the size of every line that names none of its own. ONE TEXT ELEMENT HOLDS A WHOLE PASSAGE, so a title and its subtitle belong in ONE element, not two: in html each LINE is its own tag and carries its own size - <h1 data-size="display"> (the big opening line of a landing page), <h1>, <h2>, <h3>, <p data-size="body">, <p data-size="small">, and a bare <p> takes the element's `size`. e.g. html: "<h1 data-size=\"display\">Title</h1><p>Subtitle</p>". Any line may also carry data-align="left" | "center" | "right" (when it differs from the element's own align) and data-indent="1" to "4" (steps in from the edge). An EMPTY <p></p> is a blank line and takes up a line on the page, which is how a passage is spaced out. Inside a line: b/strong/i/em/u/s/a/br/span and ul/ol/li, plus ONE style declaration: a hex `color` on a span, which is how a word is a different colour from the sentence around it. Everything else is stripped, and an attribute value not listed here is dropped. size "display" is stored as an h1 element whose lines carry data-size="display", and is read back that way. style.textScale (50–300) multiplies every line, so any size can be pushed further } - the first display or h1 line becomes the product headline and the first other line the subtitle, both read off the page on save; media {} - the hero slot, drawing banner_url / video_url (one hero per product; the block only says WHERE it sits); image { url, alt?, href? } - ONE picture of its own, anywhere on the page (url a PUBLIC https PNG/JPEG/WebP under 10 MB, fetched server-side and stored, exactly like banner_url); not the same as media, which draws the product hero wherever it is put; button { label, href? | scrollTo?, color?: "#hex" } - a button that is not the buy button: href sends them out, scrollTo names another element ON THIS PAGE by its id and is DROPPED if no such element exists; spacer { size?: "sm" | "md" | "lg" } - empty space, which a divider (a line) is not; embed { url, videoUrl, poster } - a video, from EITHER source. `url` is a YouTube or Vimeo link and ONLY those two, because it becomes a player frame on a page that takes card details. `videoUrl` is the business’s own file: a PUBLIC https MP4 this server fetches (64MB on that path), or a file uploaded straight to storage with POST /api/uploads/sign whose key comes back as `block_video_keys`, for up to 500MB. An uploaded file WINS when both are set. This is separate from the hero, which is one per product and drawn by `media`; a page may hold several of these. Stored as the tidy link, with anything appended to what was sent dropped; stats { items: [{ id?, value, label }] (max 8, plain text), columns?: 1–4 } - figures with a word under each ("$55.6M+" / "in tracked sales"); quote { text, name?, role? } - somebody's words, typed, which the reviews element (real reviews left on the business) cannot say; compare { rows: [{ id?, label, us, them }] (max 15), usLabel?, themLabel? } - us against them. Each side is `true` (a tick), `false` (a cross) or a SHORT STRING ("unlimited" against "5 a month"); anything else is read as false, because a row nobody can parse must not claim the product has something; sticky { label, buttonLabel?, href? | scrollTo?, endsAt?: ISO 8601, color?: "#hex" } - the bar that follows the reader down the page. It DRAWS NOTHING where it sits and the FIRST one on a page wins, because order is the layout for every other element and this one has no place in the order; checklist { items: [{ id?, text }] (max 30, plain text), icon?: "check" | "star" | "spark" | "arrow" | "dot", columns?: 1–4 } - "what you get", one mark per line; carousel { items: [{ id?, url }] (max 40; each url a PUBLIC https PNG/JPEG/WebP under 10 MB, fetched server-side and stored, exactly like banner_url), direction?: "horizontal" | "vertical", lanes?: 1–5, size?: 0–100 (or "sm" | "md" | "lg", which is what pages stored before the dial) - it sets the FIXED side of each picture, its height when the strip runs across and its width when it runs down, while the other side follows the picture, so 16:9, 9:16 and 1:1 sit in one strip uncropped, speed?: 0–100 } - a strip of pictures that scrolls on its own, for a wall of screenshots or proof; lanes stacks that many strips and they alternate direction, pictures are dealt across them in turn, and the pace is per picture so the strip feels the same whether it holds four or forty; plans { layout?: "grid" | "stack" } - the plan cards, drawn from pricing_options; cta { planId, label? } - a second buy button further down the page for ONE plan; reviews { columns?: 1–4 } - the featured reviews (page_settings.featured_review_ids); faq { columns?: 1–4 } - the product FAQs; cards { items: [{ id?, imageUrl?, heading?, body? }] (max 12), columns?: 1–4 } - a grid of cards, each with an optional picture on top (imageUrl a PUBLIC https PNG/JPEG/WebP under 10 MB, fetched server-side and stored, exactly like a carousel picture); form { items: [{ id?, kind, label?, required?, options? }] (max 12), title?, buttonLabel?, successMessage? (plain text), redirectUrl? (http/https; wins over the message), color?: "#hex" } - COLLECTS LEADS, and the visitor needs no account. kind is "name" | "email" | "phone" | "country" | "zip" (each at most once) or "short" | "long" | "select" | "consent" (the owner's own questions, any number, each needing a label; select needs options). EMAIL IS ALWAYS THERE AND ALWAYS REQUIRED: left out, it is added first. Entries land in the business's Leads app and at GET …/leads, each with the affiliate who sent the visitor; booking { …everything form takes, slotMinutes: 15 | 30 | 45 | 60 | 90, bufferMinutes?: 0 | 5 | 10 | 15 | 30, minNoticeHours?: 0 | 1 | 2 | 4 | 12 | 24 | 48, daysAhead?: 7 | 14 | 30 | 60 | 90 (CANNOT BE LOWERED past a call already booked through this element: the save answers 409 naming that call’s date and the shortest value that works; raising it is always allowed), timezone (IANA, REQUIRED: the zone the hours are written in), hours: [{ day: 0–6 with 0 = Sunday, from, to as 24 hour "HH:MM" }] (max 21; no hours means nothing can be booked), daysOff?: [{ from, to }] (closed dates, "YYYY-MM-DD" in that zone, both ends included, max 50; a bare "2026-12-25" is one day), maxPerDay?: 0 (no limit) | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 15 | 20 (counted across the whole business on the owner’s calendar day), reminderHours?: 0 (none) | 1 | 2 | 24 | 48 (default 24: one reminder email to the visitor that long before the call), meetingType?: "google_meet" (a Google Meet room OF ITS OWN for every call, made on the Google Calendar the owner connected in the Leads app; meetingLink is then an optional https fallback) | "link" (the owner’s own room, Zoom or Teams: the SAME https meetingLink for everyone who books) | "phone" (the OWNER CALLS THE VISITOR on the number the form collects: a required phone field is added to the form if it has none, and meetingLink is ignored, so the owner’s own number is never sent) | "in_person" (meetingLink is the address, as plain text); left out, the element predates the choice and meetingLink may be an https URL or a phone number, sent as it is. meetingProvider?: "google_meet" is the older spelling of meetingType "google_meet" and is saved as that. locationLabel? (words shown on the page; left out, the page names the app for a known link, "Zoom", or says the kind, "Phone call"), meetingLink? (see meetingType; NEVER sent to a page), confirmationNote? (the owner’s own words inside the confirmation email: plain text, max 600, NO links or web addresses, never sent to a page) } - a calendar a visitor books a call from, shown in THEIR time zone. AFFILIATEO DOES NOT HOST THE CALL: meetingType says how it happens, and meetingLink is NEVER sent to a page and reaches the visitor only in their emails, so read it back with an owner key, never from the public page. One business is one diary: a time booked on one page is taken on every page; countdown { endsAt: ISO 8601, expiredMessage?, layout?: "boxes" | "plain" | "inline" } - a fixed-date timer, hidden once passed unless a message replaces it; boxes is the default and puts each number in a filled pill, plain drops the pills and takes the section colour (for a countdown inside a coloured band), inline is one line with colons and no labels; divider { size?: "sm" | "md" | "lg" }; row { columns: [[…elements], [… ]], valign?: "top" | "center" | "bottom" } - 1 to 4 side-by-side columns of elements (rows do not nest; every column stacks on a phone). `valign` is how the columns line up when one is taller than another: absent means top, and "center" is what words beside a video want. STYLE (any element): { align?: "left" | "center" | "right", width?: 5–100 (percent of the column), paddingY?: 0–100 (vertical space; 100 is generous), paddingX?: 0–100 (EXTRA side room ADDED to the gutter the page already keeps, so 0 is the normal edge distance rather than flush against the screen), fullWidth?: true (run the element edge to edge AND leave its content there - a background instead runs the COLOUR edge to edge and puts the words back in the centred reading column, which is what a section wants and a picture does not), textScale?: 50–300 (percent of normal size; works on every element, text included), minHeight?: "auto" | "sm" | "md" | "lg" | "screen" (a floor, never a fixed height; the content sits in the middle of it), font?: "sans" | "serif" | "mono" (three system stacks, no downloads, so a browser and a phone can show the same one), appear?: true (fade in as it arrives; off under reduced motion), radius?: 0–48 (corner rounding in px), border?: { color: "#hex", width: 0–8 }, glow?: { color: "#hex", size: 0–100 } (a shadow in a dark colour, a glow in a bright one), background?: { kind: "solid", color: "#hex" } | { kind: "gradient", from: "#hex", to: "#hex", angle?: 0–360, shape?: "linear" | "radial" } | { kind: "image", url (a PUBLIC https picture, fetched server-side), overlay?: { color: "#hex", opacity: 0–1 } }, textColor?: "#hex" (REQUIRED with a background; a block with a background is pinned to those colours in light and dark mode and stretches edge to edge) }. Every picture (carousel items, Image elements, card pictures, background photos) is sent as a public https URL and stored on our side; the dashboard has a picker for each, because the API never writes what the owner cannot edit on screen.
| Argument | Type | Description |
|---|---|---|
| faqs | array | FAQ list (max 20): [{ id?, question, answer }], each up to 500 chars. Drawn by the faq page element |
| name* | string | Product name (max 100 chars). Prints on the Stripe charge, receipts and commission records. Unique per business across products, apps and store apps - a taken name is a 409 CONFLICT |
| slug | string | The URL: the page lives at https://affiliateo.com/{business}/{slug}. Optional - derived from the name when omitted. Lowercase letters, digits and hyphens, at least 3 characters. A slug already used by one of this business’s apps or products is a 409 CONFLICT (pick another); a reserved word is a 400 |
| headline | string | The title on the share card and the thumbnails (max 200). Normally NOT sent: when page elements are sent it is read off the page - the first display or h1 line of a text element - exactly as the editor does. Send it only for a product with no page elements, or to override |
| app_slugs | array | The products tab’s Apps column: the apps this product is listed against, by slug ("community", "courses", an app’s slug), max 50, repeats dropped. On update the list is replaced and [] clears it. Left out on create, the product lists no apps (the dashboard’s form ticks them all). A label for the products tab: who an app lets in is still that app’s own gate (update_sidebar_app gated_product_ids) |
| video_url | string | Optional public https URL of an MP4 (max 50 MB) to play as the hero instead of the image; the image stays as the poster and thumbnail. On update, replaces the video |
| banner_url* | string | REQUIRED on create: public https URL of the product image (PNG, JPEG or WebP, max 25 MB). Fetched server-side and stored on our CDN; it is the hero of the page, the thumbnail everywhere else, and the social share card. On update, replaces the image |
A signed link to upload one file straight to storage, for the fields that take an upload key (a lesson’s video_upload_key, pdf_upload_key and attachments, a course’s cover_upload_key, a lesson picture). kind: video (an H.264 MP4, up to 500 MB), image (PNG, JPEG, WebP or GIF with its content_type, up to 25 MB), pdf (up to 50 MB) or file (any allowed type, with content_type and filename, up to 50 MB). PUT the bytes to upload_url with exactly the headers given, within the hour (for example curl -X PUT -H "Content-Type: video/mp4" --upload-file lesson.mp4 "<upload_url>"), then send upload_key to the field. The file is checked where it is used and deleted if it fails; one never used is deleted after a day. Any read_write key.
| Argument | Type | Description |
|---|---|---|
| kind* | string | What the file is |
| filename | string | Required for file |
| byte_size* | integer | The file size in bytes |
| content_type | string | Required for image and file, e.g. image/png or application/zip |
{
"type": "object",
"required": [
"kind",
"byte_size"
],
"properties": {
"kind": {
"enum": [
"video",
"image",
"pdf",
"file"
],
"type": "string",
"description": "What the file is"
},
"filename": {
"type": "string",
"description": "Required for file"
},
"byte_size": {
"type": "integer",
"description": "The file size in bytes"
},
"content_type": {
"type": "string",
"description": "Required for image and file, e.g. image/png or application/zip"
}
}
}Remove one screen, file and all; the rest of its section keeps its order. Requires the business OWNER’s read_write key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| screen_id* | string | Screen id from list_app_screens |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app",
"screen_id"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"screen_id": {
"type": "string",
"description": "Screen id from list_app_screens"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Delete a calendar entry. There is no undo. Requires the business OWNER’s read_write key with the Content area, or a manager’s own key.
| Argument | Type | Description |
|---|---|---|
| entry_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"entry_id"
],
"properties": {
"entry_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Delete a course with its chapters, lessons, quizzes, every student’s progress and its files. There is no undo. Requires the business OWNER’s read_write key with the Content area.
| Argument | Type | Description |
|---|---|---|
| course_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"course_id"
],
"properties": {
"course_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Delete a chapter with its lessons, their quizzes and progress, and their files. There is no undo. Requires the business OWNER’s read_write key with the Content area.
| Argument | Type | Description |
|---|---|---|
| course_id* | string | |
| chapter_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"course_id",
"chapter_id"
],
"properties": {
"course_id": {
"type": "string"
},
"chapter_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Erases a customer for good, the way RevenueCat’s Delete Customer does: their app opens, screens, page views and goals, the profile and the owner’s note, which devices are theirs, and the app’s user id on those devices. THEIR SALES STAY (money records are never deleted), without the link to the person. A device that opens the app again comes back as a new anonymous customer. Cannot be undone. Requires the business OWNER’s read_write key.
| Argument | Type | Description |
|---|---|---|
| customer_id* | string | Affiliateo customer id |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"customer_id"
],
"properties": {
"customer_id": {
"type": "string",
"description": "Affiliateo customer id"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Delete an event with its RSVPs and its cover. There is no undo (update_event with status cancelled hides it instead). Requires the business OWNER’s read_write key with the Content area, or a manager’s own key.
| Argument | Type | Description |
|---|---|---|
| event_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"event_id"
],
"properties": {
"event_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Delete a FAQ. There is no undo. Requires the business OWNER’s read_write key with the Content area, or a manager’s own key.
| Argument | Type | Description |
|---|---|---|
| faq_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"faq_id"
],
"properties": {
"faq_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Delete a file of the Files app with its bytes and thumbnails. There is no undo. Requires the business OWNER’s read_write key with the Content area.
| Argument | Type | Description |
|---|---|---|
| file_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"file_id"
],
"properties": {
"file_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Permanently erase one lead: how to honour "please remove my details". IRREVERSIBLE. A standing booked call goes with it, which frees its time, and THE VISITOR IS NOT TOLD (cancel_booking is the call that tells them). Requires a read_write OWNER key.
| Argument | Type | Description |
|---|---|---|
| lead_id* | string | Lead UUID, from list_leads |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"lead_id"
],
"properties": {
"lead_id": {
"type": "string",
"description": "Lead UUID, from list_leads"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Delete a lesson with its quiz, progress and files. There is no undo. Requires the business OWNER’s read_write key with the Content area.
| Argument | Type | Description |
|---|---|---|
| course_id* | string | |
| lesson_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"course_id",
"lesson_id"
],
"properties": {
"course_id": {
"type": "string"
},
"lesson_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Delete a post with its likes, views, poll and media. There is no undo. Requires the business OWNER’s read_write key with the Content area, or a manager’s own key.
| Argument | Type | Description |
|---|---|---|
| post_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"post_id"
],
"properties": {
"post_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Delete a product, with the dashboard’s own steps: its page goes, its sales stay in Payments. Every subscription STOPS RENEWING and keeps its paid time (Apple-billed ones are told to turn it off in their iPhone settings); one-time and free buyers lose access; each is told. Its members and its app gates (an app no product gates any more is switched to public) finish at once when nobody has paid time, else once the last subscriber’s time runs out. With active subscribers the API refuses with 409 CONFLICT naming the count until confirm_subscriber_cancellation is true (get_product shows the count per plan). Answers subscribers_ending, apple_subscribers, access_ended, deactivated_members, apps_updated, apps_made_public and finishes_later. To stop selling but keep the renewals, archive instead (update_product status archived). Requires the business OWNER’s read_write key.
| Argument | Type | Description |
|---|---|---|
| product* | string | Product UUID, short id (prod_…) or URL slug, from list_products |
| business_slug* | string | Business slug, from list_businesses |
| confirm_subscriber_cancellation | boolean |
{
"type": "object",
"required": [
"business_slug",
"product"
],
"properties": {
"product": {
"type": "string",
"description": "Product UUID, short id (prod_…) or URL slug, from list_products"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"confirm_subscriber_cancellation": {
"type": "boolean"
}
}
}Remove a quiz question. Attempts already made keep their graded answers. Requires the business OWNER’s read_write key with the Content area.
| Argument | Type | Description |
|---|---|---|
| course_id* | string | |
| lesson_id* | string | |
| question_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"course_id",
"lesson_id",
"question_id"
],
"properties": {
"course_id": {
"type": "string"
},
"lesson_id": {
"type": "string"
},
"question_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Delete a reply sent in a support ticket, with its picture or video. Each person takes back only the replies they sent, as in the inbox; the customer’s own messages can never be deleted. No undo. Requires a read_write key with the Community area.
| Argument | Type | Description |
|---|---|---|
| reply_id* | string | |
| ticket_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"ticket_id",
"reply_id"
],
"properties": {
"reply_id": {
"type": "string"
},
"ticket_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Deny one waiting request, as Deny on the app’s Edit visibility page in the dashboard does. Nobody is told, and the person may ask again an hour after the deny. A request already answered is a 409. Approving is approve_app_access_request. Requires the business OWNER’s read_write key.
| Argument | Type | Description |
|---|---|---|
| request_id* | string | The request id, from list_app_access_requests |
| instance_id* | string | id from list_sidebar_apps |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"instance_id",
"request_id"
],
"properties": {
"request_id": {
"type": "string",
"description": "The request id, from list_app_access_requests"
},
"instance_id": {
"type": "string",
"description": "id from list_sidebar_apps"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Deny one waiting request to join an app, as Deny on its Visibility page in the dashboard does. Nobody is told, and the person may ask again an hour after the deny. A request already answered is a 409. Approving is approve_app_join_request. Requires the business OWNER’s read_write key.
| Argument | Type | Description |
|---|---|---|
| app_id* | string | App UUID or app slug, from the apps array in list_businesses |
| request_id* | string | The request id, from list_app_join_requests |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app_id",
"request_id"
],
"properties": {
"app_id": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"request_id": {
"type": "string",
"description": "The request id, from list_app_join_requests"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Deny a pending collab or placement request, as the dashboard’s Deny does. The reason is required and THE CREATOR IS TOLD IT. Nothing was reserved for a pending request, so nothing moves. Approving is approve_app_request; reporting stays in the dashboard. Requires the business OWNER’s read_write key, or a manager’s own key (never on their own request).
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| request_id* | string | The request id, from list_app_requests |
| review_note* | string | Why, up to 500 characters; the creator reads it |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app",
"request_id",
"review_note"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"request_id": {
"type": "string",
"description": "The request id, from list_app_requests"
},
"review_note": {
"type": "string",
"description": "Why, up to 500 characters; the creator reads it"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Deny one waiting request to answer a Live Chat, as Deny on its Edit visibility page in the dashboard does. Nobody is told, and the person may ask again an hour after the deny. A request already answered is a 409. Approving is approve_live_chat_access_request. Requires the business OWNER’s read_write key with the Community area.
| Argument | Type | Description |
|---|---|---|
| request_id* | string | The request id, from list_live_chat_access_requests |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"request_id"
],
"properties": {
"request_id": {
"type": "string",
"description": "The request id, from list_live_chat_access_requests"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The catalogue of fields this network accepts on each object type, with their allowed values and whether each can be set at creation, changed afterwards, or both: the real field names and enum values write_ad_object takes. WITHOUT level it is the index: every field NAME of each level, in fields_by_level, and none of the detail below. WITH level it is every field of that one level in full. Published for all six networks; the response’s writes_supported flag says whether write_ad_object can act on it yet. A field that takes an ID rather than a literal names its source in `lookup` ({ type, network, multiple }), the list_ad_lookups type that returns the real values. A field with no `lookup` and an id-shaped `help` is one the network gives us no way to enumerate, and the help says where it comes from instead. Also on each field: `mutability` (create-only, editable or read-only), `min`/`max`, `requires` (other fields it forces), `item_values` (the complete member set of a list field), `money` (takes minor units, rescaled to the ad account’s currency by Affiliateo, so a pre-scaled value is scaled twice; a money-shaped field WITHOUT the flag takes the network’s own unit, which is micros on Snapchat and Google) and `ui_hidden`. SIX FURTHER PROPERTIES APPEAR ONLY ON `json` FIELDS AND EACH ONE STATES THE EXACT BODY THE FIELD TAKES. `item_key`: a LIST with every entry wrapped in that key ({"text": "…"}), or bare values when it is the empty string. `wraps` ({ key, shape, values }): an object holding that ONE key and nothing else. `amount_currency`: { "amount": "50.00", "currency": "USD" }, whole units as a STRING, rescaled by nobody, and never the same thing as `money` above. `subfields`: EVERY key the object can hold, each with its own key/shape/values/required, so a key absent from it is a key the network does not take. `rowlist`: the same key set for a LIST of those objects, one entry per row. `variants` ({ discriminator, options[], common? }): the object’s keys depend on a choice, so it takes the keys of exactly ONE option, never a union of two. When `common` is present, those keys are NOT part of any option: they sit at the TOP LEVEL of the object, as siblings of the chosen option’s key rather than nested inside it, beside whichever option is chosen. Google’s `ad.ad` is the one that has it: the ad type key and the ad’s `finalUrls` are siblings, and `responsiveSearchAd.finalUrls` is refused as a field that message does not have. WHY THE COMPLETENESS MATTERS: Snapchat, Meta, Apple and TikTok REPLACE the object sent and silently destroy every key left out of it, answering 200, so a write carries the whole object, not the one key being changed. Google alone merges, because its update mask is built down to leaf paths. A `json` field carrying none of these six, AND no `lookup` and no `item_values`, is one whose shape only the network can describe. Those were examined rather than missed, and THAT EXAMINATION IS FINISHED RATHER THAN PAUSED: each one is a decision, not a gap waiting to be filled. Every one is free-form by the network’s own declaration, or built by a typed route of its own, or a form deliberately withdrawn because a partial one would delete keys nobody can see, or read against the network’s own reference and genuinely not enumerable. Each states the literal shape to write in its `help`. The group is narrow: most `json` fields in the catalogue are not in it, because a `lookup` or an `item_values` already says what a field takes. READ ONE OBJECT BY PASSING level AND id, which is the half that stops a write from deleting things. The answer is this same catalogue plus `current` ({ id, level, fields, unread }). `fields` is keyed by the SAME flat field names this catalogue publishes, never by the network’s nested wire paths, and it carries the SAME units a write takes, so a value read here and sent straight back through write_ad_object is a no-op. THAT IS WHAT MAKES A PARTIAL EDIT SAFE ON THE FOUR NETWORKS THAT REPLACE: the object as read, with only the intended keys changed, goes back whole. THREE ANSWERS, AND CONFLATING THEM IS HOW A LIVE SETTING GETS CLEARED. A name MISSING from `fields` means the network said nothing about it. A name present and null means the network said it is empty. `unread` names rows the reader knowingly did not fetch, which is a gap in US and not a fact about the object. So an empty `fields` is NOT an empty object, and a key that was not actually read is never a key to restate. `current` is null, with a 200, whenever the object could not be read at all: a level the network publishes no single-object read for, an id that was not in the answer, a missing or read-only connection, or an id from a neighbouring ad account (name it with `account`). A malformed request is still an error: id without level, an unknown level, or an id of the wrong shape never reached a network, so a retry gets the same answer. COVERAGE IS UNEVEN AND SAYING SO IS THE POINT: Google answers for every level, Meta for campaign, ad set, ad and creative, TikTok for its three manual and three Smart+ levels, Snapchat for campaign, ad squad and ad while reporting a CREATIVE’s rows as `unread` because it publishes no single-creative read, and Apple for campaign and creative only, because its other four find endpoints need a campaign id this call is not given. Omit id and there is no `current` key.
| Argument | Type | Description |
|---|---|---|
| id | string | One object id. Adds `current` to the response. Omit it for the catalogue alone, the answer that suits a CREATE. |
| level | string | Which object type, from this network’s own levels list: every field of that level in full. Required WITH id. |
| account | string | Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account. |
| network | string | Default meta |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"id": {
"type": "string",
"description": "One object id. Adds `current` to the response. Omit it for the catalogue alone, the answer that suits a CREATE."
},
"level": {
"enum": [
"campaign",
"adset",
"ad",
"creative",
"budget",
"adgroup",
"conversion_action",
"asset",
"asset_group",
"asset_group_asset",
"asset_group_signal",
"asset_group_listing_group_filter",
"campaign_asset",
"ad_group_asset",
"customer_asset",
"ad_group_criterion",
"campaign_criterion",
"smart_plus_campaign",
"smart_plus_adgroup",
"smart_plus_ad",
"keyword",
"negative_keyword",
"line_item",
"promoted_tweet",
"card",
"adsquad"
],
"type": "string",
"description": "Which object type, from this network’s own levels list: every field of that level in full. Required WITH id."
},
"account": {
"type": "string",
"description": "Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account."
},
"network": {
"enum": [
"meta",
"google",
"tiktok",
"apple_search_ads",
"x",
"snapchat"
],
"type": "string",
"description": "Default meta"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Disconnect an ad network, as soft as the settings button: stored tokens cleared and syncing stopped, while campaigns keep running on the network and every synced stat stays. Reconnecting needs the owner to sign in to the network again (POST …/ads/connect-link through call_api). Requires the business OWNER’s read_write key with the Ads area.
| Argument | Type | Description |
|---|---|---|
| network* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"network"
],
"properties": {
"network": {
"enum": [
"meta",
"google",
"tiktok",
"apple_search_ads",
"x",
"snapchat"
],
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}End one payment connection the way the dashboard does: webhooks removed at the provider where it can, discount codes switched off first (Stripe, Shopify, WooCommerce), keys purged, and the app paused only if nothing else still sells. SALES ON THAT PROVIDER STOP BEING TRACKED and the app’s affiliates are told. google_play also ends a pending key, and deletes the Pub/Sub push subscription Affiliateo made (best effort, never anyone else’s) first. Nothing is paid or refunded. Requires the business OWNER’s read_write key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| provider* | string | Which provider |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app",
"provider"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"provider": {
"enum": [
"stripe",
"paddle",
"whop",
"polar",
"shopify",
"woocommerce",
"revenuecat",
"apple",
"google_play",
"adapty"
],
"type": "string",
"description": "Which provider"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Embedded affiliate signup: enroll a user as an affiliate by email. Finds or creates their Affiliateo account, joins them to the business, and returns their referral links (short + username + merchant-domain direct for apps with a website, withheld on an app that ALSO has a store listing until its owner confirms that page forwards mobile visitors to the store (web_auto_bounce), since on the merchant’s own domain only the merchant can send an iPhone to the App Store, plus the affiliate’s COUPON code when the app has Stripe discount codes on - a code the buyer types at checkout, not a URL), lifetime stats, payout buckets, and a payout readiness object ({ identity_verified, payouts_enabled }: gate Verify / Cash out buttons on it) in one payload (web_traffic apps return per-click payout buckets + a click_payout object). Safe to repeat: an existing affiliate returns current links + stats, and one who previously left the business is reactivated. Users banned from the business are rejected with BANNED_FROM_BUSINESS; closed or platform-ineligible accounts get a deliberately generic ACCOUNT_INELIGIBLE. On an app that approves who joins (require_application), only the people on its invite list (invited, or approved with approve_app_join_request) are enrolled; anyone else is a VALIDATION_ERROR, because they request to join on Affiliateo and the owner approves them. Optional `username` lets the person choose the handle in their own referral link; it is best-effort and never fails the call (username_applied / username_status report the outcome). FREE ACCESS IN THE SAME CALL (apps that give affiliates the paid app free): `app_email` is the email the person is signed in with INSIDE the app, which free access matches on (null = the enroll email; left out = the stored one stays). It is a sync, not a decision: send it on every call and it keeps itself current; it never moves free access that already reached them (it follows the person), never takes free access away, never takes the row off the app’s automatic setting, and replaces an address the owner typed in the dashboard. Giving it to a DIFFERENT person is set_affiliate_free_access with app_email, which moves it. `free_access` is this person’s free access WHEN THE CALL MAKES THEM AN AFFILIATE (new, or a rejoin): left out or null = the app’s automatic setting (free_access_auto); { duration: "none" } = none (the API’s false); { duration, product_id?, entitlement_id? } = that length, as the owner’s own choice for this person (the automatic setting leaves it alone). Ignored for someone already an affiliate, the owner’s own link, a banned person, or someone who already has free access. It is given just after the answer, so read the result from free_access on a later get_affiliate. Usual use: { email, app_email } every time the person opens the affiliate screen, plus free_access only when the app has its own rules. Requires a read_write key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| name | string | Optional display name used if the account is created. Also names their auto-created business, and takes priority over username for both |
| email* | string | The user’s email address |
| username | string | Optional handle for the referral link (/r/{business}/{username}), 3-30 chars of a-z 0-9 . _ - with no `name` alongside it, also becomes their display name (dots/underscores read as spaces: jane.doe becomes "Jane Doe"). let the person type it, do not invent one. Applies ONLY when this call creates the account; an email that already has an Affiliateo account keeps its handle and reports username_status: "account_exists". Never fails the enrollment: taken/invalid/reserved fall back to a random handle, and username_status says which. If it is not "applied", the person got a different handle, which they can change at affiliateo.com. |
| app_email | string | Optional. The email this person is signed in with INSIDE the app, which free access matches on; null = the enroll email; left out = the stored one stays. Send it on every call: it keeps itself current and never moves free access that already reached them |
| free_access | object | Optional. This person’s free access when this call makes them an affiliate (new, or a rejoin). Left out or null = the app’s automatic setting; { "duration": "none" } = none; otherwise that length (and plan or access level), as the owner’s own choice for them. Ignored for someone already an affiliate (set_affiliate_free_access changes that) |
| business_slug* | string |
Finds a business’s customers by any id they are known by, exact match: Affiliateo’s customer id, the app’s own user id (what the app’s sign-in passed to identify), a RevenueCat app user id, or a store or processor id from one of their sales (a Stripe customer, a subscription, a purchase). Up to 20, most recently seen first: [{ id, app_id, user_id, last_seen }]; get_customer reads one. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| q* | string | The id, 3 to 255 characters |
| app | string | all (default), one app id, or several separated by commas |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"q"
],
"properties": {
"q": {
"type": "string",
"description": "The id, 3 to 255 characters"
},
"app": {
"type": "string",
"description": "all (default), one app id, or several separated by commas"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Who sees one ad, in one shape on all six networks: targeting { devices: computer | iphone | android (empty = every device; iPads count as iphone), ageMin, ageMax, gender: all | men | women, minOsVersion: the oldest phone software it reaches, { "iphone": "26.0" } or { "android": "10.0" }, {} for every version }, plus support (which device choices, ages and genders THIS ad can take: TikTok and Snapchat run on phones, Apple on iPhones and iPads, Google Search, Performance Max and Shopping cannot tell iPhone from Android, Google App campaigns and Meta Advantage+ take nothing, an app ad is fixed to its store; minOsVersionPhones lists the phones a version can be set for here, empty for none, with minOsVersionNote saying why), mixed (Google: its ad groups disagree) and notes. id is the Meta ad set, Snapchat ad squad, TikTok ad group (manual or Smart+), X line item, Apple ad group (pass campaign_id too) or Google CAMPAIGN: the same fields set_ad_basic_targeting changes.
| Argument | Type | Description |
|---|---|---|
| id* | string | The ad set, ad squad, ad group, line item or (Google) campaign id. |
| account | string | Ad account id, when several are connected. |
| network* | string | |
| campaign_id | string | Apple ad groups only: their campaign. |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"network",
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The ad set, ad squad, ad group, line item or (Google) campaign id."
},
"account": {
"type": "string",
"description": "Ad account id, when several are connected."
},
"network": {
"enum": [
"meta",
"google",
"tiktok",
"apple_search_ads",
"x",
"snapchat"
],
"type": "string"
},
"campaign_id": {
"type": "string",
"description": "Apple ad groups only: their campaign."
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Ad account money state on THREE networks, which answer three different questions because they bill in three different ways - the shapes are deliberately not flattened into one. meta: balance, lifetime spend, spend cap, prepaid flag, payment method label. google: billing setups, account budgets, and that month’s invoices when invoice_year + invoice_month are passed together. There is no Google "balance" and inventing one would state a number Google never gives: an account either pays by card, where there is nothing to read, or is invoiced monthly. An INFINITE spending limit comes back as null and NEVER 0, because Google populates that field only when the limit is finite and reading a missing value as zero renders an unlimited budget as a 0.00 cap. snapchat: funding sources and billing centres, both ORGANIZATION-scoped rather than ad-account scoped - and this is the tool that answers "the campaigns look fine, why did the ads stop": a funding source that has moved to SPENT or EXPIRED halts delivery on every campaign it funds, with no error reported on any campaign, ad squad or ad. TikTok’s balances are a different path (call_api on …/ads/balance, which is Business Center scoped) and Apple publishes no billing API at all. X HAS A FUNDING OBJECT AND NO MONEY READING ON IT: an X funding instrument carries a credit limit and a funded amount and NEVER a spend-to-date or an outstanding balance, so there is no X BALANCE to report and nothing to compute from those two that would be true. The instruments themselves are list_ad_lookups type=funding_instrument, and X spend is in get_ad_stats and get_ad_breakdown like every other network’s. WHAT X DOES ANSWER HERE IS SETTINGS, and they are on this path rather than a route of their own because X’s tax settings are a billing IDENTITY rather than a preferences page. Pass resource tax_settings for the tax id, tax category, bill-to party, invoice jurisdiction and the postal address an invoice is raised against (plus the ten client_address_* fields X says to set when an agency owns the account; note X’s READ calls one field address_company where its WRITE calls it addressName, same field, both X’s), or user_settings for where X sends notifications on a seat. WITHOUT user_id THAT IS THE AUTHENTICATED SEAT, meaning whoever’s token connected the account rather than whoever the caller had in mind. resource is REQUIRED on X rather than defaulted, because the two answer unrelated questions. The matching WRITES are a PATCH through call_api: resource account renames the ad account in ads.x.com itself, and tax_settings leaves any omitted field ALONE rather than clearing it. Read-only on every network: no ads API, ours or theirs, can add funds or touch a payment method. Meta’s account spend cap is the single money control that exists, and it is a PATCH through call_api rather than a read here.
| Argument | Type | Description |
|---|---|---|
| account | string | Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account. |
| network | string | Default meta |
| user_id | string | X, with resource user_settings: read another seat instead of the authenticated one. |
| resource | string | X only, and required there: tax_settings is the identity X raises invoices against, user_settings is where X sends notifications. There is no X balance to ask for. |
| invoice_year | number | Google only, and only together with invoice_month. |
| business_slug* | string | Business slug, from list_businesses |
| invoice_month | number | Google only, 1-12, and only together with invoice_year. |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"account": {
"type": "string",
"description": "Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account."
},
"network": {
"enum": [
"meta",
"google",
"tiktok",
"apple_search_ads",
"x",
"snapchat"
],
"type": "string",
"description": "Default meta"
},
"user_id": {
"type": "string",
"description": "X, with resource user_settings: read another seat instead of the authenticated one."
},
"resource": {
"enum": [
"tax_settings",
"user_settings"
],
"type": "string",
"description": "X only, and required there: tax_settings is the identity X raises invoices against, user_settings is where X sends notifications. There is no X balance to ask for."
},
"invoice_year": {
"type": "number",
"description": "Google only, and only together with invoice_month."
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"invoice_month": {
"type": "number",
"description": "Google only, 1-12, and only together with invoice_year."
}
}
}Split one network’s spend and delivery by ONE dimension over a date range - the tool that answers "which placement / device / age group / hour is wasting the budget", which get_ad_stats cannot, because ad stats are flat daily totals with the day as their only segment. Every bucket is { key, label, spendMicros, impressions, clicks, conversions }: `key` is the NETWORK’s own value (that is what joins back to targeting, and what an exclusion takes), `label` is the human string and is lossy, spendMicros is USD micros on all six networks, and conversions is null - never 0 - on a pair the network refuses conversion metrics for. WITH NO dimension IT RETURNS THE CATALOGUE: every dimension every network has, each network’s own spelling, and whether it can be answered today. Answerable now, per network - meta: age, gender, country, region, metro, device, publisher, placement, hour_of_day, product, frequency, asset. google: age, gender, country, region, city, metro, device, publisher, placement, hour_of_day, day_of_week, product. tiktok: age, gender, country, platform, network_type, language, interest, publisher. apple_search_ads: age, gender, country, region, city, device. x: age, gender, platform, metro. snapchat: age, gender, country, region, metro, platform, interest, device_make. A dimension the network does not have is a 400 that NAMES the networks that do; one it has but nobody has built yet is a 501 saying so. Neither is an empty bucket list, because an empty list reads to an owner as "your ads reached nobody" and is the one answer this tool must never give by accident. ONE dimension per call: all six networks restrict combinations, and a pair would produce a bucket per combination against a shape that has one key. X is the strictest of them and says so in its own terms: its segmented reports run only as ASYNCHRONOUS jobs, over 45 days rather than 90, and X publishes NO multi-segmentation at all. THE WHOLE AD ACCOUNT BY DEFAULT, OR ONE OBJECT: four ids in `params` name one, and they are params.campaignId, params.adGroupId, params.assetGroupId (Google Performance Max only) and params.adId. With none of the four it answers for the ad account, exactly as before. Several may travel TOGETHER when they chain (a campaign id beside an ad group id is one question narrowed twice, and two networks cannot build the call without both halves); adGroupId beside assetGroupId is refused with a 400 naming both, because a Performance Max campaign has no ad groups and an ordinary one has no asset groups, so neither contains the other. The response names the DEEPEST level in `scope` (account, campaign, adgroup, assetgroup or ad), the object in `scopeId`, and echoes every id back under its own parameter name. `scopeVerified` IS THE DIFFERENCE BETWEEN A REPORT AND A PROBE on a scoped number. It is present on every scoped answer. true means a live call has actually answered this network at this level. false means the level is WIRED AND UNPROVEN: the request really is sent, the scope really is checked against the ids the network sends BACK, and nobody has ever recorded one live answer at that level, which `scopeNote` says in a sentence on the response. Proven today are the ad account everywhere and one campaign on meta, google, tiktok and snapchat. Attempted and unproven today are one ad group and one ad on those same four, one asset group on google, and one CAMPAIGN on apple_search_ads, whose scope has never been called because the key it was tried with would not parse. An unverified level is not a settled split. A level a network neither serves nor attempts is a 501 naming the level and the parameter, never the account-wide numbers under a narrower id, which would be a wrong number wearing a right label and, unlike an error, has no symptom. Everything below campaign on apple_search_ads is refused that way. The catalogue call takes the same four ids: each entry gains `scopeLevel` and `scopeState` (served, probe or refused), a refused level turns every dimension blocked with the reason, and the `scope` object carries each network’s `levels` and `probe` lists, with `probe` always present so an empty one is a fact rather than a missing key. A probe keeps status "available", since it IS answerable; `scopeVerified` is the field that says it is unchecked. A SCOPED CALL THAT CANNOT BE BUILT REFUSES IN WORDS AND NEVER RETURNS AN EMPTY BUCKET LIST: an adGroupId with no campaignId on snapchat (the ad squad split rides the campaign stats path); a Google age, gender, geo or product split asked about an asset group or an ad, since those four live in their own reports, which carry an ad group id and no ad or asset group id, so the refusal names the report, the level to ask at instead and the dimensions that DO reach that level (device, publisher, placement, hour_of_day and day_of_week, the five plain segments, which reach every level); and a TikTok adId from the Upgraded Smart+ id space, checked before it is sent because the wrong filter matches nothing and answers with an empty report. A malformed id is a 400 before any network call, all four checked identically, and on Google the id is the LAST SEGMENT of the resource name it prints ("customers/8249011858/campaigns/456" means 456). Fetched live from the network, never from stored stats (sync_ad_stats does not affect it), and for the same reason BUCKET TOTALS DO NOT ADD UP to get_ad_stats totals: privacy suppression, unknown buckets and different restatement schedules all cut into them, so the two do not reconcile, and a bucket is not a basis for an amount of money. The window defaults to the last 30 days and is clamped to the network’s own ceiling (Apple 89 days, Meta and Google 90), which the response reports back in `window`.
| Argument | Type | Description |
|---|---|---|
| to | string | YYYY-MM-DD (default: today UTC) |
| from | string | YYYY-MM-DD (default: 29 days before to) |
| params | object | Extra parameters a specific breakdown declares, forwarded as query params - e.g. Meta’s asset dimension needs { "assetType": "image" } (Meta ships eight separate creative-asset breakdowns) and Meta’s hour_of_day takes { "timeZone": "audience" }. The catalogue call lists each one’s params, and a missing required param is refused before the network is called. The four route-level SCOPE ids ride here too, namely { "campaignId": "…" }, { "adGroupId": "…" }, { "assetGroupId": "…" } and { "adId": "…" }, and they are how a split covers ONE object instead of the whole ad account. They may be sent together when they chain (campaign, then ad group, then ad); an ad group id beside an asset group id is two questions and is refused. `scopeVerified` on the answer says whether the level is proven: today it is true only at campaign level on meta, google, tiktok and snapchat, and false on every other level any network will attempt. |
| account | string | Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account. |
| network | string | Required together with dimension. Omit BOTH to list every network’s breakdowns. |
| dimension | string | One dimension (see the menu in this tool’s description). Omit for the catalogue. |
| business_slug* | string | Business slug, from list_businesses |
The leads a TikTok Lead Generation campaign has collected, and the Instant Forms themselves. This closes the half of lead ads that was missing: this product could CREATE lead campaigns and had no way to read back a single lead, so an owner ran the campaign here and then went to TikTok Ads Manager to see what it caught. CALL IT WITH NO page_id FIRST: that lists the Instant Forms on the ad account. It needs no special permission - it is also where an ad’s page_id comes from, so use it instead of asking the owner to paste an id out of Ads Manager. lead_source IS REQUIRED ON THE TWO LEAD READS. TikTok requires it and takes exactly two values: INSTANT_FORM (which also needs page_id) and DIRECT_MESSAGE (which takes no page_id and reads leads collected in TikTok DMs - a whole second source, so an account with no Instant Forms may still have leads). THERE IS NO PAGING: TikTok ignores page and page_size on this endpoint and publishes no list call, so one call returns everything there is. optional start_time/end_time still filter. resource="fields" returns the form’s QUESTIONS as plain strings plus the form’s own name and public URL: the full roster of questions, including the ones a lead left blank. The answers are already keyed by those same names. THE "Lead Management" SCOPE IS GRANTED as of 2026-08-05, verified against the live API. A 403 naming the scope on some other connection has two steps behind it: the scope is requested on the app in TikTok’s developer portal, and after a grant that business must disconnect and reconnect TikTok once, because scopes are fixed into the access token when the owner approves. Different arguments do not change it, and it is not a bug on the owner’s side. TikTok only. Meta lead forms need the leads_retrieval scope App Review declined; Google lead forms this product does LAUNCH (a LEAD_FORM asset built in the campaign mutate) and nothing here reads a submitted lead back from one, which is our gap rather than a fact about Google; Snapchat issues lead-form access by hand per advertiser; Apple Search Ads has no lead object at all; and X has no lead surface in its Ads API. X Ads API v12 publishes no lead objective, no lead card and no endpoint that hands a submitted lead back, whatever X’s own product marketing says about lead ads returning in August 2026, so launch_ad_campaign refuses goal=leads on X and …/ads/leads?network=x answers 501, whatever the arguments.
| Argument | Type | Description |
|---|---|---|
| page | integer | 1-based. Default 1. |
| account | string | Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account. |
| page_id | string | The Instant Form. Omit to list the forms and their ids. |
| end_time | string | Only leads submitted at or before this time. |
| resource | string | "fields" for the form’s questions. Defaults to "leads" when page_id is given and "forms" when it is not. |
| page_size | integer | 1–100, default 50 |
| start_time | string | Only leads submitted at or after this time. |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"page": {
"type": "integer",
"description": "1-based. Default 1."
},
"account": {
"type": "string",
"description": "Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account."
},
"page_id": {
"type": "string",
"description": "The Instant Form. Omit to list the forms and their ids."
},
"end_time": {
"type": "string",
"description": "Only leads submitted at or before this time."
},
"resource": {
"enum": [
"forms",
"fields",
"leads"
],
"type": "string",
"description": "\"fields\" for the form’s questions. Defaults to \"leads\" when page_id is given and \"forms\" when it is not."
},
"page_size": {
"type": "integer",
"description": "1–100, default 50"
},
"start_time": {
"type": "string",
"description": "Only leads submitted at or after this time."
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Aggregated ad performance (spend, clicks, installs, revenue, ROAS) by campaign/adgroup/ad for one network over a date range (default: the last 30 days). Spend and revenue are micros (1/1,000,000 currency unit); roas is revenue/spend and null while attributed revenue isn’t ready. CUSTOMERS are the PEOPLE who paid money that still stands, counted once across their devices and all time: a free trial start, a $0 row, a free grant or a sale refunded in full makes nobody a customer, a trial that turned paid does; trials is the people who started a free trial, all time (a trial that turned paid is in both), EXCEPT on apple_search_ads, where trials counts the trials started IN THE WINDOW on every level, like a campaign funnel. CAC is spendMicros / customers and LTV per customer lifetimeRevenueMicros / customers, EXCEPT on apple_search_ads: there campaign, adgroup and keyword rows and totals carry appleEconomics (the install cohort of the window: downloads, trials, direct, lifetime, paying, estCacMicros = spend / paying, estLtvMicros = the 12-month forecast per paying person, ltvToCac and band, stillCounting, lowData), and those are the CAC and LTV to quote, because both sides count the same window; the keyword x country table behind them is get_apple_keyword_economics. APP FUNNEL, OVER THE WINDOW: campaign rows and totals carry funnel (null on a campaign that belongs to none of the business’s apps): downloads (phones first opened from the campaign, Affiliateo’s own count beside the network’s installs), trials started, trialsConverted, trialsPending, paying (people whose FIRST payment fell in the window), paidAfterTrial, trialedWithin7Days / paidWithin30Days (the install cohort: of the window’s downloads, those that started a free trial within 7 days of first open, and whose person paid for the first time within 30), revenueD7Micros / revenueD30Micros / revenueToDateMicros (what the window’s downloads paid within 7 and 30 days of installing, and so far; d7Complete / d30Complete false while the youngest download has not had its days, so the figure can still grow) and paybackDays (days after install until they paid back the spend, null until then). Cost per trial = spendMicros / funnel.trials, cost per paying customer = spendMicros / funnel.paying, trial rate = trialedWithin7Days / downloads and paid rate = paidWithin30Days / downloads (so far while d7Complete / d30Complete are false), day 7 ROAS = revenueD7Micros / spendMicros. ROAS BY DAY: funnel.revenueWithinDaysMicros and funnel.completeWithinDays are keyed "1", "2", "4", "7" and "30": what the window’s downloads paid within that many days of first open, and whether every download has had them (day N ROAS = revenueWithinDaysMicros[N] / spendMicros, so far while completeWithinDays[N] is false). On apple_search_ads, adgroup and keyword rows carry cohort { downloads, downloadsMeasured, revenueWithinDaysMicros, completeWithinDays }, the same for the installs Apple credited to that ad group or keyword (a Search Match install counts on its ad group only); null where the campaign belongs to no app. ONE LIMIT ON IPHONE: an app install ad on Meta, TikTok or Snapchat links straight to the App Store, which tells the app nothing about the ad, so its funnel stays null and its sales read as organic (only the network’s own installs show); Apple Ads campaigns fill in, and so can a campaign that sends people to the business’s website first, when they install within 7 days. And on Meta, trials and purchases show in Meta’s own reports for iPhone app campaigns only after the owner lists those events in Meta Events Manager (the dataset > Settings > App > Apple’s SKAdNetwork > Configure events); until then Meta reports installs only. app= narrows everything to one of the business’s apps (the campaigns whose downloads or sales went there, Apple Ads also by its app id); app_funnel lists the apps and each app’s part. funnel.trialsCanceled is the trials whose person turned renewal off before the first charge (turned-off-renewal rate = trialsCanceled / trials; they keep their free days until the trial ends). funnel.downloadsMeasured false: none of the campaign’s apps has the Affiliateo SDK, so nothing ties an install or a sale to the ad and downloads, the rates, day 7 / day 30 ROAS and payback are unknown (null, never 0). click_to_install_rate (every row and totals) is installs / clicks in percent, both the network’s own: installs on meta and apple_search_ads (taps there), the event the campaign optimises for on tiktok and google, purchases on snapchat, the web event tag on x, so off meta and apple it is a click to conversion rate. AFFILIATE CAMPAIGNS: a campaign whose people went through an affiliate link of THIS business’s owner and bought at another business carries affiliateSales { merchants, commissionMicros, lifetimeCommissionMicros, saleValueMicros, lifetimeSaleValueMicros, sales } on its campaign row (absent on every other row). The commission the owner earned is already in revenueMicros, so roas there is commission over spend; saleValueMicros is what the buyers paid, context only and never revenue. Each row also carries the network’s OWN claimed numbers (reportedConversions / reportedRevenueMicros / reported_roas, from its pixel or conversion tracking, self-reported and unverified) next to the verified ones. SIGNUPS: every row and the totals carry signups, the network’s own sign-up count, for campaigns aimed at signups (conversionEvent=signup on launch_ad_campaign). It is filled on meta and snapchat and null elsewhere, because google and tiktok already count the event a campaign aims at in installs. It is never part of installs or reportedConversions. ON NETWORK=X THOSE TWO HALVES COME APART AND ONLY ONE OF THEM IS USUALLY THERE. reportedConversions is X’s own conversion count (web purchases on a site campaign, app installs on an app one) and is real on every synced day. reportedRevenueMicros is X’s sale_amount, which the nightly sync stores only as a whole-window series with no per-day figure on the row, so it reads 0 and reported_roas reads null on any row synced over a multi-day window, which is every nightly one. A null reported_roas on X is THE VALUE NOT BEING RECOVERABLE FROM THE STORED ROW, never a campaign that sold nothing; reportedConversions beside it carries whether X converted. Apple never reports revenue at all, on any row, because Apple Ads has no money-in metric. Serves the last synced data; sync_ad_stats refreshes it. These are FLAT DAILY TOTALS with the day as their only segment: they cannot be split by age, geo, device, placement or hour (get_ad_breakdown returns those splits). GOOGLE ONLY, on totals and every row: auctionShare says how much of the auction was won and WHY the rest was missed. auctionShare.limitedBy names the cause: "rank" means the bid or ad quality was too low to enter the auction (a higher bid fixes it), "budget" means the daily budget ran out (a higher budget fixes it). The two have OPPOSITE fixes. Ratios are 0-1. auctionShare is null on meta, tiktok, snapchat and x, which publish no equivalent and never will (auction share is a search-results idea, not a feed one, and X publishes no auction or impression share metric of any kind); Apple has one as a separate async report at …/ads/impression-share. It is ALSO null for the most recent 1-2 days on Google, because the estimate lags: that is a pending number, not a campaign that reached nobody. approximate:true means a day was censored: Google reports anything under 10% as exactly 0.0999 and over 90% as 0.9001, so the true share is LOWER and the true loss HIGHER than shown; a censored value is a bound, not a measurement. GOOGLE KEYWORD ROWS ONLY: qualityScore carries Google’s 1-10 rating for that keyword (score) plus three buckets that name WHICH thing to fix, each BELOW_AVERAGE / AVERAGE / ABOVE_AVERAGE: expectedCtr (will anyone click), adRelevance (does the wording answer the search) and landingPage (is the page worth arriving on), plus ratedDays, the days of the window that carried a rating. It is null on every campaign, adgroup and ad row, null on all five other networks, which publish nothing like it, and null on a Google keyword Google has not rated yet (too few exactly matching searches). THAT NULL IS NOT A ZERO AND NOT A BAD SCORE, it is the absence of a rating (not rated, which is neither 0 nor 1/10). Ad Rank is roughly bid multiplied by quality, so a campaign whose auctionShare.limitedBy is "rank" is NOT automatically a campaign that needs a higher bid: a low quality score means the cheaper fix is ad relevance and the landing page, and it is also inflating what every click already costs, because an advertiser pays only what it takes to clear Google’s threshold and beat the advertiser below them and better quality lowers that amount, so a higher bid alone is the expensive half of the fix. IT IS NEVER AVERAGED: a 1-10 rank has no mean, so a window keeps ONE WHOLE DAY, the most recent day Google actually rated, which is what Google’s own reports show for a date range. An unrated day never displaces a rated one however new it is, because a blank on the newest row is Google not having re-graded rather than the grade being withdrawn. ON A TOTALS ROW qualityScore IS ALWAYS null, on every network and every business, and that is deliberate rather than missing: there is nothing to combine, because a grade has no denominator to add up the way impression share does, and an impression-weighted mean would hand the whole account’s grade to whichever keyword happened to get the traffic. It means something per keyword only, the one row that names something to change. score can also be null while the three buckets are filled, because Google keeps grading a keyword it has stopped issuing a number for, and the buckets are the actionable half. adRelevance and landingPage began being collected when this shipped, so older days carry only score and expectedCtr and the other two fill in as the nightly sync re-pulls its window. META AD ROWS ONLY: creativeRating carries Meta’s rank of that ad against the other ads competing for the same audience, split three ways so it names WHICH part to fix: quality (the creative itself), engagement (whether people interact once they have seen it) and conversion (whether that interaction turns into anything), plus ratedDays, the days of the window that carried a real band, and ratedOn, the day the shown verdict came from. Each leg is BELOW_AVERAGE_10 / BELOW_AVERAGE_20 / BELOW_AVERAGE_35 / AVERAGE / ABOVE_AVERAGE, worst first, OR the literal "UNKNOWN", OR null, AND THOSE LAST TWO ARE DIFFERENT ANSWERS. "UNKNOWN" IS NOT AN ABSENCE: it is Meta’s own word for having SEEN the ad and declining to rank it because the ad is under Meta’s impression threshold, which on a new ad is every row and means WAIT rather than fix. null means the question was never answered at all: another network, an older row, or a refused field. An "UNKNOWN" is not a dash, a 0 or a bad grade, and a null is not a verdict. creativeRating is null on campaign and adgroup rows and null on the five other networks: Google’s adStrength is a checklist on an ad’s own completeness rather than a rank against other advertisers and lives on the campaign tree, TikTok publishes no per-ad grade at all, and Snapchat, Apple and X publish nothing of this shape. IT IS AN ORDINAL, SO IT IS NEVER AVERAGED AND NEVER COMBINED: a window keeps ONE WHOLE DAY, the most recent verdict, which is what Ads Manager shows for a date range, and a real band beats an "UNKNOWN" however new that "UNKNOWN" is, because Meta stops ranking an ad whose delivery has dried up. ON A TOTALS ROW creativeRating IS ALWAYS null, for qualityScore’s reason: an ad account does not have a creative ranking, there is no denominator to add up and no honest weight to reach for, so any account-wide band would be one Meta never issued. TIKTOK ONLY, ON EVERY LEVEL AND ON TOTALS: tiktokEngagement is what people did with the ad after they saw it. likes, comments, shares, follows and profileVisits are the five itemised interactions, engagements is TikTok’s OWN total, engagementRate is a PERCENT 0 to 100 (matching TikTok Ads Manager, NOT the 0-1 ratios auctionShare uses: the unit follows the network), and impressions and days are the context behind them. engagements is NOT the sum of the five legs, because TikTok counts at least one interaction it does not break out, so the sum of the parts under-reports it. EVERY RATE CARRIES ITS OWN DENOMINATOR AND impressions IS NOT IT: a rate is built only from the days that reported its own numerator AND reported their own impressions, so engagementRate is not engagements ÷ impressions. The two agree only while TikTok reported every field on every day, which is the ordinary case and is exactly why the arithmetic looks like it works, and nothing in the payload names the day that broke it. Each leg is null when TikTok never reported it, which is a different answer from a reported 0: a 0 is a measured fact about the ad. BOTH impressions FIELDS ARE number | null ON THAT SAME RULE: null means no day behind those counts ever reported its own impressions, so the size of the window is unknown while the counts stay measured, and a day that reported a genuine 0 still comes back as 0; a null is not a 0. It is null on the five other networks. TikTok reports these fields at campaign, adgroup and ad level alike, so a campaign row carries its own real numbers, and a campaign plus its own adgroups or its own ads counts the same likes two or three times. UNLIKE qualityScore AND creativeRating, tiktokEngagement ON TOTALS IS A REAL COMBINED NUMBER rather than a declared null, and that is the whole difference: those two are ordinals with no denominator, while likes, shares and video plays are COUNTS that add across days and across entities exactly the way impressions adds, so the account-level total is the honest figure. THE VIDEO HALF IS null WHEN NO VIDEO PLAYED, AND THAT IS NOT THE SAME AS ZERO PLAYS. RENDERING IT AS 0% REPORTS A CATASTROPHIC HOOK RATE ON AN IMAGE AD. tiktokEngagement.video is an object ONLY when a video actually ran, and videoState says which of two reasons it is missing for. "no_video" is MEASURED: TikTok reported the play counter and it stayed at zero against real impressions, which is exactly what an image or carousel ad looks like, so there is no hook rate and no completion curve to state rather than a row of zeros. "unknown" is NOT measured: the play counter was absent from the payload, or nothing was delivered at all, in which case zero plays proves nothing either way. videoState applies to every video number. When the block is there it is a funnel: plays, watched2s, watched6s, then the quartiles p25, p50, p75 and p100, each of them { views, rate }, plus averagePlaySeconds and the block’s own impressions and days. THE HOOK RATE IS watched2s.rate, 2-second views over the impressions behind them. Every rate is divided by the impressions of the days that reported THAT mark and deliberately not by the window’s impressions, so an image ad in the same account cannot dilute a video ad’s hook rate. THE BLOCK’S OWN impressions IS CONTEXT FOR THE BLOCK RATHER THAN THE DIVISOR ITSELF, so views ÷ video.impressions neither checks nor rebuilds a rate: views counts every day the mark was reported, while the rate counts only the days that also reported their own impressions. averagePlaySeconds is the mean seconds watched per play, weighted by each day’s plays, and it is reconstructed rather than reported, because TikTok publishes the daily mean and not a total. The funnel does NOT have to fall: the 2 and 6 second marks are absolute durations while the quartiles are relative to the video’s own length, so on anything shorter than 24 seconds p25 can legitimately exceed watched6s, and that is a fact about the creative rather than a bad number. X ONLY, AND OFF UNLESS ASKED FOR: reach="campaign" (or "funding_instrument") adds a top-level reach block saying how many DIFFERENT people each entity reached over this window. Every other network reports a de-duplicated headcount on the daily stat row and it already rides by_level[].reach; X publishes no reach metric in any stats group at all and answers it from two SEPARATE endpoints, so this is a LIVE request rather than a stored column and asking for it on every call would put one on the busiest ads read in the product. Passing it on any network but x is a 400 rather than an empty block. THE FIGURE IS NOT A COLUMN: a by_level reach is a per-DAY number and X’s is a per-WINDOW number, so it lives in its own block with the window it was measured over attached to every reading. Two readings do not add up to a total: two campaigns overlap by an amount nobody records, so a sum counts the same person twice. The account-wide answer is reach="funding_instrument", because X de-duplicates everything under one payment method in a single answer. THAT LEVEL REQUIRES reach_ids, and the refusal is ours rather than X’s: nothing in this response carries a funding instrument id, because they sit ABOVE the campaign; list_ad_lookups with type=funding_instrument returns them. ABSENT IS NOT ZERO: a campaign X answered 0 for is a measured zero in readings, while a campaign X said nothing about is listed in unanswered: unmeasured, not nobody reached.
| Argument | Type | Description |
|---|---|---|
| app | string | One of the business’s app ids: only the campaigns that belong to it, with its part of each funnel |
| end | string | YYYY-MM-DD (default: today UTC) |
| reach | string | X ONLY. Adds the de-duplicated headcount block for this window. Any other network is a 400, because theirs is already on by_level[].reach. Costs one live X request per twenty entities. |
| start | string | YYYY-MM-DD (default: 29 days before end) |
| account | string | Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account. |
| network | string | Default meta |
| reach_ids | string | With reach: comma-separated campaign or funding-instrument ids, to ask about a subset. X caps its own id list at 20 and longer lists are chunked rather than truncated. |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"app": {
"type": "string",
"description": "One of the business’s app ids: only the campaigns that belong to it, with its part of each funnel"
},
"end": {
"type": "string",
"description": "YYYY-MM-DD (default: today UTC)"
},
"reach": {
"enum": [
"campaign",
"funding_instrument"
],
"type": "string",
"description": "X ONLY. Adds the de-duplicated headcount block for this window. Any other network is a 400, because theirs is already on by_level[].reach. Costs one live X request per twenty entities."
},
"start": {
"type": "string",
"description": "YYYY-MM-DD (default: 29 days before end)"
},
"account": {
"type": "string",
"description": "Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account."
},
"network": {
"enum": [
"meta",
"google",
"tiktok",
"apple_search_ads",
"x",
"snapchat"
],
"type": "string",
"description": "Default meta"
},
"reach_ids": {
"type": "string",
"description": "With reach: comma-separated campaign or funding-instrument ids, to ask about a subset. X caps its own id list at 20 and longer lists are chunked rather than truncated."
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The tracking tags for campaigns built in the network’s OWN console (campaigns launched through Affiliateo are tagged already): params is the string to paste, field what the network calls the place it goes, where says where that is. Without it a hand-built campaign’s revenue never lands on a campaign row. Leave network out for all six; apple_search_ads answers params null because it sends people to the App Store.
| Argument | Type | Description |
|---|---|---|
| network | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"network": {
"enum": [
"meta",
"google",
"tiktok",
"apple_search_ads",
"x",
"snapchat"
],
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}One affiliate’s id and user_id (their account id, what update_live_chat_settings’s picked_user_ids takes), referral links, lifetime stats (clicks, conversions, renewals, revenue and commission in cents), payout buckets (pending/payable/paid/refunded cents; per-click for web_traffic, with a click_payout object of CPC + approved/payable clicks), and a payout readiness object ({ identity_verified, payouts_enabled }, also on list rows) for gating Verify / Cash out buttons. Identify by email OR ref_code (exactly one). include_breakdown adds click sources + countries for the last 90 days; from/to (YYYY-MM-DD) adds a windowed click count. A `free_access` object (null on apps with no way to give free access) says whether the owner gave this affiliate the paid app free: enabled, mode (revenuecat or app_check), pending + waiting (customer_not_found or ambiguous_email: switched on, not landed yet), entitlement_id, product_id, until (null = no end), app_email, granted_at, expires_at. Change it with set_affiliate_free_access. A `recurring` object gives what the referrals pay every MONTH: mrr_cents (the COMMISSION per month, never the subscription value the customers pay), arr_cents, subscribers, trialing (referrals inside a free trial RIGHT NOW - outside subscribers and outside mrr_cents because they have paid nothing, and it FALLS when a trial ends whichever way it ended), not_renewing (auto-renew off, still paying, still counted inside subscribers), churned, churn_rate and unknown_interval. churn_rate is a percentage and is NULL rather than 0 until five people have ever subscribed - null means “not enough history”, never “no churn”. A non-zero unknown_interval means some live subscriptions have an unreadable billing period, so mrr_cents is a FLOOR and not a total. It is a RATE at the subscription set as of today, so from/to does not and cannot filter it. It rides every single read; on list_affiliates it is opt-in. CACHING: links.qr is immutable (a short code never changes, so it ships max-age=31536000). The numbers in this response change and are not cacheable; the links ride the same payload. The rate limit is per API key, shared by every user of an integration built on that key.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end, YYYY-MM-DD (with from) |
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| from | string | Window start, YYYY-MM-DD (with to) |
| string | Look up by the affiliate’s email | |
| ref_code | string | Look up by referral code instead of email |
| business_slug* | string | Business slug, from list_businesses |
| include_breakdown | boolean | Add click sources + countries (last 90 days) |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"to": {
"type": "string",
"description": "Window end, YYYY-MM-DD (with from)"
},
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"from": {
"type": "string",
"description": "Window start, YYYY-MM-DD (with to)"
},
"email": {
"type": "string",
"description": "Look up by the affiliate’s email"
},
"ref_code": {
"type": "string",
"description": "Look up by referral code instead of email"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"include_breakdown": {
"type": "boolean",
"description": "Add click sources + countries (last 90 days)"
}
}
}For a business whose OWNER runs ads to their own affiliate links of OTHER businesses: where the sales those ads brought stand. When a merchant allows it (the share_ad_sales_with_affiliates setting of the Affiliate app the sale came through, see update_app), such a sale is sent to THIS business’s connected meta, tiktok, snapchat or google account as a website purchase with the owner’s commission as its value, so the campaign can learn. Answers applies (true when the owner promotes another business), programs (each Affiliate app they promote: name, slug, business, and whether it shares), per network last_30_days { delivered, waiting, not_sent, problems, delivered_value_cents, by_outcome } and latest_problem, and recent (the newest sends: merchant, campaign_id, value_cents, outcome, detail). not_sent counts sales that could never go (no click id from that network, a phone that refused ad tracking, the merchant stopped sharing); problems are things to fix (no pixel, no connection, a refusal, Google permission). The revenue of those campaigns is on get_ad_stats (affiliateSales on campaign rows). Owner key only.
| Argument | Type | Description |
|---|---|---|
| network | string | Leave out for all four |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"network": {
"enum": [
"meta",
"tiktok",
"snapchat",
"google"
],
"type": "string",
"description": "Leave out for all four"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Affiliate codes typed inside an app (a coupon code without the coupon: a buyer types an affiliate’s code in the owner’s app and that affiliate is credited, with no discount and no IP match). Returns the two switches, affiliate_codes_enabled and match_link_clicks (false = codes only), plus working (true once a code has reached Affiliateo from this app, so the app really has the box and the SDK is sending codes), last_code_at and installs_with_code. Turn the switches on or off with update_app. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The storefront affiliate program’s default: commission_rate and commission_type (percentage, or fixed dollars a sale), which every affiliate without a personal deal earns on a product or plan with no rate of its own, plus product_overrides: the range across the products and plans that set their own. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Commission info for one affiliate app: rate and type (with per-product rates, prices, approximate commission per sale and the side each sells on, rail web or mobile, for the app’s visible products), affiliate count, total paid out, status, and require_application (whether the app approves who joins: people request to join and the owner approves them, list_app_join_requests). A `rails` object says which sales the app actually bills - web (the merchant’s website), mobile (in-app purchases), or both - with the provider connected to each and the percent ceiling of each rail (70 on both: one limit for every sale). content_type does not say this: the affiliate type is always "affiliate_app" and says nothing about rails. For web_traffic apps commission is null and a click_payout object carries the per-click rate (cpc_cents) plus budget/remaining instead (exactly one of commission / click_payout is set). Also returns the full owner-facing settings object, the same fields update_app changes. It carries the closer commission (what whoever answers a customer in Live Chat earns when that customer buys): closer_bonus_type (percent or flat, null when off) and closer_bonus_rate, both changed with update_app; what closers earned is closer_commission_cents in get_app_summary. On budget apps (clipping, web_traffic, collab) that settings object carries payable_capacity_cents next to budget_cents/spent_cents: funding is free and the 1% platform fee is charged per payout out of the same budget, so budget_cents is gross and remaining budget alone overstates what a creator can be offered. payable_capacity_cents is the largest single payout the remainder still covers including its fee; budget minus spent overstates it.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}One report of what the dashboard’s Funnels page shows for an app, per call. report: overview (visitors, conversions, revenue_cents and session_avg_seconds for the window under `current` AND for the same length of time just before it under `previous`, plus online_now, and trial_cancel: the trials started whose person turned renewal off before the first charge, { current, previous: { trials, canceled, canceled_still_in_trial, rate, by_plan }, change_points }, and conversions: the Revenue app’s download_to_trial, trial_to_paid, download_to_paid and trial_to_cancel (with downloads, trials, trials_pending, new_paying) for the same window and the one before, change in points, with downloads_source and downloads_measured (false: the app has neither the Affiliateo SDK nor RevenueCat’s customer list, so its download rates are unknown, not 0); tracking-only apps ("Track your sales") have analytics too; a conversion is a purchase, a subscription or a free trial turning paid, never a trial start alone), timeseries (visitors, revenue_cents and conversions per bucket; bucket hour | day | week, chosen by the window’s length when left out), countries (visitors, conversions and revenue_cents per country, busiest first), pages (median and mean seconds spent on each web page and app screen, up to 200, each stay capped at max_dwell_seconds), time_to_convert (p50, p75, p90, p95 and mean seconds from a buyer’s first visit to paying, a free trial included, plus how many could not be timed), ghost_conversions (sales whose buyer left no visit in the window: a sign the tracking misses part of the journey) and platforms (ALL-TIME clicks and app-store sales split into ios, android and desktop; from/to are ignored). from/to take a date (YYYY-MM-DD, whole UTC days, to inclusive) or an exact ISO 8601 time (to exclusive); the default is the last 30 days and the longest window 731 days, because older events are deleted. Money is US dollars, the Revenue page’s rule (a sale’s dollar value, trials left out, refunds taken off); platforms still sums each sale’s own figure. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end: YYYY-MM-DD (inclusive) or an ISO 8601 time (exclusive) |
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| from | string | Window start: YYYY-MM-DD or an ISO 8601 time |
| bucket | string | timeseries only: the bucket size |
| report* | string | Which report (default overview) |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app",
"report"
],
"properties": {
"to": {
"type": "string",
"description": "Window end: YYYY-MM-DD (inclusive) or an ISO 8601 time (exclusive)"
},
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"from": {
"type": "string",
"description": "Window start: YYYY-MM-DD or an ISO 8601 time"
},
"bucket": {
"enum": [
"hour",
"day",
"week"
],
"type": "string",
"description": "timeseries only: the bucket size"
},
"report": {
"enum": [
"overview",
"timeseries",
"countries",
"pages",
"time_to_convert",
"ghost_conversions",
"platforms"
],
"type": "string",
"description": "Which report (default overview)"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The lines under the cards at the top of an affiliate app’s page, one number per period: clicks, sales, new_sales (first purchases, renewals left out), revenue_cents, earned_cents, closed (customers closed in Live Chat), trials_started and trial_conversions are what happened in each period; subscriptions, trials, mrr_cents and churned are how things stood at its end. Without email or ref_code it is the WHOLE PROGRAMME: every affiliate added together (never the owner’s own tracking link) plus every closer, and scope reads programme. With email or ref_code it is that ONE affiliate, exactly what they see on their own app page: what their link brought plus what they closed, and scope reads affiliate with their ref_code. This is how to draw one affiliate their own graphs inside a product. With affiliates (a list of ref_codes, or affiliate ids from list_affiliates, up to 50) it is THOSE AFFILIATES ADDED TOGETHER, each as they read their own cards: scope reads affiliates and ref_codes says who was counted (a name that is not an affiliate of the app is left out; none found is a 404). With scope own_link it is the OWNER’S OWN TRACKING LINK alone (the page’s "Your link"), which the programme never counts and which is never mixed with affiliates. Pass only one of: email or ref_code, affiliates, scope. earned_cents and mrr_cents are COMMISSION (what the owner pays out), not what customers pay; the one exception is scope own_link, where no commission exists: there mrr_cents is what the link’s subscribers pay, and earned_cents and closed are always 0. include_payouts adds payouts { pending_cents, payable_cents, paid_cents }: where the commission of the SAME people stands right now, links and closing together (the page’s Pending, Payable and Paid cards). Pending is earned and still in its waiting time, payable is what the next payout sends (net of take-backs, so it can be below zero), paid is what was already paid, since the start; no dates apply to it, and all three are 0 on scope own_link. from/to (YYYY-MM-DD) default to the last 28 days; resolution is day, week or month, at most 400 periods. Affiliate apps only. The whole app, ads and organic sales included, is get_revenue_chart; totals and payout buckets are get_app_summary.
| Argument | Type | Description |
|---|---|---|
| to | string | Last day, YYYY-MM-DD. Default: today |
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| from | string | First day, YYYY-MM-DD, or all (all time, from the app’s first click or sale). Default: 27 days before to |
| string | One affiliate, by the email they enrolled with (or pass ref_code) | |
| scope | string | own_link: the owner’s own tracking link alone. Default programme |
| ref_code | string | One affiliate, by their ref_code (or pass email) |
| affiliates | array | Several affiliates added together: their ref_codes (or affiliate ids), up to 50 |
| resolution | string | The size of a period. Default day |
| business_slug* | string | Business slug, from list_businesses |
| include_payouts | boolean | Also answer pending, payable and paid commission for the same people, as it stands now |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"to": {
"type": "string",
"description": "Last day, YYYY-MM-DD. Default: today"
},
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"from": {
"type": "string",
"description": "First day, YYYY-MM-DD, or all (all time, from the app’s first click or sale). Default: 27 days before to"
},
"email": {
"type": "string",
"description": "One affiliate, by the email they enrolled with (or pass ref_code)"
},
"scope": {
"enum": [
"programme",
"own_link"
],
"type": "string",
"description": "own_link: the owner’s own tracking link alone. Default programme"
},
"ref_code": {
"type": "string",
"description": "One affiliate, by their ref_code (or pass email)"
},
"affiliates": {
"type": "array",
"items": {
"type": "string"
},
"description": "Several affiliates added together: their ref_codes (or affiliate ids), up to 50"
},
"resolution": {
"enum": [
"day",
"week",
"month"
],
"type": "string",
"description": "The size of a period. Default day"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"include_payouts": {
"type": "boolean",
"description": "Also answer pending, payable and paid commission for the same people, as it stands now"
}
}
}The app’s whole affiliate program at a glance: affiliate counts, lifetime totals (clicks, conversions, renewals, revenue and commission in cents), and payout buckets (pending/payable/paid/refunded) summed across every affiliate (web_traffic apps report per-click earnings here). from/to (YYYY-MM-DD) adds the same numbers scoped to that date window; include_daily adds a per-day series ready for charting (window up to 366 days). Owner tracking links and organic (non-affiliate) sales are excluded, so the summary reconciles with list_affiliates. totals.closer_commission_cents (and window.closer_commission_cents with from/to) is what closers earned through the app’s Live Chat (the closer commission: closer_bonus_type + closer_bonus_rate in get_app’s settings, set with update_app), net of take-backs, kept apart so commission_cents still reconciles with list_affiliates. A `recurring` object gives what the referrals pay every MONTH: mrr_cents (the COMMISSION per month, never the subscription value the customers pay), arr_cents, subscribers, trialing (referrals inside a free trial RIGHT NOW - outside subscribers and outside mrr_cents because they have paid nothing, and it FALLS when a trial ends whichever way it ended), not_renewing (auto-renew off, still paying, still counted inside subscribers), churned, churn_rate and unknown_interval. churn_rate is a percentage and is NULL rather than 0 until five people have ever subscribed - null means “not enough history”, never “no churn”. A non-zero unknown_interval means some live subscriptions have an unreadable billing period, so mrr_cents is a FLOOR and not a total. It is a RATE at the subscription set as of today, so from/to does not and cannot filter it. Owner tracking links are dropped from it too, so it still sums to the roster.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end, YYYY-MM-DD (with from) |
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| from | string | Window start, YYYY-MM-DD (with to) |
| business_slug* | string | Business slug, from list_businesses |
| include_daily | boolean | Add a per-day series (requires from/to, max 366 days) |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"to": {
"type": "string",
"description": "Window end, YYYY-MM-DD (with from)"
},
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"from": {
"type": "string",
"description": "Window start, YYYY-MM-DD (with to)"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"include_daily": {
"type": "boolean",
"description": "Add a per-day series (requires from/to, max 366 days)"
}
}
}APPLE ADS ONLY. One row per KEYWORD x COUNTRY (kind keyword) plus a Search Match row per ad group x country (kind search_match: what the ad group spent and brought beyond its keywords, because Apple attributes no keyword to Search Match installs, so the rows add up). Each row: spendMicros (US micros), impressions, taps, installs (Apple's), cpaMicros (spend / installs), and from Affiliateo's SDK the install cohort of the SAME window: downloads (phones first opened in it), trials (a free trial within 7 days), direct (a subscription bought without a trial), lifetime (a one-time purchase), paying (a first payment within 30 days; one refunded in full does not count), revenueToDateMicros; then estCacMicros = spend / paying, estLtvMicros = the mean 12-month forecast per paying person (paid so far plus their price times the renewals still expected at the plan's observed renewal rate, see model), ltvToCac and band (good at >= 3, ok at >= 1, bad under 1: thresholds), countryLtvToCac (the whole country). stillCounting true: a download is younger than 30 days, so trials and paying can still grow (figures so far). lowData true: the LTV leans on default renewal rates. measured false: no app has the SDK, so every cohort figure is null (unknown, never 0). country null is "unknown": days stored before the country split. TREND: every row, country and totals carry trend { previous { estCacMicros, ltvToCac, spendMicros, paying }, cacChangePct, ltvToCacChangePct } against previousStart..previousEnd, the same number of days just before (one day vs the day before, 7 vs the 7 before); the previous cohort is read as of the same time after its end, so both are compared at the same age. A null change means one side has no ratio (a dash). Lower CAC is better, higher LTV:CAC is better. range=all has no previous period, so trend is null. countries lists the rollup per country, byCampaign / byAdGroup / byKeyword every country together (the same figures get_ad_stats puts on its Apple rows as appleEconomics). To act on a search term, add it with add_apple_keywords.
| Argument | Type | Description |
|---|---|---|
| app | string | One of the business's app ids: only its installs and its campaigns |
| end | string | YYYY-MM-DD (default: today UTC) |
| range | string | Instead of start/end: the dashboard's own presets, ending today |
| start | string | YYYY-MM-DD, or all for All time (default: 29 days before end) |
| trend | boolean | Default true. false skips the previous period. |
| account | string | Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account. |
| adgroup | string | One Apple Ads ad group id: the same for one ad group |
| country | string | Two letters (US, GB...) or unknown: only that country's rows and rollup |
| campaign | string | One Apple Ads campaign id: only its keywords, Search Match rows and installs; countries and totals are worked out over them alone |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"app": {
"type": "string",
"description": "One of the business's app ids: only its installs and its campaigns"
},
"end": {
"type": "string",
"description": "YYYY-MM-DD (default: today UTC)"
},
"range": {
"enum": [
"all",
"today",
"last7d",
"last30d",
"last90d",
"last12m"
],
"type": "string",
"description": "Instead of start/end: the dashboard's own presets, ending today"
},
"start": {
"type": "string",
"description": "YYYY-MM-DD, or all for All time (default: 29 days before end)"
},
"trend": {
"type": "boolean",
"description": "Default true. false skips the previous period."
},
"account": {
"type": "string",
"description": "Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account."
},
"adgroup": {
"type": "string",
"description": "One Apple Ads ad group id: the same for one ad group"
},
"country": {
"type": "string",
"description": "Two letters (US, GB...) or unknown: only that country's rows and rollup"
},
"campaign": {
"type": "string",
"description": "One Apple Ads campaign id: only its keywords, Search Match rows and installs; countries and totals are worked out over them alone"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The result of send_apple_test_notification: { provider, state, reason }. state received: this app heard it at or after `since`; sent_elsewhere: Apple delivered it, but not to Affiliateo (another Server URL is pasted in App Store Connect); failed: reason is Apple’s sendAttemptResult (TIMED_OUT, TLS_ISSUE, ...); waiting: not delivered yet, usually a matter of seconds. Read only. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| since* | string | requested_at from send_apple_test_notification (ISO 8601) |
| token* | string | test_notification_token from send_apple_test_notification |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app",
"token",
"since"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"since": {
"type": "string",
"description": "requested_at from send_apple_test_notification (ISO 8601)"
},
"token": {
"type": "string",
"description": "test_notification_token from send_apple_test_notification"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}One business in full: name, URL slug, description, category, logo, cover, private flag, custom domain, member count, rating and name_changed_at (when the name last moved, which sets the rename cooldown). list_businesses is the cheaper call for slugs and ad status alone; this is the read half of a read-modify-write against update_business.
| Argument | Type | Description |
|---|---|---|
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The business owner’s STOREFRONT-affiliate program at a glance (people promoting the business’s products, distinct from app affiliates): affiliate counts, lifetime totals (visitors, sales, revenue, commission in cents - money net of refunds), and payout buckets. from/to (YYYY-MM-DD) adds net sales + link clicks for that window (click history from 2026-07 onward). No per-day series. A `recurring` object gives what the referrals pay every MONTH: mrr_cents (the COMMISSION per month, never the subscription value the customers pay), arr_cents, subscribers, trialing (referrals inside a free trial RIGHT NOW - outside subscribers and outside mrr_cents because they have paid nothing, and it FALLS when a trial ends whichever way it ended), not_renewing (auto-renew off, still paying, still counted inside subscribers), churned, churn_rate and unknown_interval. churn_rate is a percentage and is NULL rather than 0 until five people have ever subscribed - null means “not enough history”, never “no churn”. A non-zero unknown_interval means some live subscriptions have an unreadable billing period, so mrr_cents is a FLOOR and not a total. It is a RATE at the subscription set as of today, so from/to does not and cannot filter it.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end, YYYY-MM-DD (with from) |
| from | string | Window start, YYYY-MM-DD (with to) |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"to": {
"type": "string",
"description": "Window end, YYYY-MM-DD (with from)"
},
"from": {
"type": "string",
"description": "Window start, YYYY-MM-DD (with to)"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The dashboard’s business overview: revenue (gross, net, Stripe fees, affiliate commission, refunded and disputed, US cents), payments (total, successful, per status), subscriptions (active, mrr_cents and arr_cents RIGHT NOW whatever the window, the storefront half and the connected-app half apart, trialing, paused, not renewing, and churn within the window), members (new in the window, total, online_now), disputes opened, and series: the same figures day by day (hour by hour for a single day), the dashboard’s charts. from/to are YYYY-MM-DD, to inclusive, both or neither; neither means all time, and then a series has a point only for days with a payment. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end, YYYY-MM-DD, inclusive (with from) |
| from | string | Window start, YYYY-MM-DD (with to) |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"to": {
"type": "string",
"description": "Window end, YYYY-MM-DD, inclusive (with from)"
},
"from": {
"type": "string",
"description": "Window start, YYYY-MM-DD (with to)"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Whether the Google Calendar that booked calls go into is connected: available, connected, the Google account’s email, and needs_reconnect (the owner connects again in the dashboard). Read only; never a token. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Each chat copy’s rules: who can post and react, banned words, whether links and media are blocked, slowmode. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| instance | integer | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"instance": {
"type": "integer"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}One course as its owner edits it: its chapters in order, each with its lessons in order (title, lesson_type, content HTML, video_url and video_type, pdf_url, attachments, drip and quiz settings). An uploaded video, the PDF and the attachments are signed links that work for about six hours: read again for fresh ones. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| course_id* | string | From list_courses |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"course_id"
],
"properties": {
"course_id": {
"type": "string",
"description": "From list_courses"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The course’s students, as the dashboard’s Analytics shows them: each with completion %, completed_count, start_date and last_active (a student is anyone who started a lesson; there is no separate enrollment), and each lesson’s completions and drop-off. With user_id: that one student’s lesson-by-lesson progress (completed, completed_at) and their quiz attempts on the course. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| user_id | string | One student, from the list |
| course_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"course_id"
],
"properties": {
"user_id": {
"type": "string",
"description": "One student, from the list"
},
"course_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}One customer (a person in one app, RevenueCat style): id, user_id (the app’s own id once they signed in, null while anonymous), first_seen, last_seen, country, source (where they came from), total_spent_cents (US), purchases, first/last_purchase_at, events (app opens, screens, page views), last_seen_details (the latest device: last opened, app version, platform, device, locale, time zone, place), attribution (source, ref code, campaign, ad group, keyword, UTM, referrer; for an Apple Ads install also keyword_id, ad_id, ad_country, install_type download | redownload and claim_type click | impression), attributes [{ key, value }], aliases (other ids: customers folded in when they signed in, RevenueCat ids, Stripe or store customer and subscription ids), devices (every phone and browser they used; current=false means it is signed in as somebody else now), subscriptions, the owner’s notes, and `history` (their transactions, newest first; before = next_cursor for more). HOW PEOPLE ARE COUNTED: each device starts as an anonymous customer; signing in adopts the app’s user id or folds the device into the person the app already had under it; somebody else signing in on that device switches it from then on; signing out starts it over as anonymous. Nothing already recorded moves on a switch or sign-out. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| before | string | The history’s next_cursor, for the next page of history only |
| customer_id* | string | Affiliateo customer id, from find_customers or a transaction’s customer_id |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"customer_id"
],
"properties": {
"before": {
"type": "string",
"description": "The history’s next_cursor, for the next page of history only"
},
"customer_id": {
"type": "string",
"description": "Affiliateo customer id, from find_customers or a transaction’s customer_id"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}One line of a customer’s history in full (the dashboard’s View details): the line, the sale it belongs to (amount, currency, store, product, transaction and subscription ids, campaign, apple_ads with the Apple Ads campaign, ad group, keyword, country, ad id, install type and claim type, commission), what the provider said for a subscription moment (cancel, expiry, billing issue), and sent_to: where Affiliateo sent the sale (ad networks, Google’s Data Manager, an affiliate’s own ads) with each one’s status. event_key is the line’s `key` from get_customer’s history. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| event_key* | string | The history line’s key: c:<sale id> or e:<moment id> |
| customer_id* | string | Affiliateo customer id |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"customer_id",
"event_key"
],
"properties": {
"event_key": {
"type": "string",
"description": "The history line’s key: c:<sale id> or e:<moment id>"
},
"customer_id": {
"type": "string",
"description": "Affiliateo customer id"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}One event, any status, with its RSVP count. Requires the business OWNER’s key, or a manager’s own key.
| Argument | Type | Description |
|---|---|---|
| event_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"event_id"
],
"properties": {
"event_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}One file of the Files app, with a fresh file_url. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| file_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"file_id"
],
"properties": {
"file_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The app’s one funnel as saved on the dashboard: its steps in order and its conversion_window_seconds (how long a person has to get from the first step to the last; 60 days unless changed). A step is { type, value, label? }: page (a web page path, "/pricing"), screen (a mobile screen name), custom (a goal the app fires with track(name)) or event (built in: purchased, subscribed, trial, converted = a free trial turning paid, renewed). exists is false until a funnel is saved. Funnels exist for affiliate_app and web_traffic apps and for tracking-only apps (ads: "Track your sales" in an ad app’s settings). Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The funnel chart: for each saved step, how many people reached it IN ORDER within the conversion window, and the median seconds they took. no_data marks a step nothing matched in the window (dead with last_seen_at says whether it ever matched: often a renamed page or screen). source narrows to the visitors one paid network sent, or organic for the rest. from/to as for get_app_analytics. With no saved steps, results is empty and has_steps false. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end: YYYY-MM-DD (inclusive) or an ISO 8601 time (exclusive) |
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| from | string | Window start: YYYY-MM-DD or an ISO 8601 time |
| source | string | Only the visitors this network sent |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"to": {
"type": "string",
"description": "Window end: YYYY-MM-DD (inclusive) or an ISO 8601 time (exclusive)"
},
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"from": {
"type": "string",
"description": "Window start: YYYY-MM-DD or an ISO 8601 time"
},
"source": {
"enum": [
"meta",
"tiktok",
"google",
"apple_search_ads",
"snapchat",
"x",
"organic"
],
"type": "string",
"description": "Only the visitors this network sent"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}One invoice by its id (or its inv_ short id), in the same shape list_invoices returns. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| invoice_id* | string | Invoice UUID from list_invoices, or the inv_ id from a pay link |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"invoice_id"
],
"properties": {
"invoice_id": {
"type": "string",
"description": "Invoice UUID from list_invoices, or the inv_ id from a pay link"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}One lead or booked call by id, in the same shape list_leads returns. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| lead_id* | string | Lead UUID, from list_leads |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"lead_id"
],
"properties": {
"lead_id": {
"type": "string",
"description": "Lead UUID, from list_leads"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The business’s legal links and contact (the dashboard’s Legal settings page): terms_url, privacy_url, return_url, eula_url, vat_id, tax_type, contact_name, contact_email, contact_address, require_terms, collect_vat. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The key owner’s Available / Away switch for each app whose Live Chat they answer, the switch in the header of each Live Chat in the dashboard: app_id, name and away. Everyone starts Away (away true) until they switch to Available. Available is not the same as online: the bubble counts the owner as online only while the switch says Available AND they have Affiliateo open (a dashboard tab or the app); with nobody online it shows the offline message. Away still gets the chats and the notifications. Change it with set_live_chat_availability. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Every app a Live Chat can live in, with its settings (app_id for one): enabled, greeting, greeting_badge (the greeting as a red 1 on the bubble), away_message (the offline message), message_placeholder (the placeholder text), translations (those three per language, like { "es": { "greeting": "¡Hola!" } }), position, bubble_size, bubble_wiggle_seconds, bubble_style, bubble_color, icon_color, send_color, page_mode and page_rules; and who answers it: live_chat_added (false: add one first with add_sidebar_app, app_slug live_chat and app_id), who_answers (owner, team or picked), picked (the team members and affiliates picked, each with user_id and kind), picked_with_team (team plus the people in picked), affiliates_answer_own_visitors and request_access (Let people request access, true only under picked, or team with picked_with_team; the waiting requests are list_live_chat_access_requests). Values: position bottom-right, bottom-left, top-right, top-left; bubble_size auto, small, medium, large (auto is small on phones and medium on bigger screens); bubble_wiggle_seconds 0, 10, 20, 30, 40, 50, 60 (a number: the seconds between two wiggles of the bubble, 0 is off, a new app has 30); bubble_style standard (shown as Solid) or glass (see-through, tinted with bubble_color); bubble_color, icon_color and send_color #rrggbb; greeting and away_message up to 300 characters, message_placeholder up to 60 (the same limits per language in translations); page_mode all, only, except (all: everywhere; only: just the places in page_rules; except: everywhere but them); page_rules is a list of website paths and app screen names: * matches anything, /blog/* also matches /blog, case and a trailing slash are ignored, and an app screen is the name the app passes to Affiliateo.page(); at most 50 rules of up to 200 characters each (more is a 400, nothing is cut), and only with no rules shows the bubble nowhere. The same settings as the gear and Edit visibility in the dashboard’s Live Chat. The owner’s own Available / Away switch is get_live_chat_availability. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| app_id | string | Only this app’s settings |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"app_id": {
"type": "string",
"description": "Only this app’s settings"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}One member by username (or user id), with what they paid and app_affiliations, what they are to each app as an affiliate. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| user* | string | Their username, or user id |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"user"
],
"properties": {
"user": {
"type": "string",
"description": "Their username, or user id"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The caller’s OWN card lines on one app they promote, one number per period: what THEIR link brought plus what THEY closed in the app’s Live Chat. clicks, sales, new_sales, revenue_cents, earned_cents, closed, trials_started and trial_conversions are what happened in each period; subscriptions, trials, mrr_cents and churned are how things stood at its end. earned_cents and mrr_cents are the caller’s commission, not what customers pay. On the caller’s OWN app the link is their own tracking link, which earns no commission: scope then reads own_link, mrr_cents is what its subscribers pay, and earned_cents and closed are 0. include_payouts adds payouts { pending_cents, payable_cents, paid_cents }: where the caller’s commission on this app stands right now, link and closing together, with no dates applied. app is the app id, or its slug among the apps in list_my_affiliations. from/to (YYYY-MM-DD) default to the last 28 days; resolution is day, week or month, at most 400 periods. Affiliate apps only; an app the caller has no link on and never closed for answers 404. Totals across every app are get_my_summary. SCOPE: resolves to the API KEY HOLDER, never an end user - there is no user argument, which is the tell. Called with a business's key it returns that OWNER's own data, including programs they joined elsewhere. It cannot serve an affiliate screen for other people inside a product; enroll_affiliate and get_affiliate take an email or ref_code for that.
| Argument | Type | Description |
|---|---|---|
| to | string | Last day, YYYY-MM-DD. Default: today |
| app* | string | The app id, or its slug among the apps you promote (list_my_affiliations) |
| from | string | First day, YYYY-MM-DD, or all (all time, from the app’s first click or sale). Default: 27 days before to |
| resolution | string | The size of a period. Default day |
| include_payouts | boolean | Also answer your pending, payable and paid commission on this app, as it stands now |
{
"type": "object",
"required": [
"app"
],
"properties": {
"to": {
"type": "string",
"description": "Last day, YYYY-MM-DD. Default: today"
},
"app": {
"type": "string",
"description": "The app id, or its slug among the apps you promote (list_my_affiliations)"
},
"from": {
"type": "string",
"description": "First day, YYYY-MM-DD, or all (all time, from the app’s first click or sale). Default: 27 days before to"
},
"resolution": {
"enum": [
"day",
"week",
"month"
],
"type": "string",
"description": "The size of a period. Default day"
},
"include_payouts": {
"type": "boolean",
"description": "Also answer your pending, payable and paid commission on this app, as it stands now"
}
}
}The caller’s OWN storefront-affiliate program across every business they promote: affiliation counts, lifetime totals (visitors, sales, revenue, commission in cents - money net of refunds), and payout buckets. from/to (YYYY-MM-DD) adds net sales + link clicks for that window (click history from 2026-07 onward). The storefront counterpart to get_my_summary. No per-day series. Wallet balance is on get_my_summary (one account wallet). A `recurring` object gives what the referrals pay every MONTH: mrr_cents (the COMMISSION per month, never the subscription value the customers pay), arr_cents, subscribers, trialing (referrals inside a free trial RIGHT NOW - outside subscribers and outside mrr_cents because they have paid nothing, and it FALLS when a trial ends whichever way it ended), not_renewing (auto-renew off, still paying, still counted inside subscribers), churned, churn_rate and unknown_interval. churn_rate is a percentage and is NULL rather than 0 until five people have ever subscribed - null means “not enough history”, never “no churn”. A non-zero unknown_interval means some live subscriptions have an unreadable billing period, so mrr_cents is a FLOOR and not a total. It is a RATE at the subscription set as of today, so from/to does not and cannot filter it. Storefront rail only; the app half is on get_my_summary. SCOPE: resolves to the API KEY HOLDER, never an end user - there is no user argument, which is the tell. Called with a business's key it returns that OWNER's own data, including programs they joined elsewhere. It cannot serve an affiliate screen for other people inside a product; enroll_affiliate and get_affiliate take an email or ref_code for that.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end, YYYY-MM-DD (with from) |
| from | string | Window start, YYYY-MM-DD (with to) |
{
"type": "object",
"properties": {
"to": {
"type": "string",
"description": "Window end, YYYY-MM-DD (with from)"
},
"from": {
"type": "string",
"description": "Window start, YYYY-MM-DD (with to)"
}
}
}The caller’s OWN affiliate program across every business they’ve joined: affiliation counts, lifetime totals (clicks, conversions, renewals, revenue and commission in cents), payout buckets (pending/payable/paid/refunded, including per-click web_traffic earnings), and their account wallet balance. from/to (YYYY-MM-DD) adds the same numbers for that window; include_daily adds a per-day series (window up to 366 days). This is the affiliate’s own view - no business ownership needed, and list_businesses may be empty for them. App-affiliate earnings only. A `recurring` object gives what the referrals pay every MONTH: mrr_cents (the COMMISSION per month, never the subscription value the customers pay), arr_cents, subscribers, trialing (referrals inside a free trial RIGHT NOW - outside subscribers and outside mrr_cents because they have paid nothing, and it FALLS when a trial ends whichever way it ended), not_renewing (auto-renew off, still paying, still counted inside subscribers), churned, churn_rate and unknown_interval. churn_rate is a percentage and is NULL rather than 0 until five people have ever subscribed - null means “not enough history”, never “no churn”. A non-zero unknown_interval means some live subscriptions have an unreadable billing period, so mrr_cents is a FLOOR and not a total. It is a RATE at the subscription set as of today, so from/to does not and cannot filter it. ACCOUNT-WIDE and app-rail only here; the storefront half is on get_my_business_summary. It is not exposed to a business owner, because it spans every programme the caller is an affiliate of. SCOPE: resolves to the API KEY HOLDER, never an end user - there is no user argument, which is the tell. Called with a business's key it returns that OWNER's own data, including programs they joined elsewhere. It cannot serve an affiliate screen for other people inside a product; enroll_affiliate and get_affiliate take an email or ref_code for that.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end, YYYY-MM-DD (with from) |
| from | string | Window start, YYYY-MM-DD (with to) |
| include_daily | boolean | Add a per-day series (requires from/to, max 366 days) |
{
"type": "object",
"properties": {
"to": {
"type": "string",
"description": "Window end, YYYY-MM-DD (with from)"
},
"from": {
"type": "string",
"description": "Window start, YYYY-MM-DD (with to)"
},
"include_daily": {
"type": "boolean",
"description": "Add a per-day series (requires from/to, max 366 days)"
}
}
}One of the caller’s wallet transactions in detail, by id or short id (pay_/with_/fund_…): the same normalized row as list_my_transactions, plus, for the caller’s own deposits, the Stripe receipt URL and the card/bank used, and for affiliate-commission rows, the product and paying business. Only the caller’s own wallet. Read-only. SCOPE: resolves to the API KEY HOLDER, never an end user - there is no user argument, which is the tell. Called with a business's key it returns that OWNER's own data, including programs they joined elsewhere. It cannot serve an affiliate screen for other people inside a product; enroll_affiliate and get_affiliate take an email or ref_code for that.
| Argument | Type | Description |
|---|---|---|
| id* | string | Transaction UUID or short id (pay_/with_/fund_…) |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Transaction UUID or short id (pay_/with_/fund_…)"
}
}
}The caller’s account wallet balance and the buckets behind it, all in cents: total balance, withdrawable (balance minus funds still on the 7-day hold), held (credits still on that hold, less what a refund or a dispute already took back of them), pending bank deposits, locked ad budget, disputed (what open disputes hold right now: already out of the balance, back in it if the seller wins; held and disputed changed to these meanings on 2026-09-28), and in_transit (withdrawals already on their way to the bank), plus whether a payout destination is connected and a payout readiness object ({ identity_verified, payouts_enabled }). One wallet per account, so this is the caller’s own money whether they’re a business owner or an affiliate. Read-only. SCOPE: resolves to the API KEY HOLDER, never an end user - there is no user argument, which is the tell. Called with a business's key it returns that OWNER's own data, including programs they joined elsewhere. It cannot serve an affiliate screen for other people inside a product; enroll_affiliate and get_affiliate take an email or ref_code for that.
No arguments.
{
"type": "object",
"properties": {}
}Which events notify the business owner: disputes, joins, leads, payments, support_all, support_mentions and withdrawals, each true or false (the dashboard’s Notifications settings page). Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}One payment’s receipt (pay_… or its id): buyer and billing address, every fee line, refunds and who made them, the affiliate commission, when the money becomes available, and each DISPUTE with its answer_state (answerable, compliance, no_response, deadline_passed, under_review, won, lost, closed), evidence_due_by and the dashboard_url where it is answered. Answering a dispute stays in the dashboard: Stripe takes one answer. Read-only. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| payment_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"payment_id"
],
"properties": {
"payment_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The dashboard’s Pay tab: every affiliate of the business’s affiliate apps, the most owed first, with the personal deal and the app default and the money in cents (pending, payable: exactly what a pay run would send, paid, refunded, on_hold under a dispute), an Affiliateo row first for the platform fees owed on sales that came through an Affiliateo link (an affiliate’s or the owner’s own), and business_wallet_balance. Closers (who closed sales in Live Chat) are rows too: is_closer: true, id closer:{appId}:{userId}, and closer_fee_payable_cents, Affiliateo’s fee their payout sends with it. from/to (YYYY-MM-DD, together) add windowed clicks and activity per row. Pay with pay_affiliates (a key with its Payouts switch on). Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end, YYYY-MM-DD, inclusive (with from) |
| from | string | Window start, YYYY-MM-DD (with to) |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"to": {
"type": "string",
"description": "Window end, YYYY-MM-DD, inclusive (with from)"
},
"from": {
"type": "string",
"description": "Window start, YYYY-MM-DD (with to)"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}One post with its poll. Requires the business OWNER’s key, or a manager’s own key.
| Argument | Type | Description |
|---|---|---|
| post_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"post_id"
],
"properties": {
"post_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}One product’s complete owner settings for a read-modify-write: name, URL, plans (pricing_options), FAQs, and page_settings with the sales page as a RESOLVED element list (blocks) - a product nobody has built a page for still reads back as the elements it renders. Also the numbers: subscribers, sales, checkout views, units sold per plan. Re-pricing or removing a subscription plan through update_product cancels its active subscribers, and the subscriber_count on each plan shows how many in advance. PAGE ELEMENTS (page_settings.blocks): an ordered array; order IS the layout, there are no coordinates. Every element is { id?, type, style?, …type fields }. Types: text { text (plain text, newlines kept) OR html, plus size?: "display" | "h1" | "h2" | "h3" | "body" | "small" (default body) - the size of every line that names none of its own. ONE TEXT ELEMENT HOLDS A WHOLE PASSAGE, so a title and its subtitle belong in ONE element, not two: in html each LINE is its own tag and carries its own size - <h1 data-size="display"> (the big opening line of a landing page), <h1>, <h2>, <h3>, <p data-size="body">, <p data-size="small">, and a bare <p> takes the element's `size`. e.g. html: "<h1 data-size=\"display\">Title</h1><p>Subtitle</p>". Any line may also carry data-align="left" | "center" | "right" (when it differs from the element's own align) and data-indent="1" to "4" (steps in from the edge). An EMPTY <p></p> is a blank line and takes up a line on the page, which is how a passage is spaced out. Inside a line: b/strong/i/em/u/s/a/br/span and ul/ol/li, plus ONE style declaration: a hex `color` on a span, which is how a word is a different colour from the sentence around it. Everything else is stripped, and an attribute value not listed here is dropped. size "display" is stored as an h1 element whose lines carry data-size="display", and is read back that way. style.textScale (50–300) multiplies every line, so any size can be pushed further } - the first display or h1 line becomes the product headline and the first other line the subtitle, both read off the page on save; media {} - the hero slot, drawing banner_url / video_url (one hero per product; the block only says WHERE it sits); image { url, alt?, href? } - ONE picture of its own, anywhere on the page (url a PUBLIC https PNG/JPEG/WebP under 10 MB, fetched server-side and stored, exactly like banner_url); not the same as media, which draws the product hero wherever it is put; button { label, href? | scrollTo?, color?: "#hex" } - a button that is not the buy button: href sends them out, scrollTo names another element ON THIS PAGE by its id and is DROPPED if no such element exists; spacer { size?: "sm" | "md" | "lg" } - empty space, which a divider (a line) is not; embed { url, videoUrl, poster } - a video, from EITHER source. `url` is a YouTube or Vimeo link and ONLY those two, because it becomes a player frame on a page that takes card details. `videoUrl` is the business’s own file: a PUBLIC https MP4 this server fetches (64MB on that path), or a file uploaded straight to storage with POST /api/uploads/sign whose key comes back as `block_video_keys`, for up to 500MB. An uploaded file WINS when both are set. This is separate from the hero, which is one per product and drawn by `media`; a page may hold several of these. Stored as the tidy link, with anything appended to what was sent dropped; stats { items: [{ id?, value, label }] (max 8, plain text), columns?: 1–4 } - figures with a word under each ("$55.6M+" / "in tracked sales"); quote { text, name?, role? } - somebody's words, typed, which the reviews element (real reviews left on the business) cannot say; compare { rows: [{ id?, label, us, them }] (max 15), usLabel?, themLabel? } - us against them. Each side is `true` (a tick), `false` (a cross) or a SHORT STRING ("unlimited" against "5 a month"); anything else is read as false, because a row nobody can parse must not claim the product has something; sticky { label, buttonLabel?, href? | scrollTo?, endsAt?: ISO 8601, color?: "#hex" } - the bar that follows the reader down the page. It DRAWS NOTHING where it sits and the FIRST one on a page wins, because order is the layout for every other element and this one has no place in the order; checklist { items: [{ id?, text }] (max 30, plain text), icon?: "check" | "star" | "spark" | "arrow" | "dot", columns?: 1–4 } - "what you get", one mark per line; carousel { items: [{ id?, url }] (max 40; each url a PUBLIC https PNG/JPEG/WebP under 10 MB, fetched server-side and stored, exactly like banner_url), direction?: "horizontal" | "vertical", lanes?: 1–5, size?: 0–100 (or "sm" | "md" | "lg", which is what pages stored before the dial) - it sets the FIXED side of each picture, its height when the strip runs across and its width when it runs down, while the other side follows the picture, so 16:9, 9:16 and 1:1 sit in one strip uncropped, speed?: 0–100 } - a strip of pictures that scrolls on its own, for a wall of screenshots or proof; lanes stacks that many strips and they alternate direction, pictures are dealt across them in turn, and the pace is per picture so the strip feels the same whether it holds four or forty; plans { layout?: "grid" | "stack" } - the plan cards, drawn from pricing_options; cta { planId, label? } - a second buy button further down the page for ONE plan; reviews { columns?: 1–4 } - the featured reviews (page_settings.featured_review_ids); faq { columns?: 1–4 } - the product FAQs; cards { items: [{ id?, imageUrl?, heading?, body? }] (max 12), columns?: 1–4 } - a grid of cards, each with an optional picture on top (imageUrl a PUBLIC https PNG/JPEG/WebP under 10 MB, fetched server-side and stored, exactly like a carousel picture); form { items: [{ id?, kind, label?, required?, options? }] (max 12), title?, buttonLabel?, successMessage? (plain text), redirectUrl? (http/https; wins over the message), color?: "#hex" } - COLLECTS LEADS, and the visitor needs no account. kind is "name" | "email" | "phone" | "country" | "zip" (each at most once) or "short" | "long" | "select" | "consent" (the owner's own questions, any number, each needing a label; select needs options). EMAIL IS ALWAYS THERE AND ALWAYS REQUIRED: left out, it is added first. Entries land in the business's Leads app and at GET …/leads, each with the affiliate who sent the visitor; booking { …everything form takes, slotMinutes: 15 | 30 | 45 | 60 | 90, bufferMinutes?: 0 | 5 | 10 | 15 | 30, minNoticeHours?: 0 | 1 | 2 | 4 | 12 | 24 | 48, daysAhead?: 7 | 14 | 30 | 60 | 90 (CANNOT BE LOWERED past a call already booked through this element: the save answers 409 naming that call’s date and the shortest value that works; raising it is always allowed), timezone (IANA, REQUIRED: the zone the hours are written in), hours: [{ day: 0–6 with 0 = Sunday, from, to as 24 hour "HH:MM" }] (max 21; no hours means nothing can be booked), daysOff?: [{ from, to }] (closed dates, "YYYY-MM-DD" in that zone, both ends included, max 50; a bare "2026-12-25" is one day), maxPerDay?: 0 (no limit) | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 15 | 20 (counted across the whole business on the owner’s calendar day), reminderHours?: 0 (none) | 1 | 2 | 24 | 48 (default 24: one reminder email to the visitor that long before the call), meetingType?: "google_meet" (a Google Meet room OF ITS OWN for every call, made on the Google Calendar the owner connected in the Leads app; meetingLink is then an optional https fallback) | "link" (the owner’s own room, Zoom or Teams: the SAME https meetingLink for everyone who books) | "phone" (the OWNER CALLS THE VISITOR on the number the form collects: a required phone field is added to the form if it has none, and meetingLink is ignored, so the owner’s own number is never sent) | "in_person" (meetingLink is the address, as plain text); left out, the element predates the choice and meetingLink may be an https URL or a phone number, sent as it is. meetingProvider?: "google_meet" is the older spelling of meetingType "google_meet" and is saved as that. locationLabel? (words shown on the page; left out, the page names the app for a known link, "Zoom", or says the kind, "Phone call"), meetingLink? (see meetingType; NEVER sent to a page), confirmationNote? (the owner’s own words inside the confirmation email: plain text, max 600, NO links or web addresses, never sent to a page) } - a calendar a visitor books a call from, shown in THEIR time zone. AFFILIATEO DOES NOT HOST THE CALL: meetingType says how it happens, and meetingLink is NEVER sent to a page and reaches the visitor only in their emails, so read it back with an owner key, never from the public page. One business is one diary: a time booked on one page is taken on every page; countdown { endsAt: ISO 8601, expiredMessage?, layout?: "boxes" | "plain" | "inline" } - a fixed-date timer, hidden once passed unless a message replaces it; boxes is the default and puts each number in a filled pill, plain drops the pills and takes the section colour (for a countdown inside a coloured band), inline is one line with colons and no labels; divider { size?: "sm" | "md" | "lg" }; row { columns: [[…elements], [… ]], valign?: "top" | "center" | "bottom" } - 1 to 4 side-by-side columns of elements (rows do not nest; every column stacks on a phone). `valign` is how the columns line up when one is taller than another: absent means top, and "center" is what words beside a video want. STYLE (any element): { align?: "left" | "center" | "right", width?: 5–100 (percent of the column), paddingY?: 0–100 (vertical space; 100 is generous), paddingX?: 0–100 (EXTRA side room ADDED to the gutter the page already keeps, so 0 is the normal edge distance rather than flush against the screen), fullWidth?: true (run the element edge to edge AND leave its content there - a background instead runs the COLOUR edge to edge and puts the words back in the centred reading column, which is what a section wants and a picture does not), textScale?: 50–300 (percent of normal size; works on every element, text included), minHeight?: "auto" | "sm" | "md" | "lg" | "screen" (a floor, never a fixed height; the content sits in the middle of it), font?: "sans" | "serif" | "mono" (three system stacks, no downloads, so a browser and a phone can show the same one), appear?: true (fade in as it arrives; off under reduced motion), radius?: 0–48 (corner rounding in px), border?: { color: "#hex", width: 0–8 }, glow?: { color: "#hex", size: 0–100 } (a shadow in a dark colour, a glow in a bright one), background?: { kind: "solid", color: "#hex" } | { kind: "gradient", from: "#hex", to: "#hex", angle?: 0–360, shape?: "linear" | "radial" } | { kind: "image", url (a PUBLIC https picture, fetched server-side), overlay?: { color: "#hex", opacity: 0–1 } }, textColor?: "#hex" (REQUIRED with a background; a block with a background is pinned to those colours in light and dark mode and stretches edge to edge) }. Every picture (carousel items, Image elements, card pictures, background photos) is sent as a public https URL and stored on our side; the dashboard has a picker for each, because the API never writes what the owner cannot edit on screen.
| Argument | Type | Description |
|---|---|---|
| product* | string | Product UUID, short id (prod_…) or URL slug, from list_products |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"product"
],
"properties": {
"product": {
"type": "string",
"description": "Product UUID, short id (prod_…) or URL slug, from list_products"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}One of the Revenue app’s charts, RevenueCat’s definitions on Affiliateo’s records, period by period: arr (ARR at each period’s end, cents), paid_subscriptions (new paid subscriptions by how they began: trial_conversions, direct, resubscriptions, product_changes), subscriptions_movement (new_actives + resubscription_actives - churned_actives = movement), churn (churned actives / actives at the period’s start, percent), trial_funnel (each period’s new customers, started_trials, and each trial’s outcome: converted, set_to_convert, set_to_cancel, inactive, abandoned, with start_rate and conversion_rate) and conversion_to_paying (each period’s new customers who paid within timeframe days, a first purchase refunded inside the window not counting), and the Overview’s six cards period by period, by the cards’ own rules: active_trials, active_subscriptions and mrr (mrr_cents) as they stood at each period’s end; revenue (revenue_cents, with transactions), new_customers and active_customers (distinct people; the summary counts each person once over the range) per period; and the Conversions page’s steps: downloads (first opens on a phone, split into ad_downloads, affiliate_downloads, organic_downloads and unknown_source_downloads, the people RevenueCat first saw for an app without the SDK; downloads_measured false makes every download value null, never 0), download_to_trial, trial_to_paid (trials started in each period that turned paid over those that are over, still_in_trial apart), download_to_paid and trial_to_cancel (trials started in each period whose person turned renewal off before the first charge, with canceled, expired unpaid and refunded), whose summary also has previous_<key> (the range of the same length before) and <key>_change (percent for downloads, percentage points for a rate). Answers series [{ key, unit, kind }], periods [{ start, incomplete, values }] and a summary. Also the closing and payout charts: closed_customers (customers a closer closed in Live Chat), closed_revenue (what those sales took, net of refunds), closer_commission and affiliate_commission (what closers and affiliates earned: commission the owner pays out, not money coming in). A customer is a person; a subscription counts until it ends (a cancelled one still counts until then). source= narrows to an affiliate’s, a paid ad’s or organic sales and people. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| to | string | Last day, YYYY-MM-DD (UTC). Default: today |
| app | string | all (default), one app id, or several separated by commas |
| from | string | First day, YYYY-MM-DD (UTC), or all (from the first customer). Default: 27 days before to |
| chart* | string | Which chart |
| source | string | Default all |
| timeframe | string | conversion_to_paying only: days to pay in. Default 7 |
| resolution | string | Default day. At most 731 periods |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"chart"
],
"properties": {
"to": {
"type": "string",
"description": "Last day, YYYY-MM-DD (UTC). Default: today"
},
"app": {
"type": "string",
"description": "all (default), one app id, or several separated by commas"
},
"from": {
"type": "string",
"description": "First day, YYYY-MM-DD (UTC), or all (from the first customer). Default: 27 days before to"
},
"chart": {
"enum": [
"arr",
"paid_subscriptions",
"subscriptions_movement",
"churn",
"trial_funnel",
"conversion_to_paying",
"active_trials",
"active_subscriptions",
"mrr",
"revenue",
"new_customers",
"active_customers",
"downloads",
"download_to_trial",
"trial_to_paid",
"download_to_paid",
"trial_to_cancel",
"closed_customers",
"closed_revenue",
"closer_commission",
"affiliate_commission"
],
"type": "string",
"description": "Which chart"
},
"source": {
"enum": [
"all",
"affiliate",
"ad",
"organic"
],
"type": "string",
"description": "Default all"
},
"timeframe": {
"enum": [
"0",
"3",
"7",
"14",
"30",
"ever"
],
"type": "string",
"description": "conversion_to_paying only: days to pay in. Default 7"
},
"resolution": {
"enum": [
"day",
"week",
"month",
"quarter",
"year"
],
"type": "string",
"description": "Default day. At most 731 periods"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The Revenue app’s Conversions page for all the business’s paying apps or one: downloads (first opens on a phone, one per install, counted by the Affiliateo SDK; an app without the SDK that takes payments through RevenueCat counts the people RevenueCat first saw, except under a source, network or campaign filter; any other app is unknown and left out: downloads_source is sdk, revenuecat, mixed or null, and downloads_measured false means unknown, never 0; download_apps names each app’s source), trials (free trials started, free grants left out), new_paying (people whose FIRST payment fell in the period, split into paid_after_trial and paid_direct; a plain renewal never counts, nor a payment refunded in full such as a test sale), download_to_trial (an install cohort: of the period’s downloads, the share that started a free trial within 7 days of first open, trialed_within_7_days / downloads), trial_to_paid (of the trials started in the period that are over, the share that turned paid; trials_pending are still running and left out) and download_to_paid (of the period’s downloads, the share whose person paid for the first time within 30 days of first open, paid_within_30_days / downloads; a payment refunded in full never counts); still_counting_trial and still_counting_paid are the downloads still inside their 7 or 30 days (the rate can still grow), and the previous period is read as of the same time after its own end, so the change compares like with like; and trial_to_cancel (of the trials started, those whose person turned renewal off before the first charge; beside it trials_canceled (trials_canceled_still_in_trial of them still in their free days), trials_expired = ended unpaid without a cancel, trials_refunded = first charge taken back), rates in percent. `current` is the period, `previous` the period of the same length just before (previous_from, previous_to), and `change` the difference: downloads_percent, trials_percent and new_paying_percent in percent, the rates in percentage points (*_points, trial_to_cancel_points included). breakdown= plan | store | country | source | campaign adds `breakdown.rows` [{ key, label, current, previous, change }] (source keys organic, affiliate or an ad network; campaign keys "network:campaign id" with the campaign’s name in label). Filters: source (all, affiliate, ad, organic), network, campaign, plan (yearly, monthly, weekly, one_time, other; downloads have no plan so the rates still divide by every download), store (app_store, play_store, web, other), country (two letters). `more` (app and source only): arpu_cents and arppu_cents (net revenue per active / paying person, US cents, with the previous period’s), refund_rate (refunds and chargebacks over payments), month_two_retention and year_two_retention { eligible, renewed, rate }, median_hours_to_trial and median_hours_to_paid (from first open), and ltv_cohorts (the last 12 months of new people: customers, paying, revenue_cents so far, per_customer_cents, per_paying_cents). Day by day, they are get_revenue_chart with downloads, download_to_trial, trial_to_paid or download_to_paid. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| to | string | Last day, YYYY-MM-DD (UTC). Default: today. At most 731 days |
| app | string | all (default), one app id, or several separated by commas |
| from | string | First day, YYYY-MM-DD (UTC). Default: 27 days before to |
| plan | string | One plan only |
| store | string | One store only |
| source | string | Default all |
| country | string | Two letters |
| network | string | One ad network only |
| campaign | string | One campaign id on that network |
| breakdown | string | Rows by this |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"to": {
"type": "string",
"description": "Last day, YYYY-MM-DD (UTC). Default: today. At most 731 days"
},
"app": {
"type": "string",
"description": "all (default), one app id, or several separated by commas"
},
"from": {
"type": "string",
"description": "First day, YYYY-MM-DD (UTC). Default: 27 days before to"
},
"plan": {
"enum": [
"yearly",
"monthly",
"weekly",
"one_time",
"other"
],
"type": "string",
"description": "One plan only"
},
"store": {
"enum": [
"app_store",
"play_store",
"web",
"other"
],
"type": "string",
"description": "One store only"
},
"source": {
"enum": [
"all",
"affiliate",
"ad",
"organic"
],
"type": "string",
"description": "Default all"
},
"country": {
"type": "string",
"description": "Two letters"
},
"network": {
"enum": [
"meta",
"google",
"tiktok",
"apple_search_ads",
"x",
"snapchat"
],
"type": "string",
"description": "One ad network only"
},
"campaign": {
"type": "string",
"description": "One campaign id on that network"
},
"breakdown": {
"enum": [
"plan",
"store",
"country",
"source",
"campaign"
],
"type": "string",
"description": "Rows by this"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The Revenue app’s Overview, RevenueCat style, for all the business’s paying apps or one: active_trials, active_subscriptions, mrr_cents (monthly recurring revenue, a yearly plan counted as a twelfth), revenue_cents (every sale and renewal in the last 28 days in US cents, before store fees, refunds taken off), new_customers (people first seen in 28 days) and active_customers (people who opened the app or site in 28 days), each with a 28-day `series` (one point per UTC day in `days`), plus `apps` (the paying apps, for app=) and the first page of recent transactions. A CUSTOMER IS A PERSON, not a device: a phone and a laptop that signed in as the same app user are one customer. source= narrows everything to the sales (and people) an affiliate brought (affiliate), a paid ad brought with no affiliate (ad), or neither (organic); the three add up to all. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| app | string | all (default), one app id from the answer’s `apps`, or several separated by commas |
| source | string | Which sales and people count. Default all |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"app": {
"type": "string",
"description": "all (default), one app id from the answer’s `apps`, or several separated by commas"
},
"source": {
"enum": [
"all",
"affiliate",
"ad",
"organic"
],
"type": "string",
"description": "Which sales and people count. Default all"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The app’s RevenueCat entitlements and `selected`, the one free access grants on a RevenueCat app (free access: an affiliate gets the paid app for free; set it with set_affiliate_free_access). Apps on the App Store, Google Play, Adapty or Stripe without RevenueCat give free access through the SDK’s freeAccess() check instead and have no entitlement to pick. With none chosen yet it picks the first, as the dashboard does. 409 needs_reconnect when the connection predates that permission. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The support inbox settings: notification_pref (which support messages notify the owner: all, mentions or none) and every saved automatic message, by trigger_type: user_joins (someone becomes a member), user_leaves (someone leaves or their subscription ends) and affiliate_joins (someone becomes an affiliate), each with enabled, message_template, send_email, send_as_user_id and media_url. A trigger not listed was never saved and is off. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}One ticket and its thread, newest message first, each with its sender. Paged. Requires the owner’s key or the own key of staff who answer support.
| Argument | Type | Description |
|---|---|---|
| limit | integer | 1 to 100, default 50 |
| cursor | string | |
| ticket_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"ticket_id"
],
"properties": {
"limit": {
"type": "integer",
"description": "1 to 100, default 50"
},
"cursor": {
"type": "string"
},
"ticket_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Everything one visitor did in the app, in order, as the dashboard shows when a visitor row is opened: each step’s page path, screen name or goal name (or the event itself for session_start, session_end, purchased, subscribed, trial, converted (a free trial turning paid) and renewed), event_type, entered_at and dwell_seconds (time until the next step, at most 600). Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| visitor_id* | string | visitor_id from list_app_visitors |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app",
"visitor_id"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"visitor_id": {
"type": "string",
"description": "visitor_id from list_app_visitors"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Invite one Affiliateo account to an invite-only app, as the dashboard does. THE PERSON IS NOTIFIED AND EMAILED and can open and join the app at once (there is no accept step). Inviting someone already invited changes nothing (already: true). user_id is the id from search_app_invite_candidates. Requires the business OWNER’s read_write key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| user_id* | string | The person’s user_id |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app",
"user_id"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"user_id": {
"type": "string",
"description": "The person’s user_id"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Create a WHOLE campaign stack in one call - campaign plus the ad set / ad group, creative and ad underneath it. Every campaign is created PAUSED on every network, so this never starts spend; activating is a separate update_ad_entity call. On Meta, Google, TikTok and Snapchat everything under the campaign is created on, so that one call on the campaign is all it takes; Apple and X also need their ad group / line item switched on, and the response note says so. A stack that half-builds is rolled back to nothing rather than left orphaned. Creative is uploaded beforehand through POST …/ads/media ({"kind":"image","url":"https://…"}), and this tool takes the ids it returns. GOOGLE TAKES A VIDEO FILE, which this tool used to say it could not: YouTubeVideoUploadService puts the bytes on YouTube itself, on a Google-managed channel as UNLISTED, so no YouTube account is needed. The POST answers BEFORE YouTube finishes processing, so youtube_video_id is null and action_required is "video_processing"; get the id later from GET …/ads/media?network=google&uploads=1, and only then can it back an asset. META REWRITES THE CREATIVE BY DEFAULT. Advantage+ creative enhancements are ON unless somebody turns them off, and they crop, filter, add background MUSIC, overlay text and reword copy. A creative under TEST cannot be measured while Meta is allowed to alter it, so the enhancements are usually off for a test. For scaling something that already works, they often help. TWO LEVERS, and only one is reachable from here: on a launch, send creative.degrees_of_freedom_spec = {"creative_features_spec":{"standard_enhancements":{"enroll_status":"OPT_OUT"}}} (create-only, so it cannot be changed later); the ACCOUNT-WIDE default lives in Meta Ads Manager under Advertiser settings, Creative features, where "Test new creatives" and the AI generation options are switched off, and no API reaches it, so that half is a setting the owner changes in Ads Manager. THE OBJECTIVE FIELD IS NOT THE SAME ON ANY TWO NETWORKS, and an unrecognised value is read as traffic rather than refused on Meta, TikTok and Snapchat. The values per network: meta (default) - campaign.objective = traffic (default) | sales | awareness | engagement | video_views (ThruPlay, so the creative must be a video) | app_promotion (needs adset.app = { applicationId, objectStoreUrl }); campaign.product = manual (default) | advantage_plus, and Advantage+ works only on sales and app_promotion (the two states Meta derives) and is refused alongside adset.ageMin/ageMax/gender, which it hands to Meta. META NEVER RUNS ON AUDIENCE NETWORK: adset.publisherPlatforms is facebook | instagram | threads | messenger, no list means facebook + instagram on manual (never Meta’s automatic placements), audience_network is a 400, and Instagram needs an Instagram account linked to the Page (send ["facebook"] without one). An advantage_plus launch first switches Audience Network off for the whole ad account (Meta’s account controls) and is refused before anything is created if Meta will not take that. tiktok - campaign.objective = traffic (default) | conversions | awareness (REACH, billed CPM) | video_views (VIDEO_VIEWS on the six-second view; send format SINGLE_VIDEO with a videoId) | engagement (SPARK ADS: needs ad.itemId - the post URL, or the number at the end of it - and uploads NOTHING, because the post supplies the video, the caption and the account name, so format/videoId/imageIds/text/displayName are all dropped; confirm the id first with list_ad_lookups type=organic_post, which CONFIRMS one post rather than listing them, since TikTok publishes no endpoint that enumerates an account’s posts) | leads (needs ad.pageId, an Instant Form id from Ads Manager) | app_promotion (needs appId from …/ads/apps?network=tiktok plus appPlatform ios|android) | product_sales (CATALOGUE ads: needs catalog.catalogId from list_ad_lookups type=catalog, optionally catalog.bcId and catalog.productSetId from type=product_set, and uploads NO creative at all - TikTok renders every impression from the product itself, so format/videoId/imageIds are dropped and the ad goes out as CATALOG_CAROUSEL); engagement, leads, app_promotion and product_sales send no landing page at all. THE OBJECTIVE PICKS THE TIKTOK FAMILY, following TikTok’s own notice that from 2027-01-01 its manual endpoints stop creating non-Search sales, app promotion and lead generation campaigns: conversions, leads, app_promotion and product_sales build on Smart+ only; awareness, video_views and engagement build on manual only (TikTok keeps their manual form); traffic tries Smart+ first with manual as the backup. snapchat - the field is campaign.goal, NOT objective: traffic (default) | conversions | awareness | engagement | video_views (needs a VIDEO) | leads (needs leadFormId) | app_promotion (needs app = { name, iosAppId or androidAppUrl, iconMediaId }); the goal picks the creative, so leads and app_promotion take no destinationUrl. x - the field is campaign.goal, NOT objective, same as Snapchat: traffic (default) | conversions (X only serves WEBSITE_CONVERSIONS on ALL_ON_TWITTER plus PUBLISHER_NETWORK and only with a web event tag, so send pixelId or let the tag on the connection be used) | awareness | engagement | video_views (needs a VIDEO, and X bills it per play) | app_promotion (needs app = { iphoneAppId or googlePlayAppId, countryCode }, where googlePlayAppId is the Play PACKAGE name and countryCode is the storefront the ids resolve in, defaulting to the first targeted country). THE AD ON X IS A POST: postText is required on every goal and is the whole ad as far as a reader is concerned, while the card underneath carries the image or video, the destination and the button. app_promotion builds a BUTTON card with no URL field, so it takes callToAction and no destinationUrl or headline. Two optional ids nothing else on this list has: fundingInstrumentId (which funding instrument pays, from list_ad_lookups type=funding_instrument; X refuses to create a campaign without one and the object is READ-ONLY in production) and asUserId (X’s as_user_id, which handle the post is published as; resolved from the account when omitted). google - there is no objective field: the campaign TYPE is what Google has instead, so pick it with the `type` argument (omitted = Search, or pmax | display | demand_gen | app | shopping) and set validate true to dry-run the whole stack without creating anything. There is no video type - the Google Ads API can only READ Video campaigns. GOOGLE COLLECTS LEADS BY CREATING THE FORM, not by naming one: on the Search body send leadForm = { headline, description, businessName, cta, ctaDescription, privacyPolicyUrl, questions }, all six required by Google plus at least one question (FULL_NAME, EMAIL, PHONE_NUMBER and about a hundred more), and the launch adds a LEAD_FORM asset and the campaign_asset that links it to the same atomic call. cta is one of LEARN_MORE, GET_QUOTE, APPLY_NOW, SIGN_UP, CONTACT_US, SUBSCRIBE, DOWNLOAD, BOOK_NOW, GET_OFFER, REGISTER, GET_INFO, REQUEST_DEMO, JOIN_NOW, GET_STARTED. The question ORDER is the form’s layout and Google lets it be reordered afterwards but never added to or removed from, so ask the right things the first time. No pixel is needed: the form is submitted on Google and Google reports the submission itself. apple_search_ads - also no objective: a campaign is an app (adamId), a PLACEMENT (supplySource = APPSTORE_SEARCH_RESULTS, the default and the only one with keywords, or APPSTORE_SEARCH_TAB, APPSTORE_TODAY_TAB, APPSTORE_PRODUCT_PAGES_BROWSE) and a bidding strategy (biddingStrategy = MANUAL_CPT or MAX_CONVERSIONS, which bids toward installs, needs targetCpaCents and runs only in search results). Send adGroup or the campaign can never serve. SALES OR SIGNUPS: on the conversion goal of four networks, conversionEvent (top level of campaign) picks what counts as a conversion, "purchase" (the default, never needed) or "signup". meta objective=sales builds an OUTCOME_LEADS campaign optimising for the pixel’s COMPLETE_REGISTRATION (refused with product=advantage_plus); tiktok objective=conversions optimises for ON_WEB_REGISTER; snapchat goal=conversions optimises for PIXEL_SIGNUP; google Search, type=pmax, type=display and type=demand_gen get a campaign-level SIGNUP goal (shopping and app refuse it), need an enabled primary SIGNUP conversion action first, answering 409 CONFLICT without one (call_api POST …/ads/pixel?network=google {"type":"WEBPAGE","category":"SIGNUP"}, then the tag goes on the signup page) and must bid by count, not value. Anywhere else, or any other value, is refused rather than ignored. The network only learns from signups the business’s site actually reports to its pixel or tag; without that set up it learns nothing. Apple can only aim at installs. WHAT IS NOT CREATABLE, so a retry changes nothing: Meta catalogue sales (App Review did not grant catalog_management, and nothing on our side unlocks that); Google video (their API cannot create Video campaigns); Snapchat product sales (the dynamic creative needs a product set id and a dynamic template id, and Snapchat publishes no endpoint for either); on Apple awareness, engagement, video views, leads and product sales, none of which exist anywhere in its API; and on X, LEADS and PRODUCT SALES, for two reasons: X revived lead ads in its PRODUCT in August 2026 and Ads API v12 still publishes no lead objective, no lead card and no lead-retrieval endpoint, so goal=leads cannot be built and would have nowhere to send a form; and X’s Dynamic Product Ads are early access behind X Shopping Manager terms only the advertiser can accept, one account at a time, so access comes from X Shopping Manager and a retry here changes nothing. META LEADS ARE HALF A WALL AND HALF A GAP, and the halves need different sentences. The blocked half is INSTANT FORMS: creating one needs pages_manage_ads and reading a lead back needs leads_retrieval, App Review declined both, so that campaign could be built and never hand over a single lead. The other half is a lead ad that sends people to the ADVERTISER’S OWN WEBSITE, which needs no Meta permission we were refused and is simply NOT BUILT YET. "Nothing on our side unlocks Meta leads" is true of Instant Forms and false of the goal. TikTok’s Smart+ is chosen server-side, and it DOES finish a stack - this sentence used to say it could not, because TikTok refused every published call-to-action value on the Smart+ ad endpoint. TikTok’s own answer was that some campaign and identity combinations need a dynamic CTA PORTFOLIO id instead of a fixed value; the launch builds one and sends it inside ad_configuration, and the whole campaign/ad group/ad stack is verified live as of 2026-08-04. Smart+ cannot express awareness, video_views or engagement (its three campaign objectives are APP_PROMOTION, WEB_CONVERSIONS and LEAD_GENERATION), and none of them needs it: TikTok keeps their manual form past 2026. TARGET AN AUDIENCE AT LAUNCH, which is the only moment that matters - a campaign that spends its first day untargeted has already spent it. Get the ids from list_ad_lookups (type=audience) and send them on the network’s own block: meta adset.audienceIds / adset.excludedAudienceIds, tiktok adgroup.audienceIds / adgroup.excludedAudienceIds, google and snapchat at the TOP LEVEL as audienceIds / excludedAudienceIds. Three rules on all four: an EMPTY list is never sent (send no key at all - every one of these networks reads an empty include list as a filter that matched nobody, which is an ad set created successfully that cannot deliver); the same id on both sides is REFUSED rather than sent, because all four evaluate both and reach nobody in it silently; and Google takes user list RESOURCE NAMES ("customers/123/userLists/456"), never the bare id. Three products refuse audiences in words rather than dropping them: Meta advantage_plus hands the audience to Meta, Google type=app has no criteria of any kind, and Google type=pmax takes asset-group SIGNALS instead (audienceResourceNames, a DIFFERENT id space - "customers/123/audiences/456" - which seeds Google rather than restricting it, and has no exclusion). TikTok’s Smart+ DOES take them: they are nested under targeting_spec and the targeting optimisation mode is switched to MANUAL automatically, because under TikTok’s default AUTOMATIC it answers 200 and drops them. Apple has no audience object at all. FIVE THINGS THE STACK CAN NOW CARRY THAT IT COULD NOT, each optional and each leaving an untouched body unchanged. (1) META, BOOST A POST INSTEAD OF BUILDING AN AD: ad.media = { type: "existing_post", objectStoryId: "{page_id}_{post_id}" } and send NO primaryText, headline, destinationUrl, cta or upload - the published post already carries all five, and the boosted version keeps the likes and comments the organic post earned, which an ad rebuilt from the same image does not. The id is TYPED rather than picked because listing a Page’s posts is not built: it needs a PAGE access token and the connection stores a USER one (the scope it used to wait on, pages_read_engagement, was granted 2026-08-15). A post belonging to a different Page is well-formed and is refused before anything is created. Not available under product advantage_plus or the video_views objective. (2) META, THE VIDEO COVER FRAME: ad.media.thumbnailId, whose candidates come from call_api GET …/ads/media?video={videoId}. Omit it and Meta picks, exactly as before. Also on Meta: adset.billingEvent (default IMPRESSIONS, which is what every ad set here has always been billed on) and adset.destinationType, Meta’s conversion location, which was NEVER SENT before and left Meta to infer one. (3) TIKTOK, CAROUSEL AND PLACEMENTS: ad.format CAROUSEL_ADS takes 1–35 ad.imageIds plus ad.musicId. TikTok requires music on every carousel, but on a Smart+ launch ad.musicId may be OMITTED and a carousel-legal track is chosen automatically, so an image-only launch needs no track id. ad.showcaseProducts anchors products under an ad of ANY format. adgroup.placements / adgroup.subplacements / adgroup.automaticPlacements choose where it runs; naming none still resolves to the TikTok placement it always sent, so an untouched launch buys exactly the inventory it always did. (4) APPLE, AD-GROUP TARGETING: adGroup.targeting takes Apple’s targetingDimensions - age, gender, deviceClasses, appDownloaders and appCategories. The launch endpoint accepted this for months and no caller sent it, so every Apple campaign went out reaching everyone in its countries. appCategories exists ONLY on the APPSTORE_PRODUCT_PAGES_BROWSE placement and is REFUSED rather than dropped elsewhere. (5) SNAPCHAT, A FREQUENCY CAP: frequencyCap = { count, days }, refused before the campaign is created on the goals Snapchat does not allow it on. Snapchat also no longer downgrades a call to action it does not recognise to "More" in silence: a cross-network word like LEARN_MORE still produces the button it always did, a real Snapchat verb off our shortlist is sent as asked, and a value Snapchat has never heard of is refused by name. FOUR MORE, AND THESE ONES CHANGE WHAT AN OLD BODY DOES. (a) APPLE, THE AD IS BUILT AT LAUNCH: send ad = { productPageId, name? } to promote a Custom Product Page on any placement, with ids from list_ad_lookups type=product_page (which needs adamId - Apple publishes no search over an app’s pages). It is REQUIRED on supplySource APPSTORE_TODAY_TAB whenever adGroup travels with the launch, because the Today tab’s tap destination IS a Custom Product Page and Apple publishes no default; that combination without it is now a 400 raised before anything is created, where it used to answer 201 with a campaign that could never serve. The SEARCH TAB gets a default product page ad on its own, and search results and product-page browse render from the App Store listing and owe no ad at all. The 201 carries adId and creativeId (null exactly when no ad was owed) plus creativeState and creativeStateReasons - Apple’s own review verdict, null on a creative just created because Apple’s create returns the id alone. THAT STATE DECIDES WHETHER THE CAMPAIGN IS READY: an ad on a creative that has not cleared review is accepted by Apple and then delivers nothing, which looks exactly like success. A failed ad create now rolls the campaign back and answers 502 (Apple refused) or 400 (our own check, so nothing was sent). (b) META, TWO DECLARATIONS: specialAdCategoryCountry (two-letter codes, WHICH JURISDICTIONS a regulated declaration covers) is now REQUIRED - a 400 without it - when specialAdCategories is anything other than NONE and adset.countries names two or more; one targeted country still derives itself. And contextualMultiAds is OPT_IN or OPT_OUT, whether these ads may be paired with other advertisers’ ads. UNSET IS NOT OPT_OUT: Meta enrols any creative created without an enroll_status, so leaving it out keeps Meta’s default, which is ENROLLED, and an omitted field is not an opt-out. OPT_OUT is the owner’s choice. It is create-only per creative on Meta’s side, so the launch’s one answer applies to every ad in it, fan-out included. Meta also refuses an adset.publisherPlatforms list of which NOT ONE value is a platform it offers, instead of launching somewhere else. (c) SNAPCHAT, DEMOGRAPHICS AND THE PROFILE: ageMin is 13 to 35 and ageMax is 13 to 55 - the two bounds do NOT share a range - and all three of an out-of-range ageMin, an out-of-range ageMax and an ageMax below ageMin are now 400s rather than silent clamps (the old clamp turned "45 to 30" into "45 to 45"). Omit ageMax for no upper limit rather than sending 55. profileId (alias profile_id) carries a Snapchat Public Profile id for the owner who holds one when our connect could not fetch it; the CONNECTION’s profile always wins when both exist. With neither, the launch answers 403 FORBIDDEN before anything is created - that was a 502, and a retry changes nothing: the gate is ours, Snapchat was never asked, and nothing changes until a profile exists and the account is reconnected. (d) TIKTOK, TWO FIELDS SMART+ CANNOT CARRY: adgroup.subplacements and ad.showcaseProducts have no Smart+ field to live in. On traffic (the one objective with both families) naming either sends the launch down the manual path; on conversions, leads, app_promotion and product_sales (Smart+ only) it is a refusal whose only remedy is dropping those two fields. The sub-placement one is the one that spends money: it is a NARROWING, so an ad group whose list was dropped runs on every TikTok surface, which is to say it buys the surfaces the advertiser just excluded. DEVICES AND THE OLDEST PHONE SOFTWARE: devices (any of computer, iphone, android) goes on meta adset.devices, tiktok adgroup.devices and at the top level on snapchat, google and x. minOsVersion ({ "iphone": "26.5" } or { "android": "10.0" }) sits beside it (meta adset.minOsVersion, manual only; tiktok adgroup.minOsVersion; top level on snapchat, x and google type=display or demand_gen) and limits the ad to phones on that version and newer, for ONE kind of phone: iPhone only or Android only in devices, or an app ad’s store phone. Apple and Google App campaigns have no version setting. Each network offers its own versions (list_ad_os_versions lists them): a version it lacks is a 400 naming the nearest it has, before anything is created. The exact body per network is in the REST reference at https://affiliateo.com/docs/api. Creating a campaign here starts the 1% ads platform fee on that campaign’s spend. An account still inside its 7-day partner-link fee trial pays no platform fee at all, here or on any other surface, so there may be nothing to warn about yet. Requires a read_write key.
| Argument | Type | Description |
|---|---|---|
| type | string | Google only, and it is Google’s objective: omit for a Search stack, or pmax | display | demand_gen | app | shopping. Ignored on the other five networks. |
| account | string | Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account. |
| network | string | Default meta |
| campaign* | object | The launch body for the chosen network - campaignName plus the objective/goal field and the budget, targeting, creative and ad blocks that network takes. Free-form because the six bodies share almost nothing; GET /api/v1 describes each one. |
| validate | boolean | Google only: dry-run the whole stack server-side and create nothing. Google enforces its asset minimums itself, so this is the only honest way to check a build before committing to it. |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"campaign"
],
"properties": {
"type": {
"type": "string",
"description": "Google only, and it is Google’s objective: omit for a Search stack, or pmax | display | demand_gen | app | shopping. Ignored on the other five networks."
},
"account": {
"type": "string",
"description": "Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account."
},
"network": {
"enum": [
"meta",
"google",
"tiktok",
"apple_search_ads",
"x",
"snapchat"
],
"type": "string",
"description": "Default meta"
},
"campaign": {
"type": "object",
"description": "The launch body for the chosen network - campaignName plus the objective/goal field and the budget, targeting, creative and ad blocks that network takes. Free-form because the six bodies share almost nothing; GET /api/v1 describes each one.",
"additionalProperties": true
},
"validate": {
"type": "boolean",
"description": "Google only: dry-run the whole stack server-side and create nothing. Google enforces its asset minimums itself, so this is the only honest way to check a build before committing to it."
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The ads settings’ account picker: every ad account the connection reaches on one network, with enabled (tracked or not) and the cap. Tracked accounts are the ones the sync pulls, get_ad_stats shows and the 1% platform fee counts on; the account parameter on the other ad tools picks among them. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| network* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"network"
],
"properties": {
"network": {
"enum": [
"meta",
"google",
"tiktok",
"apple_search_ads",
"x",
"snapchat"
],
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The audiences on the ad account, with their size/coverage and status, plus the create/rename/delete paths. WHAT EACH NETWORK CAN MINT TODAY - meta: website, engagement, app_activity, lookalike. tiktok: website, app_activity, engagement, lookalike (and sharing). google: website, lookalike. snapchat: website, app_activity, engagement, lookalike. x: lists, renames and deletes them, creates none (and sharing). apple_search_ads: none - the API has no audience object. This is the audience MANAGEMENT surface. Google builds two kinds: a remarketing list (a rule over the page URL, kind "website", which REQUIRES urlContains because Google has no rule meaning "everyone") and a lookalike segment (kind "lookalike", seeded from another list, and usable on DEMAND GEN campaigns only). Snapchat builds four, all one object type (a SEGMENT): "website" off the Snap Pixel, "app_activity" off a Snap App, "engagement" off swipes/views/Story taps on the business’s own ads, and "lookalike" off a seed segment in ONE country. Snapchat needs at least one EVENT on the first two (event: "PURCHASE", or networkOptions.events for several) - it has no "everyone the pixel saw" form and no URL condition at all, so a page-specific audience is a custom event. Apple answers 501: its API has no audience object of any kind. The ids for an audience_ids / excluded_audience_ids / saved_audience_id field also come from list_ad_lookups (type=audience or saved_audience), which answers on every network that has one, and on Google it is also where the second Audience id space lives under saved_audience. TikTok also has SAVED AUDIENCES, which Meta has no equivalent of - a whole reusable targeting set (locations, ages, interests, plus which audiences to include and exclude) and the thing saved_audience_id points at. Pass type: "saved" for those; they come back under savedAudiences, never mixed into audiences, because the two id spaces look identical and writing one where the other belongs is accepted upstream. Creating, renaming and deleting audiences is call_api on the same paths, and SHARING one is call_api on …/ads/audiences/{audienceId}/share - TIKTOK AND X, not TikTok alone, which lends an existing audience to another ad account on the same connection so an advertiser running several does not rebuild the same purchaser audience once per account, each copy starting from its own date. That moves no data about anybody: it makes an audience that already exists targetable by a second account of the same advertiser, the owner keeps it, and it is withdrawable. X’S SHAPE DIFFERS AND THE DIFFERENCE COSTS CALLS: X grants ONE permission per pair rather than taking a list, so lending to three accounts is three sequential POSTs; the level sent is READ_ONLY, so the borrower can target the audience and cannot rename, refill or delete it; withdrawing is a read and then a delete, because X addresses the grant by its own permission id rather than by the pair of accounts it joins; and X allows a share only between ad accounts under the same business unless the owning account holds the SHARE_AUDIENCE_OUTSIDE_BUSINESS account feature. Customer-list uploads (hashed emails and phones) stay refused on every network, which is a product decision rather than a gap. TikTok’s Audience Management permission IS granted (verified live 2026-08-02); if a call still names it as missing, the business connected TikTok before approval and has to reconnect once, because scopes are fixed into the token at consent.
| Argument | Type | Description |
|---|---|---|
| ids | string | TikTok only: comma-separated audience ids to narrow to. Max 100, which is TikTok’s own cap. |
| type | string | TikTok only: "custom" (default) or "saved". Saved audiences answer under savedAudiences. |
| account | string | Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account. |
| network | string | Default meta. See this tool’s description for which networks can mint which kinds; a network with no writer answers 501 carrying its own reason. |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"ids": {
"type": "string",
"description": "TikTok only: comma-separated audience ids to narrow to. Max 100, which is TikTok’s own cap."
},
"type": {
"type": "string",
"description": "TikTok only: \"custom\" (default) or \"saved\". Saved audiences answer under savedAudiences."
},
"account": {
"type": "string",
"description": "Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account."
},
"network": {
"enum": [
"meta",
"google",
"tiktok",
"apple_search_ads",
"x",
"snapchat"
],
"type": "string",
"description": "Default meta. See this tool’s description for which networks can mint which kinds; a network with no writer answers 501 carrying its own reason."
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The live campaign tree with statuses, budgets, and bids, fetched from the ad network right now: Meta campaign→ad set→ad, Apple campaign→ad group→keyword, Google campaign→ad group→ads + keywords, TikTok campaign→ad group→ad (manual and Smart+ in one list; reading needs no write approval, so this works today and the response says whether writes do), Snapchat campaign→ad squad→ad. Row ids are what update_ad_entity takes, except Google ads and keywords: the tree gives each ad group’s id and the plain child id, and update_ad_entity wants them joined as "adGroupId~childId". tree_error says whether the list is complete. Campaigns are fetched first and their children in a second pass, so a partial tree still returns 200 with tree_error true and tree_error_reason carrying the network’s own message. A missing row there means unread, NOT deleted, and a later read can return it. Google is the exception: its tree is one call, so it fails outright rather than partially. APPLE TRUNCATES BY DESIGN and reports it rather than hiding it: ad-group and keyword detail is loaded for a window of 50 campaigns, so on a bigger account read `truncation` before concluding anything about the campaigns past it. It carries detail_offset, detail_loaded, campaigns_before_window and next_detail_offset - pass that last one back as detail_offset for the next slice. Two of the narrowing arguments are applied by APPLE rather than by us, so a 500-campaign org costs what a small one does: campaign_ids reads exactly those, and serving_status filters on Apple’s DELIVERY state, which is not the same question as ENABLED or PAUSED - a campaign can be enabled and not serving. keyword_pages reads past the default 2,000 keywords per campaign. None of the four applies to the other networks.
| Argument | Type | Description |
|---|---|---|
| account | string | Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account. |
| network | string | Default meta |
| campaign_ids | string | Apple only: comma-separated campaign ids. Becomes an Apple-side `id IN` condition, not a filter here. |
| business_slug* | string | Business slug, from list_businesses |
| detail_offset | number | Apple only: where the 50-campaign detail window starts. Use truncation.next_detail_offset from the previous call. |
| keyword_pages | number | Apple only: how many 1,000-keyword pages to read per campaign (default 2). A parameter rather than a bigger default, because this tree loads on every dashboard render. |
| serving_status | string | Apple only: RUNNING | NOT_RUNNING. Apple’s DELIVERY state, not its ENABLED/PAUSED status. |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"account": {
"type": "string",
"description": "Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account."
},
"network": {
"enum": [
"meta",
"google",
"tiktok",
"apple_search_ads",
"x",
"snapchat"
],
"type": "string",
"description": "Default meta"
},
"campaign_ids": {
"type": "string",
"description": "Apple only: comma-separated campaign ids. Becomes an Apple-side `id IN` condition, not a filter here."
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"detail_offset": {
"type": "number",
"description": "Apple only: where the 50-campaign detail window starts. Use truncation.next_detail_offset from the previous call."
},
"keyword_pages": {
"type": "number",
"description": "Apple only: how many 1,000-keyword pages to read per campaign (default 2). A parameter rather than a bigger default, because this tree loads on every dashboard render."
},
"serving_status": {
"type": "string",
"description": "Apple only: RUNNING | NOT_RUNNING. Apple’s DELIVERY state, not its ENABLED/PAUSED status."
}
}
}Look up the IDs and network-minted values that ad fields take - locations, interests, behaviours, languages, audiences, pixels, apps, catalogues, videos, images, creatives, conversion actions and more - on any of the six networks, in ONE shape: { id, label, meta }, where `id` is always the value that goes on the wire and `label` is always what a human picks from. This is where the values describe_ad_fields asks for come from: a field that has a source names it as `lookup` in that tool’s response, and the name it gives is the `type` here. WITH NO type IT RETURNS THE CATALOGUE: every lookup every network has, what each needs, and whether it can be answered today. Answerable now, per network - meta: geo, interest, behavior, language, audience, page, pixel, app, custom_conversion, video, image. google: geo, language, keyword_idea, audience, saved_audience, shared_set, topic, asset, custom_conversion, merchant_center. tiktok: geo, zip_code, language, interest, interest_keyword, purchase_intent, behavior, audience, saved_audience, device_model, carrier, isp, app, app_event, pixel, custom_conversion, catalog, product_set, product, business_center, identity, organic_post, video, music, lead_form. apple_search_ads: app, geo, product_page, creative, keyword_idea. x: funding_instrument, geo, interest, language, device_model, carrier, app, topic, keyword_idea, audience, organic_post, card, pixel, iab_category, advertiser_category, content_category, event, platform, platform_version, tv_market, tv_show. snapchat: geo, interest, audience, language, device_model, carrier, pixel, custom_conversion, catalog, creative, video, app. THE SAME CONCEPT IS A DIFFERENT ID SPACE ON EVERY NETWORK, so an id is only valid on the network it was looked up on: a Meta interest id is a well-formed, wrong value in a TikTok body and nothing upstream flags it. On Google, `id` is the full RESOURCE NAME ("customers/123/assets/456") for assets, audiences and conversion actions, because Google refuses the bare id; on Google and Apple a keyword has no id at all, so `id` is the keyword TEXT. A type the network does not have is a 400 listing the ones it does; one it has that nobody has built yet, or that the network has refused us access to, is a 501 naming which - neither is an empty result list, because an empty list cannot be told apart from "you have none". q needs 2+ characters except on lookups the catalogue marks `queryless` (an account inventory with nothing to search, or one that takes a parent id instead - Apple’s product pages want an adamId, not a search term). Paging is ?limit= (max 200) plus the opaque cursor the previous page returned.
| Argument | Type | Description |
|---|---|---|
| q | string | Search text, 2+ characters unless the lookup is queryless |
| type | string | What to look up (see the menu in this tool’s description). Omit for the catalogue. |
| limit | integer | 1–200, default 50 |
| cursor | string | The nextCursor from the previous page. Not hand-buildable. |
| params | object | Extra parameters a specific lookup declares, forwarded as query params - e.g. TikTok’s ISP list needs { "locationIds": "6252001" } because no global one exists, TikTok’s app events need { "appId", "optimizationGoal" }, Snapchat’s regions need { "country": "us" }, and Apple’s product pages need { "adamId": "987654321" }. The catalogue call lists each lookup’s params, and a missing required one is refused before the network is called. |
| account | string | Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account. |
| network | string | Required together with type. Omit BOTH to list every network’s lookups. |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"q": {
"type": "string",
"description": "Search text, 2+ characters unless the lookup is queryless"
},
"type": {
"type": "string",
"description": "What to look up (see the menu in this tool’s description). Omit for the catalogue."
},
"limit": {
"type": "integer",
"description": "1–200, default 50"
},
"cursor": {
"type": "string",
"description": "The nextCursor from the previous page. Not hand-buildable."
},
"params": {
"type": "object",
"description": "Extra parameters a specific lookup declares, forwarded as query params - e.g. TikTok’s ISP list needs { \"locationIds\": \"6252001\" } because no global one exists, TikTok’s app events need { \"appId\", \"optimizationGoal\" }, Snapchat’s regions need { \"country\": \"us\" }, and Apple’s product pages need { \"adamId\": \"987654321\" }. The catalogue call lists each lookup’s params, and a missing required one is refused before the network is called.",
"additionalProperties": true
},
"account": {
"type": "string",
"description": "Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account."
},
"network": {
"enum": [
"meta",
"google",
"tiktok",
"apple_search_ads",
"x",
"snapchat"
],
"type": "string",
"description": "Required together with type. Omit BOTH to list every network’s lookups."
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The minimum phone software versions one network offers, for min_os_version on set_ad_basic_targeting and minOsVersion on a launch body: { network, phone, versions: [{ version: "26.0", value, label: "iOS 26.0 and newer" }], anyVersion?, note? }, newest first. version is what min_os_version takes ({ "iphone": "26.0" }); value is the network’s own spelling, never needed. READ LIVE from the network (kept six hours), because each network keeps its own list: on 2026-10-22 Meta offered iOS 26.0 and refused 26.5 while Google listed 26.5. A version the network lacks is refused when set. Meta, Google, TikTok, Snapchat and X answer; Apple has no version setting and answers with its reason. Google lists versions for every campaign, but only Display and Demand Gen take one.
| Argument | Type | Description |
|---|---|---|
| phone* | string | |
| account | string | Ad account id, when several are connected. |
| network* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"network",
"phone"
],
"properties": {
"phone": {
"enum": [
"iphone",
"android"
],
"type": "string"
},
"account": {
"type": "string",
"description": "Ad account id, when several are connected."
},
"network": {
"enum": [
"meta",
"google",
"tiktok",
"apple_search_ads",
"x",
"snapchat"
],
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Conversion history: date, type (subscription, one_time, renewal, trial, converted, refund, chargeback, restore), gross amount and commission in cents, and paid/unpaid status per row, each tagged with the earning affiliate’s ref_code. converted is a FILTER rather than a stored type: a trial that turns into a paying customer writes a second row for the first real payment, typed subscription or renewal and otherwise identical to a customer who never trialled. That row carries trial_conversion_id pointing back at its trial, and type=converted selects exactly those. conversion_type on the wire never says converted, deliberately - changing it would reclassify rows for every integration already branching on subscription; trial_conversion_id is what sets the two apart. The storefront rail has no trials, so converted there matches nothing. Refunds and chargebacks are separate negative rows, and a restore row gives back (positive) what an undone refund or chargeback took. A sale a dispute holds reads status disputed: its unpaid commission waits for the bank, and one already paid stays paid. partial: true marks a refund or chargeback of PART of a sale, which still stands. correction: true marks a correction a full take-back wrote beside itself: none of the sale’s money, only the commission that settles what the sale’s restores still move. Count its commission like any row’s (the rows then sum to what the affiliate is owed); it is not a refund of its own. Scope to one affiliate with email OR ref_code, or omit both for the app-wide feed. from/to (YYYY-MM-DD) narrows to a date window and type narrows to particular conversion types; both filter in the query, upstream of the cursor, so a filtered feed pages through matching rows only. Cursor-paginated like list_affiliates. No customer PII.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end, YYYY-MM-DD (with from) |
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| from | string | Window start, YYYY-MM-DD (with to) |
| type | string | Filter to particular conversion types, comma-separated: any of subscription, one_time, renewal, trial, converted, refund, chargeback, restore (e.g. "refund,chargeback" for reversals only). converted means a payment that grew out of a free trial; it matches on the row trial_conversion_id rather than on conversion_type, which stays subscription or renewal on those rows. restore is a refund or chargeback that was undone, giving back what it took. Omit for every type. Unknown values are rejected rather than returning nothing. |
| string | Scope to one affiliate by email | |
| limit | integer | Page size, 1–500 (default 100) |
| ref_code | string | Scope to one affiliate by referral code |
| business_slug* | string | Business slug, from list_businesses |
| starting_after | string | Conversion id of the last row of the previous page |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"to": {
"type": "string",
"description": "Window end, YYYY-MM-DD (with from)"
},
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"from": {
"type": "string",
"description": "Window start, YYYY-MM-DD (with to)"
},
"type": {
"type": "string",
"description": "Filter to particular conversion types, comma-separated: any of subscription, one_time, renewal, trial, converted, refund, chargeback, restore (e.g. \"refund,chargeback\" for reversals only). converted means a payment that grew out of a free trial; it matches on the row trial_conversion_id rather than on conversion_type, which stays subscription or renewal on those rows. restore is a refund or chargeback that was undone, giving back what it took. Omit for every type. Unknown values are rejected rather than returning nothing."
},
"email": {
"type": "string",
"description": "Scope to one affiliate by email"
},
"limit": {
"type": "integer",
"description": "Page size, 1–500 (default 100)"
},
"ref_code": {
"type": "string",
"description": "Scope to one affiliate by referral code"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"starting_after": {
"type": "string",
"description": "Conversion id of the last row of the previous page"
}
}
}List an app’s affiliates, newest first, each with its status (active, removed from the app, banned, left, or inactive: account closed); status keeps one. Cursor-paginated: the response carries has_more; pass the last row’s id as starting_after for the next page. Emails are never included; correlate via ref_code. Every row carries user_id, the affiliate’s account id, which is what update_live_chat_settings’s picked_user_ids takes. Every row carries the payout readiness object ({ identity_verified, payouts_enabled }) and personal_commission (the affiliate’s owner-negotiated deal, or null on program rates; new customers only); include_payouts adds payout buckets per row (per-click for web_traffic apps, plus a click_payout object); include_recurring adds the MRR / subscriptions / churn block per row, one query for the whole app so it costs the same on 500 rows as on 1. A `free_access` object (null on apps with no way to give free access) says whether the owner gave this affiliate the paid app free: enabled, mode (revenuecat or app_check), pending + waiting (customer_not_found or ambiguous_email: switched on, not landed yet), entitlement_id, product_id, until (null = no end), app_email, granted_at, expires_at. Change it with set_affiliate_free_access. A `recurring` object gives what the referrals pay every MONTH: mrr_cents (the COMMISSION per month, never the subscription value the customers pay), arr_cents, subscribers, trialing (referrals inside a free trial RIGHT NOW - outside subscribers and outside mrr_cents because they have paid nothing, and it FALLS when a trial ends whichever way it ended), not_renewing (auto-renew off, still paying, still counted inside subscribers), churned, churn_rate and unknown_interval. churn_rate is a percentage and is NULL rather than 0 until five people have ever subscribed - null means “not enough history”, never “no churn”. A non-zero unknown_interval means some live subscriptions have an unreadable billing period, so mrr_cents is a FLOOR and not a total. It is a RATE at the subscription set as of today, so from/to does not and cannot filter it.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| limit | integer | Page size, 1–500 (default 100) |
| status | string | Default all |
| business_slug* | string | Business slug, from list_businesses |
| starting_after | string | Affiliate id of the last row of the previous page |
| include_payouts | boolean | Add payout buckets to each row |
| include_recurring | boolean | Add the MRR / subscriptions / churn block to each row |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"limit": {
"type": "integer",
"description": "Page size, 1–500 (default 100)"
},
"status": {
"enum": [
"active",
"removed",
"banned",
"left",
"inactive",
"all"
],
"type": "string",
"description": "Default all"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"starting_after": {
"type": "string",
"description": "Affiliate id of the last row of the previous page"
},
"include_payouts": {
"type": "boolean",
"description": "Add payout buckets to each row"
},
"include_recurring": {
"type": "boolean",
"description": "Add the MRR / subscriptions / churn block to each row"
}
}
}The people asking to be added to one App Store app’s people list (Let people request access, request_access in list_sidebar_apps), oldest first: id, user_id, name, username, avatar_url, kind (team or member) and created_at. Under "Private + team + people you pick" and "Private + people you pick", the people the list could hold (members, or the team for Leads and the ads apps) who cannot open the app may ask. Someone who left, was banned or can no longer be on the list drops out of it. Reading settles nothing. Approve one with approve_app_access_request, deny one with deny_app_access_request. A Live Chat’s requests are list_live_chat_access_requests. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| instance_id* | string | id from list_sidebar_apps |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"instance_id"
],
"properties": {
"instance_id": {
"type": "string",
"description": "id from list_sidebar_apps"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Every payment connection of an app, read from the app alone: stripe, paddle, whop, polar, shopify, woocommerce, revenuecat ("pending_project" when approved but no project picked), apple, google_play and adapty, each with connected and what the dashboard shows (account ids, a key’s last four, webhook ids, the store’s webhook URL to paste), plus web_provider, web_providers (every web provider connected: a website may sell through several), mobile_provider, can_connect_mobile and any health_issue. While RevenueCat is pending_project it also lists the projects to pick from (projects [{ id, name }], or null with projects_error). include_stripe_status: true asks Stripe once, when connected, for details_submitted, charges_enabled, payouts_enabled and business_name (or status_error). apple and google_play also carry checks, the last credential checklist (or null; check_store_credentials runs it again), and apple carries asc_key (the App Store Connect key’s last four and when it was added, or null). google_play status "pending" (connected false, pending true, with pending_since and pending_until) means Google accepts the key but Play access is not active yet: it is checked again every 10 minutes for 72 hours and goes live once the checks pass. google_play notifications is { topic, subscription, managed } once the optional real-time notifications are set up (managed: Affiliateo made the push subscription with connect_google_play_notifications), else null. No secret is ever in it. Connect with connect_app_provider. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| business_slug* | string | Business slug, from list_businesses |
| include_stripe_status | boolean |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"include_stripe_status": {
"type": "boolean"
}
}
}Everyone invited to an invite-only app, newest first: user_id, name, username, avatar_url, created_at. An invite only matters while the app’s visibility is invite_only. Find someone to invite with search_app_invite_candidates. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The people asking to join one app that approves who joins (require_application on an affiliate program, a web traffic app or a clipping app), oldest first: id, user_id, name, username, avatar_url and created_at. The same list as Requests on the app’s Visibility page in the dashboard. Someone banned, or already in (invited, or an affiliate already), drops out of it; an app that does not approve who joins has none, except from the people the owner removed from it (removed: true), who ask to come back on any running affiliate program and get their old link back when approved. Reading settles nothing. Approve one with approve_app_join_request, deny one with deny_app_join_request. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| app_id* | string | App UUID or app slug, from the apps array in list_businesses |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app_id"
],
"properties": {
"app_id": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The collab and placement requests creators sent a collab app, newest first: status (pending, approved, denied, completed), the payout asked for and agreed, the platform, the analytics screenshot, the review note, and the creator’s name, username and social accounts. Reading settles nothing. Deny one with deny_app_request, approve one with approve_app_request (a key with its Payouts switch on). Requires the business OWNER’s key, or a manager’s own key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The App Store and Play Store screenshots and preview videos the owner shows affiliates of an app with a mobile rail (the dashboard’s Screens tab), by section then position. Sections and their sizes come back in `sections`: app_ios_mobile, app_ios_tablet, app_android_mobile and app_android_tablet hold 10 each, onboarding (Onboarding / Paywall) holds 50. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The app’s Transactions tab: every conversion newest first, organic sales, paid-network sales and the owner’s own link included (the affiliate feed leaves those out). Each row: amount (and in USD), provider, commission, the tab’s Source label, source_type (organic, affiliate or a network), display_type and display_status (unpaid, paid, refunded, na, on_hold), affiliate_id and ref_code, payable_at and paid_at. No customer details. Paged with limit (1 to 500, default 100) and offset; has_more says another page follows. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| limit | integer | |
| offset | integer | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"limit": {
"type": "integer"
},
"offset": {
"type": "integer"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The Visitors tab of the dashboard’s Funnels page: the people who used the app in the window, most recently seen first. Each: visitor_id (open their path with get_visitor_journey), country, city, device, browser, os, source, referrer, referrer_name, ad_source (the paid network that sent them, if one did), last_seen and spent_cents (what their linked sales add up to, refunds taken away). limit 1 to 100 (default 25); while has_more is true pass next_cursor back as cursor. from/to as for get_app_analytics. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end: YYYY-MM-DD (inclusive) or an ISO 8601 time (exclusive) |
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| from | string | Window start: YYYY-MM-DD or an ISO 8601 time |
| limit | integer | 1 to 100, default 25 |
| cursor | string | next_cursor from the previous page |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"to": {
"type": "string",
"description": "Window end: YYYY-MM-DD (inclusive) or an ISO 8601 time (exclusive)"
},
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"from": {
"type": "string",
"description": "Window start: YYYY-MM-DD or an ISO 8601 time"
},
"limit": {
"type": "integer",
"description": "1 to 100, default 25"
},
"cursor": {
"type": "string",
"description": "next_cursor from the previous page"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The people banned from the business, newest first, with who banned them. Requires the business OWNER’s key, or a moderator’s own key.
| Argument | Type | Description |
|---|---|---|
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The open times of a `booking` element on one of the business’s product pages, as ISO 8601 instants, soonest first: what the page shows a visitor. Answers "when is she free?". Also returns the call length in minutes, the OWNER’s time zone (the one the opening hours are written in; the slots themselves are instants), the location label and the element’s id. ONE BUSINESS IS ONE DIARY: a time taken through ANY of the business’s pages is absent, and a taken time is simply not listed (this never says who has it). block is optional when the page has exactly one booking element; with several, the error lists their ids. Days off and a daily limit set on the element are already applied. Default window: now, for 31 days; at most 45 days per call. TO MOVE A CALL pass lead_id instead of product: the answer is the times THAT call could move to (its own time is not counted as busy and the minimum notice is waived), which is what reschedule_booking accepts. READ ONLY: a call is booked by the visitor on the page, never through the API. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| to | string | YYYY-MM-DD, today, tomorrow or ISO 8601. Default: 31 days after from |
| from | string | YYYY-MM-DD, today, tomorrow or ISO 8601. Default: now |
| block | string | The booking element’s id (get_product lists it in page_settings.blocks). Optional when the page has one |
| lead_id | string | A booked call’s lead UUID: list the times that call could MOVE to. product and block are then ignored |
| product | string | Product UUID, short id (prod_…) or URL slug, from list_products |
| timezone | string | IANA zone that bare dates and today / tomorrow are read in. Default UTC |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"to": {
"type": "string",
"description": "YYYY-MM-DD, today, tomorrow or ISO 8601. Default: 31 days after from"
},
"from": {
"type": "string",
"description": "YYYY-MM-DD, today, tomorrow or ISO 8601. Default: now"
},
"block": {
"type": "string",
"description": "The booking element’s id (get_product lists it in page_settings.blocks). Optional when the page has one"
},
"lead_id": {
"type": "string",
"description": "A booked call’s lead UUID: list the times that call could MOVE to. product and block are then ignored"
},
"product": {
"type": "string",
"description": "Product UUID, short id (prod_…) or URL slug, from list_products"
},
"timezone": {
"type": "string",
"description": "IANA zone that bare dates and today / tomorrow are read in. Default UTC"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The business’s storefront-affiliate sales: date, type, product, gross amount and commission (cents), payout status, and the earning affiliate’s ref_code. ref_code scopes to one affiliate; from/to (YYYY-MM-DD) to a window; type to particular conversion types, filtered upstream of the cursor. Refunds/chargebacks are separate negative rows. Cursor-paginated. No customer PII.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end, YYYY-MM-DD (with from) |
| from | string | Window start, YYYY-MM-DD (with to) |
| type | string | Filter to particular conversion types, comma-separated: any of subscription, one_time, renewal, trial, converted, refund, chargeback, restore (e.g. "refund,chargeback" for reversals only). converted means a payment that grew out of a free trial; it matches on the row trial_conversion_id rather than on conversion_type, which stays subscription or renewal on those rows. restore is a refund or chargeback that was undone, giving back what it took. Omit for every type. Unknown values are rejected rather than returning nothing. |
| limit | integer | Page size, 1–500 (default 100) |
| ref_code | string | Scope to one affiliate by referral code |
| business_slug* | string | Business slug, from list_businesses |
| starting_after | string | Conversion id of the last row of the previous page |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"to": {
"type": "string",
"description": "Window end, YYYY-MM-DD (with from)"
},
"from": {
"type": "string",
"description": "Window start, YYYY-MM-DD (with to)"
},
"type": {
"type": "string",
"description": "Filter to particular conversion types, comma-separated: any of subscription, one_time, renewal, trial, converted, refund, chargeback, restore (e.g. \"refund,chargeback\" for reversals only). converted means a payment that grew out of a free trial; it matches on the row trial_conversion_id rather than on conversion_type, which stays subscription or renewal on those rows. restore is a refund or chargeback that was undone, giving back what it took. Omit for every type. Unknown values are rejected rather than returning nothing."
},
"limit": {
"type": "integer",
"description": "Page size, 1–500 (default 100)"
},
"ref_code": {
"type": "string",
"description": "Scope to one affiliate by referral code"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"starting_after": {
"type": "string",
"description": "Conversion id of the last row of the previous page"
}
}
}The business’s storefront affiliates, newest first: referral links (short + storefront), lifetime stats (visitors, sales, revenue, commission in cents - money net of refunds), and commission. `commission` is the affiliate’s personal deal when `custom` is true, else the business default, which is a FLOOR because a rate can live on each plan: `program_rates` carries the percent range across the business’s active plans, so quote the range for a non-custom row. ref_code returns one affiliate. from/to (YYYY-MM-DD, UTC days, inclusive) window visitors, sales, refunds, revenue and commission on every row, the way the dashboard table does; recurring is never windowed. include_payouts adds payout buckets per row; include_recurring adds the MRR / subscriptions / churn block per row, one query for the whole business so it costs the same at any page size. Cursor-paginated. Emails never included. A `recurring` object gives what the referrals pay every MONTH: mrr_cents (the COMMISSION per month, never the subscription value the customers pay), arr_cents, subscribers, trialing (referrals inside a free trial RIGHT NOW - outside subscribers and outside mrr_cents because they have paid nothing, and it FALLS when a trial ends whichever way it ended), not_renewing (auto-renew off, still paying, still counted inside subscribers), churned, churn_rate and unknown_interval. churn_rate is a percentage and is NULL rather than 0 until five people have ever subscribed - null means “not enough history”, never “no churn”. A non-zero unknown_interval means some live subscriptions have an unreadable billing period, so mrr_cents is a FLOOR and not a total. It is a RATE at the subscription set as of today, so from/to does not and cannot filter it. Single ref_code reads always include it.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end, YYYY-MM-DD (with from) |
| from | string | Window start, YYYY-MM-DD (with to). Windows visitors, sales, refunds, revenue and commission on every row; recurring is never windowed |
| limit | integer | Page size, 1–500 (default 100) |
| ref_code | string | Return a single affiliate by referral code |
| business_slug* | string | Business slug, from list_businesses |
| starting_after | string | Affiliate id of the last row of the previous page |
| include_payouts | boolean | Add payout buckets to each row |
| include_recurring | boolean | Add the MRR / subscriptions / churn block to each row |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"to": {
"type": "string",
"description": "Window end, YYYY-MM-DD (with from)"
},
"from": {
"type": "string",
"description": "Window start, YYYY-MM-DD (with to). Windows visitors, sales, refunds, revenue and commission on every row; recurring is never windowed"
},
"limit": {
"type": "integer",
"description": "Page size, 1–500 (default 100)"
},
"ref_code": {
"type": "string",
"description": "Return a single affiliate by referral code"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"starting_after": {
"type": "string",
"description": "Affiliate id of the last row of the previous page"
},
"include_payouts": {
"type": "boolean",
"description": "Add payout buckets to each row"
},
"include_recurring": {
"type": "boolean",
"description": "Add the MRR / subscriptions / churn block to each row"
}
}
}List every business this API key can act on, with each ad network’s connection status and every app’s id/slug/type/status (all five types). It is the source of the business_slug and app values the other tools take.
No arguments.
{
"type": "object",
"properties": {}
}The Calendar app’s dated entries, earliest first: every copy of the app or one (instance); from and to (ISO 8601) keep the entries that touch that window. Requires the business OWNER’s key, or a manager’s own key.
| Argument | Type | Description |
|---|---|---|
| to | string | ISO 8601 with an offset |
| from | string | ISO 8601 with an offset |
| instance | integer | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"to": {
"type": "string",
"description": "ISO 8601 with an offset"
},
"from": {
"type": "string",
"description": "ISO 8601 with an offset"
},
"instance": {
"type": "integer"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The chat’s messages, newest first, each with its sender (user_id, username, display_name): every copy of the Chat app or one (instance); pinned: true keeps each copy’s pinned message. SEARCH like the chat’s own search: q (words, * as a wildcard), from (part of a display name, a username or a user id), after and before (YYYY-MM-DD, both included). Paged: while has_more is true, pass next_cursor back as cursor. Sending and deleting chat messages stay in the apps. Requires the business OWNER’s key, or a moderator’s own key.
| Argument | Type | Description |
|---|---|---|
| q | string | Words to search for, * as a wildcard |
| from | string | Who sent it: part of a display name, a username or a user id |
| after | string | YYYY-MM-DD, included |
| limit | integer | 1 to 100, default 50 |
| before | string | YYYY-MM-DD, included |
| cursor | string | |
| pinned | boolean | |
| instance | integer | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"q": {
"type": "string",
"description": "Words to search for, * as a wildcard"
},
"from": {
"type": "string",
"description": "Who sent it: part of a display name, a username or a user id"
},
"after": {
"type": "string",
"description": "YYYY-MM-DD, included"
},
"limit": {
"type": "integer",
"description": "1 to 100, default 50"
},
"before": {
"type": "string",
"description": "YYYY-MM-DD, included"
},
"cursor": {
"type": "string"
},
"pinned": {
"type": "boolean"
},
"instance": {
"type": "integer"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Every course in the business’s Courses app (all copies, or one with instance), hidden ones included, each with chapter_count and lesson_count. `instances` lists the live copies; with none, add one with add_sidebar_app (courses). Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| instance | integer | One copy of the Courses app |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"instance": {
"type": "integer",
"description": "One copy of the Courses app"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The Revenue app’s Customers list, RevenueCat style: summary { customers, trialing, paid, revenue_cents (every sale and renewal of these customers, US cents, refunds off) } and the customers, newest seen first, 50 a page: { id, app_id, user_id (the app’s own id once signed in), country, first_seen, last_seen, subscription_status (the latest subscription: trialing | active | grace_period = billing issue | paused | expired, null if never subscribed), will_renew, spent_cents, latest_purchase { product, at } }. audience= active (a live or trial subscription), non_subscription (bought once, never subscribed) or expired (subscribed, nothing live now). A customer is a PERSON: a phone and a laptop signed in as the same app user are one. Page with before = next_cursor. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| app | string | all (default), one app id, or several separated by commas |
| before | string | The next_cursor of the previous page |
| audience | string | Default all |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"app": {
"type": "string",
"description": "all (default), one app id, or several separated by commas"
},
"before": {
"type": "string",
"description": "The next_cursor of the previous page"
},
"audience": {
"enum": [
"all",
"active",
"non_subscription",
"expired"
],
"type": "string",
"description": "Default all"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Who said they are going to an event, first to answer first: user_id, username, display_name, avatar_url, rsvped_at, and the rsvp_count. Paged: while has_more is true, pass next_cursor back as cursor. Requires the business OWNER’s key, or a manager’s own key.
| Argument | Type | Description |
|---|---|---|
| limit | integer | 1 to 200, default 100 |
| cursor | string | |
| event_id* | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"event_id"
],
"properties": {
"limit": {
"type": "integer",
"description": "1 to 200, default 100"
},
"cursor": {
"type": "string"
},
"event_id": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The business’s events with their RSVP counts: when upcoming (the default, soonest first), past or all (latest first); status active (the default), cancelled or all; instance for one copy of the Events app. Paged: while has_more is true, pass next_cursor back as cursor. Requires the business OWNER’s key, or a manager’s own key.
| Argument | Type | Description |
|---|---|---|
| when | string | |
| limit | integer | 1 to 100, default 50 |
| cursor | string | |
| status | string | |
| instance | integer | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"when": {
"enum": [
"upcoming",
"past",
"all"
],
"type": "string"
},
"limit": {
"type": "integer",
"description": "1 to 100, default 50"
},
"cursor": {
"type": "string"
},
"status": {
"enum": [
"active",
"cancelled",
"all"
],
"type": "string"
},
"instance": {
"type": "integer"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The FAQs app’s questions and answers, every copy of the app or one (instance), each copy in its order. Requires the business OWNER’s key, or a manager’s own key.
| Argument | Type | Description |
|---|---|---|
| instance | integer | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"instance": {
"type": "integer"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The Files app’s files, newest first, every copy of the app or one (instance): name, file_url, thumbnail_url, content_type, size_bytes, allow_downloads. file_url is temporary: read again for a fresh one. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| instance | integer | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"instance": {
"type": "integer"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Every value that occurred in the window and could become a funnel step, with how often: pages (web page paths), screens (mobile screen names) and goals (custom goals the app fired, type custom, and the built-in purchased, subscribed, trial, converted (a free trial turning paid) and renewed, type event). The 100 most frequent of each. Put a value in a step exactly as listed, with the type beside it. from/to as for get_app_analytics. The pages and screens are also the places Live Chat’s page_rules name (update_live_chat_settings): the same list the dashboard’s Where it shows checklist offers, over the last 30 days (the default window). Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end: YYYY-MM-DD (inclusive) or an ISO 8601 time (exclusive) |
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| from | string | Window start: YYYY-MM-DD or an ISO 8601 time |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"to": {
"type": "string",
"description": "Window end: YYYY-MM-DD (inclusive) or an ISO 8601 time (exclusive)"
},
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"from": {
"type": "string",
"description": "Window start: YYYY-MM-DD or an ISO 8601 time"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Reads with the app’s stored service account: { provider, can_manage, problem, topics: [{ name, full_name }], current: { topic, subscription } | null, suggested_topic_id: "play-store-notifications" }. topics are the Cloud Pub/Sub topics of the service account’s project, to pick one for connect_google_play_notifications (an existing one, RevenueCat’s say, is shared). can_manage false means notifications cannot be set up with this key yet, and problem says why (a checklist row: code pubsub_role_missing, actas_missing, api_disabled with params.url to turn the API on, org_policy, ...). Read only. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The bills the business owner has sent people by email, newest first. Each invoice: id, number (INV-0007), pay_url (the pay page, which needs no account: the only credential the recipient holds, so never post it anywhere public), status (open | paid | void) and overdue (open and past its due date), created_at, due_date, recipient { name, email }, product { id, name } (a product the payer gets access to; a custom product has a name and a null id; a plain amount has nulls), amount_cents (USD, charged when the bill is paid), pricing_type (one_time | subscription) and recurring { amount_cents, interval, status, next_charge_at, ended_at } for a subscription bill (null on a one-time one; status is null until paid, then active | past_due | cancelling | ended), pdf_url (the bill as a PDF, as private as pay_url), description, affiliate { ref_code } when the bill carries the affiliate who sent the person, lead_id when it was made from a lead, sent_at, last_sent_at, send_count, viewed_at (the first time somebody other than the owner opened the link), paid_at, voided_at, and payment { id, short_id, status } once paid (status is the sale’s: succeeded, refunded...). counts gives the four buckets. status= narrows to open, overdue, paid or void; q= matches the recipient’s name or address or the number ("INV-0007", "7"). Page with starting_after = the last id of the previous page while has_more is true. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| q | string | The recipient’s name or address, or the invoice number |
| limit | integer | 1 to 500, default 100 |
| status | string | Only bills in this state |
| business_slug* | string | Business slug, from list_businesses |
| starting_after | string | The last invoice id of the previous page |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"q": {
"type": "string",
"description": "The recipient’s name or address, or the invoice number"
},
"limit": {
"type": "integer",
"description": "1 to 500, default 100"
},
"status": {
"enum": [
"open",
"overdue",
"paid",
"void"
],
"type": "string",
"description": "Only bills in this state"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"starting_after": {
"type": "string",
"description": "The last invoice id of the previous page"
}
}
}The form entries and booked calls the business’s product pages have collected through their `form` and `booking` elements. Each lead: id, type (form | booking), created_at, email, name, phone, country, zip, consent, answers [{ label, value }] (the owner’s own questions, worded as they were when asked), page { product_id, product_name, block_id }, affiliate { ref_code } when an affiliate link sent the visitor, visitor_country, status (new = a form entry | scheduled | completed | no_show | cancelled, worked out when read), and for a call booking { starts_at, ends_at, timezone, location, cancelled_at, cancelled_by, rescheduled_at, rescheduled_by, previous_starts_at, no_show_at }. THE TWO QUESTIONS: "who wrote in?" is the default (everything, newest first); "what is on the diary?" is status=upcoming, which also puts the NEXT call first. status=past is calls that took place, status=no_show is the ones the owner marked as missed, status=cancelled is calls that were called off (a cancelled call is in none of the others). THE DAILY BRIEFING: "who do I have today" is starts_from=today, starts_to=tomorrow with timezone= the owner’s zone; "who cancelled today" is cancelled_from=today, cancelled_to=tomorrow; "who moved their call today" is rescheduled_from=today, rescheduled_to=tomorrow. timezone matters for those: without it today means UTC’s today, which in Los Angeles ends at five in the afternoon. email= finds everything one person sent; q= a piece of the email, name or phone. Dates are YYYY-MM-DD, today, tomorrow or yesterday (the start of that day in timezone, UTC by default) or ISO 8601; from is inclusive, to is exclusive. Page with starting_after = the last id of the previous page while has_more is true. These are the contact details of people with NO ACCOUNT, so this requires the business OWNER’s key: any other key answers 404. THE AFFILIATE ON A LEAD: the lead itself pays nothing, but it is how a later sale finds its affiliate when nothing else can. If the buyer’s browser and account remember no affiliate, checkout matches the buyer’s verified account email to a lead an affiliate sent in the last 60 days (newest wins) and that affiliate earns the normal commission. A link always beats the email match, and deleting a lead removes its claim.
| Argument | Type | Description |
|---|---|---|
| q | string | A piece of the email, name or phone, any case (the dashboard’s search) |
| sort | string | created_desc = newest entry first (the default). starts_asc = next call first (the default with status=upcoming) |
| type | string | Only form entries, or only booked calls. Omit for both |
| string | One person’s entries: exact address, any case | |
| limit | integer | 1 to 500. Default 100 |
| status | string | Booked calls only. upcoming = standing and not started; past = standing and started; no_show = past and marked as missed; cancelled = called off |
| timezone | string | IANA zone (America/New_York) that bare dates and today / tomorrow / yesterday are read in. Default UTC |
| starts_to | string | Calls starting before this (YYYY-MM-DD or ISO 8601) |
| created_to | string | Leads made before this (YYYY-MM-DD or ISO 8601) |
| starts_from | string | Calls starting at or after this (YYYY-MM-DD or ISO 8601) |
| cancelled_to | string | Calls cancelled before this |
| created_from | string | Leads made at or after this (YYYY-MM-DD or ISO 8601) |
| business_slug* | string |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"q": {
"type": "string",
"description": "A piece of the email, name or phone, any case (the dashboard’s search)"
},
"sort": {
"enum": [
"created_desc",
"starts_asc"
],
"type": "string",
"description": "created_desc = newest entry first (the default). starts_asc = next call first (the default with status=upcoming)"
},
"type": {
"enum": [
"form",
"booking"
],
"type": "string",
"description": "Only form entries, or only booked calls. Omit for both"
},
"email": {
"type": "string",
"description": "One person’s entries: exact address, any case"
},
"limit": {
"type": "integer",
"description": "1 to 500. Default 100"
},
"status": {
"enum": [
"upcoming",
"past",
"cancelled",
"no_show"
],
"type": "string",
"description": "Booked calls only. upcoming = standing and not started; past = standing and started; no_show = past and marked as missed; cancelled = called off"
},
"timezone": {
"type": "string",
"description": "IANA zone (America/New_York) that bare dates and today / tomorrow / yesterday are read in. Default UTC"
},
"starts_to": {
"type": "string",
"description": "Calls starting before this (YYYY-MM-DD or ISO 8601)"
},
"created_to": {
"type": "string",
"description": "Leads made before this (YYYY-MM-DD or ISO 8601)"
},
"starts_from": {
"type": "string",
"description": "Calls starting at or after this (YYYY-MM-DD or ISO 8601)"
},
"cancelled_to": {
"type": "string",
"description": "Calls cancelled before this"
},
"created_from": {
"type": "string",
"description": "Leads made at or after this (YYYY-MM-DD or ISO 8601)"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"cancelled_from": {
"type": "string",
"description": "Calls cancelled at or after this (YYYY-MM-DD, today, yesterday or ISO 8601)"
},
"rescheduled_to": {
"type": "string",
"description": "Calls last moved before this"
},
"starting_after": {
"type": "string",
"description": "The last lead id of the previous page"
},
"rescheduled_from": {
"type": "string",
"description": "Calls last moved at or after this"
}
}
}The requests to answer the business’s Live Chats that wait for the owner, oldest first (app_id for one app’s): each with id, app_id, who asked (user_id, name, username, avatar_url), kind (team: on the team; affiliate: an affiliate of the app) and created_at. They come from Let people request access (request_access in get_live_chat_settings): under who_answers picked the team members and the app’s affiliates who cannot open it may ask, under team the app’s affiliates. Someone who left the team, was banned or stopped being an affiliate of the app drops out of the list. Reading settles nothing. Approve one with approve_live_chat_access_request, deny one with deny_live_chat_access_request. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| app_id | string | Only this app’s requests (get_live_chat_settings) |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"app_id": {
"type": "string",
"description": "Only this app’s requests (get_live_chat_settings)"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The members, newest join first, with email, role, status, when they joined, what each paid, was refunded and where their card was billed, and app_affiliations: what they are to each app as an affiliate (active, removed, banned, left or inactive). status (default active, or all), role, q (part of a username or name). Paged: while has_more is true, pass next_cursor back as cursor. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| q | string | |
| role | string | |
| limit | integer | 1 to 200, default 50 |
| cursor | string | |
| status | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"q": {
"type": "string"
},
"role": {
"enum": [
"co-founder",
"manager",
"moderator",
"member"
],
"type": "string"
},
"limit": {
"type": "integer",
"description": "1 to 200, default 50"
},
"cursor": {
"type": "string"
},
"status": {
"enum": [
"active",
"paused",
"pending",
"inactive",
"left",
"banned",
"all"
],
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Every app the caller is an affiliate of, across all businesses, newest first: referral links (short + username + merchant-domain direct for apps with a website, withheld on an app that ALSO has a store listing until its owner confirms that page forwards mobile visitors to the store (web_auto_bounce), since on the merchant’s own domain only the merchant can send an iPhone to the App Store, plus the COUPON code when the app has Stripe discount codes on - a code typed at checkout, not a URL), lifetime stats, the caller’s EFFECTIVE commission (their personal deal when the owner set one, flagged custom: true, else the app default), a rails object saying whether that app pays on website sales, in-app purchases or both (and the ceiling each rail can actually pay), and which business it belongs to. Owner tracking links are included and flagged with is_owner_link. Cursor-paginated (pass the last row’s id as starting_after while has_more is true). include_payouts adds payout buckets per row (per-click for web_traffic apps, plus a click_payout object); include_recurring adds the MRR / subscriptions / churn block per row, one query for every app the caller is in so it costs the same at any page size. A `recurring` object gives what the referrals on that app pay every MONTH: mrr_cents (the COMMISSION per month, never the subscription value the customers pay), arr_cents, subscribers, trialing (referrals inside a free trial RIGHT NOW - outside subscribers and outside mrr_cents because they have paid nothing, and it FALLS when a trial ends whichever way it ended), not_renewing (auto-renew off, still paying, still counted inside subscribers), churned, churn_rate and unknown_interval. churn_rate is a percentage and is NULL rather than 0 until five people have ever subscribed - null means “not enough history”, never “no churn”. A non-zero unknown_interval means mrr_cents is a FLOOR and not a total. It is a RATE at the subscription set as of today, so from/to does not filter it. These sum to roughly the account-wide figure on get_my_summary - roughly, because that one covers the storefront rail too. It rides the app= single read unconditionally. Set app (UUID or slug) to zoom into one affiliation, where include_breakdown adds click sources (platforms) + countries and from/to add a windowed click count. SCOPE: resolves to the API KEY HOLDER, never an end user - there is no user argument, which is the tell. Called with a business's key it returns that OWNER's own data, including programs they joined elsewhere. It cannot serve an affiliate screen for other people inside a product; enroll_affiliate and get_affiliate take an email or ref_code for that.
| Argument | Type | Description |
|---|---|---|
| to | string | With app: window end YYYY-MM-DD (with from) |
| app | string | Zoom into one affiliation (UUID or slug); required for breakdown/from/to |
| from | string | With app: window start YYYY-MM-DD (with to) → windowed click count |
| limit | integer | Page size, 1–500 (default 100) |
| starting_after | string | Affiliation id of the last row of the previous page |
| include_payouts | boolean | Add payout buckets to each row |
| include_breakdown | boolean | With app: add click sources (platforms) + countries (last 90 days) |
| include_recurring | boolean | Add the MRR / subscriptions / churn block to each row |
{
"type": "object",
"properties": {
"to": {
"type": "string",
"description": "With app: window end YYYY-MM-DD (with from)"
},
"app": {
"type": "string",
"description": "Zoom into one affiliation (UUID or slug); required for breakdown/from/to"
},
"from": {
"type": "string",
"description": "With app: window start YYYY-MM-DD (with to) → windowed click count"
},
"limit": {
"type": "integer",
"description": "Page size, 1–500 (default 100)"
},
"starting_after": {
"type": "string",
"description": "Affiliation id of the last row of the previous page"
},
"include_payouts": {
"type": "boolean",
"description": "Add payout buckets to each row"
},
"include_breakdown": {
"type": "boolean",
"description": "With app: add click sources (platforms) + countries (last 90 days)"
},
"include_recurring": {
"type": "boolean",
"description": "Add the MRR / subscriptions / churn block to each row"
}
}
}Every business the caller is a STOREFRONT affiliate of (promoting its products), newest first: referral links (short + storefront), commission, lifetime stats (visitors, sales, revenue, commission in cents - money net of refunds). `commission` is the caller’s personal deal when `custom` is true, else the business default, a FLOOR: rates live on each plan, so every row carries `program_rates` (the percent range across that business’s active plans). Every affiliation is listed, ended ones included (removed, left, or a business since deleted, flagged by status and business.deleted) with its lifetime numbers; `links` are null on any row that cannot earn. business (UUID or slug) narrows to one and adds `products`: each paid product with every plan’s price, the rate that applies to the caller on it and estimated_commission_cents per sale, priced by the math payout uses. from/to (YYYY-MM-DD, UTC days, inclusive) window visitors, sales, refunds, revenue and commission on every row; recurring is never windowed. include_payouts adds payout buckets; include_recurring adds the MRR / subscriptions block per row, one query for the whole page. Cursor-paginated. A `recurring` object gives what the referrals on that business pay every MONTH: mrr_cents (the COMMISSION per month, never the subscription value the customers pay), arr_cents, subscribers, trialing (ALWAYS 0 on this storefront rail, which has no trial state at all - the app rail is where it means something), not_renewing (auto-renew off but STILL PAYING and still counted inside subscribers), churned, churn_rate (NULL below five lifetime subscribers, and null means "not enough history", never "no churn") and unknown_interval (non-zero means mrr_cents is a FLOOR). Set business to zoom into one. Not affected by any date window: MRR is a rate at the CURRENT subscription set, not a sum over a period. SCOPE: resolves to the API KEY HOLDER, never an end user - there is no user argument, which is the tell. Called with a business's key it returns that OWNER's own data, including programs they joined elsewhere. It cannot serve an affiliate screen for other people inside a product; enroll_affiliate and get_affiliate take an email or ref_code for that.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end, YYYY-MM-DD (with from) |
| from | string | Window start, YYYY-MM-DD (with to). Windows visitors, sales, refunds, revenue and commission on every row; recurring is never windowed |
| limit | integer | Page size, 1–500 (default 100) |
| business | string | Narrow to one business (UUID or slug) |
| starting_after | string | Affiliation id of the last row of the previous page |
| include_payouts | boolean | Add payout buckets to each row |
| include_recurring | boolean | Add the MRR / subscriptions block to each row |
{
"type": "object",
"properties": {
"to": {
"type": "string",
"description": "Window end, YYYY-MM-DD (with from)"
},
"from": {
"type": "string",
"description": "Window start, YYYY-MM-DD (with to). Windows visitors, sales, refunds, revenue and commission on every row; recurring is never windowed"
},
"limit": {
"type": "integer",
"description": "Page size, 1–500 (default 100)"
},
"business": {
"type": "string",
"description": "Narrow to one business (UUID or slug)"
},
"starting_after": {
"type": "string",
"description": "Affiliation id of the last row of the previous page"
},
"include_payouts": {
"type": "boolean",
"description": "Add payout buckets to each row"
},
"include_recurring": {
"type": "boolean",
"description": "Add the MRR / subscriptions block to each row"
}
}
}The caller’s own storefront-affiliate sales across every business they promote: date, type, product, gross amount and commission (cents), payout status, and the business each row belongs to. business (UUID or slug) narrows to one; from/to (YYYY-MM-DD) to a window; type to particular conversion types, filtered upstream of the cursor. Cursor-paginated. No customer PII. SCOPE: resolves to the API KEY HOLDER, never an end user - there is no user argument, which is the tell. Called with a business's key it returns that OWNER's own data, including programs they joined elsewhere. It cannot serve an affiliate screen for other people inside a product; enroll_affiliate and get_affiliate take an email or ref_code for that.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end, YYYY-MM-DD (with from) |
| from | string | Window start, YYYY-MM-DD (with to) |
| type | string | Filter to particular conversion types, comma-separated: any of subscription, one_time, renewal, trial, converted, refund, chargeback, restore (e.g. "refund,chargeback" for reversals only). converted means a payment that grew out of a free trial; it matches on the row trial_conversion_id rather than on conversion_type, which stays subscription or renewal on those rows. restore is a refund or chargeback that was undone, giving back what it took. Omit for every type. Unknown values are rejected rather than returning nothing. |
| limit | integer | Page size, 1–500 (default 100) |
| business | string | Narrow to one business (UUID or slug) |
| starting_after | string | Conversion id of the last row of the previous page |
{
"type": "object",
"properties": {
"to": {
"type": "string",
"description": "Window end, YYYY-MM-DD (with from)"
},
"from": {
"type": "string",
"description": "Window start, YYYY-MM-DD (with to)"
},
"type": {
"type": "string",
"description": "Filter to particular conversion types, comma-separated: any of subscription, one_time, renewal, trial, converted, refund, chargeback, restore (e.g. \"refund,chargeback\" for reversals only). converted means a payment that grew out of a free trial; it matches on the row trial_conversion_id rather than on conversion_type, which stays subscription or renewal on those rows. restore is a refund or chargeback that was undone, giving back what it took. Omit for every type. Unknown values are rejected rather than returning nothing."
},
"limit": {
"type": "integer",
"description": "Page size, 1–500 (default 100)"
},
"business": {
"type": "string",
"description": "Narrow to one business (UUID or slug)"
},
"starting_after": {
"type": "string",
"description": "Conversion id of the last row of the previous page"
}
}
}The caller’s own conversion history across every business they’re an affiliate of: date, type (subscription, one_time, renewal, trial, converted, refund, chargeback, restore), gross amount and commission in cents, payout status (payable_at is null while a dispute holds the commission), and the app + business each row belongs to. converted is a FILTER rather than a stored type: a trial that turns into a paying customer writes a second row for the first real payment, typed subscription or renewal and otherwise identical to a customer who never trialled. That row carries trial_conversion_id pointing back at its trial, and type=converted selects exactly those. conversion_type on the wire never says converted, deliberately - changing it would reclassify rows for every integration already branching on subscription; trial_conversion_id is what sets the two apart. The storefront rail has no trials, so converted there matches nothing. Refunds and chargebacks are separate negative rows, and a restore row gives back (positive) what an undone refund or chargeback took. A sale a dispute holds reads status disputed: its unpaid commission waits for the bank, and one already paid stays paid. partial: true marks a refund or chargeback of PART of a sale, which still stands. correction: true marks a correction a full take-back wrote beside itself: none of the sale’s money, only the commission that settles what the sale’s restores still move. Count its commission like any row’s (the rows then sum to what the affiliate is owed); it is not a refund of its own. app narrows to one app (UUID or slug); from/to (YYYY-MM-DD) narrows to a date window; type narrows to particular conversion types. Every filter is applied in the query, upstream of the cursor. Cursor-paginated. No customer PII. SCOPE: resolves to the API KEY HOLDER, never an end user - there is no user argument, which is the tell. Called with a business's key it returns that OWNER's own data, including programs they joined elsewhere. It cannot serve an affiliate screen for other people inside a product; enroll_affiliate and get_affiliate take an email or ref_code for that.
| Argument | Type | Description |
|---|---|---|
| to | string | Window end, YYYY-MM-DD (with from) |
| app | string | Narrow to one app (UUID or slug) |
| from | string | Window start, YYYY-MM-DD (with to) |
| type | string | Filter to particular conversion types, comma-separated: any of subscription, one_time, renewal, trial, converted, refund, chargeback, restore (e.g. "refund,chargeback" for reversals only). converted means a payment that grew out of a free trial; it matches on the row trial_conversion_id rather than on conversion_type, which stays subscription or renewal on those rows. restore is a refund or chargeback that was undone, giving back what it took. Omit for every type. Unknown values are rejected rather than returning nothing. |
| limit | integer | Page size, 1–500 (default 100) |
| starting_after | string | Conversion id of the last row of the previous page |
{
"type": "object",
"properties": {
"to": {
"type": "string",
"description": "Window end, YYYY-MM-DD (with from)"
},
"app": {
"type": "string",
"description": "Narrow to one app (UUID or slug)"
},
"from": {
"type": "string",
"description": "Window start, YYYY-MM-DD (with to)"
},
"type": {
"type": "string",
"description": "Filter to particular conversion types, comma-separated: any of subscription, one_time, renewal, trial, converted, refund, chargeback, restore (e.g. \"refund,chargeback\" for reversals only). converted means a payment that grew out of a free trial; it matches on the row trial_conversion_id rather than on conversion_type, which stays subscription or renewal on those rows. restore is a refund or chargeback that was undone, giving back what it took. Omit for every type. Unknown values are rejected rather than returning nothing."
},
"limit": {
"type": "integer",
"description": "Page size, 1–500 (default 100)"
},
"starting_after": {
"type": "string",
"description": "Conversion id of the last row of the previous page"
}
}
}The caller’s account wallet ledger, newest first: every money movement with its type (sale, deposit, payout/withdrawal, refund, chargeback, transfer_in/out, affiliate_commission, campaign_fund/refund/payout), a signed amount in cents, gross + fee where one applies, and the other party (buyer, business, app, platform, or transfer counterpart). type filters to a comma-separated set (e.g. "sale,refund"). Cursor-paginated (pass the last row’s id as starting_after while has_more is true). Pending bank deposits are not in the ledger - they show on get_my_wallet until they settle. No customer PII. Read-only. SCOPE: resolves to the API KEY HOLDER, never an end user - there is no user argument, which is the tell. Called with a business's key it returns that OWNER's own data, including programs they joined elsewhere. It cannot serve an affiliate screen for other people inside a product; enroll_affiliate and get_affiliate take an email or ref_code for that.
| Argument | Type | Description |
|---|---|---|
| type | string | Comma-separated transaction types to include (e.g. "sale,refund") |
| limit | integer | Page size, 1–500 (default 100) |
| starting_after | string | Transaction id of the last row of the previous page |
{
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "Comma-separated transaction types to include (e.g. \"sale,refund\")"
},
"limit": {
"type": "integer",
"description": "Page size, 1–500 (default 100)"
},
"starting_after": {
"type": "string",
"description": "Transaction id of the last row of the previous page"
}
}
}The business’s Payments tab: every sale, newest first, with buyer, product and plan, payment method (brand and last4), country, refunds, every fee and the affiliate commission. Filters: status (comma-separated: pending, succeeded, failed, refunded, partially_refunded, refunding, disputed), method (card brands), reason (one_time, subscription, renewal, balance_payment, invoice, invoice_initial_payment), from and to (YYYY-MM-DD), search. Paged with limit (up to 250) and offset; has_more and next_offset say where the next page starts. Read-only. Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| to | string | |
| from | string | |
| limit | integer | |
| method | string | |
| offset | integer | |
| reason | string | |
| search | string | |
| status | string | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"to": {
"type": "string"
},
"from": {
"type": "string"
},
"limit": {
"type": "integer"
},
"method": {
"type": "string"
},
"offset": {
"type": "integer"
},
"reason": {
"type": "string"
},
"search": {
"type": "string"
},
"status": {
"type": "string"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The business’s feed posts, newest first: content, media, pinned, like, view and vote counts, the poll. pinned: true keeps the pinned post. Paged: while has_more is true, pass next_cursor back as cursor. Requires the business OWNER’s key, or a manager’s own key.
| Argument | Type | Description |
|---|---|---|
| limit | integer | 1 to 50, default 20 |
| cursor | string | |
| pinned | boolean | |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"limit": {
"type": "integer",
"description": "1 to 50, default 20"
},
"cursor": {
"type": "string"
},
"pinned": {
"type": "boolean"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}Every product the business sells (active and archived): id, short id, URL slug and public URL, name, pricing type, every plan with its price, interval, bullets, commission and stock, plus the owner’s numbers in `stats`: subscriber_count (active subscriptions), total_sales_cents (every succeeded payment, renewals included, refunds dropped), checkout_views (checkout-dialog opens, one per visitor per hour, never the owner’s own), checkout_purchases (distinct buyers) and conversion_rate (purchases ÷ views, one decimal, null until someone has opened the checkout); per plan subscriber_count, total_sales_cents (renewals attributed through the subscription) and stock_sold (first purchases only; a refund returns the unit). Also main_product_id: the product an affiliate’s main link opens right now (set it with set_main_product). The id/slug source for get_product and update_product. Requires the business OWNER’s key: any other key answers 404.
| Argument | Type | Description |
|---|---|---|
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}The product catalogs of the app’s connected providers, for setting a commission per product: each product’s id, name and price, its source (web or mobile), provider, account and max_percent (the highest rate its rail allows). Every catalog or none: one unreachable provider fails the read. Set the rates with update_app (affiliate_product_rates). Requires the business OWNER’s key.
| Argument | Type | Description |
|---|---|---|
| app* | string | App UUID or app slug, from the apps array in list_businesses |
| business_slug* | string | Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Dec 4, 2026.
Takes a password, API key or token as an argument, so the secret passes through the model's context and chat logs.
Fix: Read credentials from the server's own configuration (environment, OAuth) instead of a tool argument.
A very long tool description (over 4,000 characters) is hard to review and easy to hide instructions in.
Fix: Keep the description to what the tool does and when to use it; move reference material to resources or docs.
| Who can see the app, the choices every app shares: public (anyone on Affiliateo), private ("Private + team": you and your team), invite_only ("Private + team + people you pick": you, your team and the people you invite; with invite_excludes_team true it is "Private + people you pick": you and the people you invite, the team out), private_only ("Private": only you). A program has no Product gated choice: people join it, they do not buy it. Edit only: a new app always starts public, then PATCH this. The dashboard sets it from the app’s Change visibility menu, not the edit form |
| collab_kind | string | collab (required): placement = static slot (banner, bio link); content = produced content (post, video) |
| description | string | Description shown to affiliates (max 500 chars) |
| ios_app_url | string | affiliate mobile rail: App Store URL (apps.apple.com). At least one store URL is required with mobile_provider (except revenuecat on a website with no app, which sends website_url and no store URL) - the referral link routes iPhone visitors here |
| website_url | string | Merchant site the web rail sells on (required with provider); web_traffic: destination URL; on a mobile-only affiliate app, an optional landing page; with mobile_provider revenuecat and no store URL, the website RevenueCat sells on (required then, and where every affiliate link lands). Must be https:// |
| content_type* | string | App type (locked after creation). An affiliate_app covers a website, a mobile app, or both at once - send affiliate_app and switch on the rails you want with provider + website_url and/or mobile_provider + a store URL. A tools_app is an app or website with no affiliates, for Live Chat, Tracking and Funnels on an Affiliateo plan: private to the owner and team, no provider or commission, website_url / ios_app_url / android_app_url all optional |
| requirements | array | Content/joining requirements, array of strings (required for clipping) |
| ad_placements | object | collab (required): {"instagram":["story","reel"],"x":["post"]} - platform to placement/content types |
| business_slug* | string | Business slug, from list_businesses |
| content_links | array | clipping: links creators should use, [{"type": "Google Drive" | "YouTube" | "External Link" | "TikTok" | "Instagram" | "X" | "Google Doc" | "Twitch" | "Vimeo", "label": "...", "url": "https://..."}] |
| thumbnail_url | string | Public https URL of a PNG/JPEG thumbnail (fetched server-side, max 25MB). Send the full square icon with no rounded corners, the way the App Store asks for it: every surface rounds it itself. A PNG that arrives already rounded on a black, white or transparent square has its corners filled in |
| require_sounds | boolean | clipping: creators must use your sound, linked in sound_urls (default false) |
| retention_days | integer | collab (required): how long the placement/content must stay live (1, 3, 7, 14, or 30) |
| android_app_url | string | affiliate mobile rail: Play Store URL (play.google.com) - the referral link routes Android visitors here |
| mobile_provider | string | affiliate MOBILE rail: in-app-purchase provider (connected later in the dashboard). Set it with a store URL to sell in-app; combine with provider + website_url for an app that sells on both. revenuecat with website_url and NO store URL is a website that sells through RevenueCat (its Web Billing) with no app in a store: affiliate links open the website, the website tag is what you install, and the rate may go up to 90 |
| web_auto_bounce | boolean | affiliate: you confirm your landing page sends mobile visitors on to your app store listing (a redirect on your own server, or the t.js tag with data-redirect="store"). ONLY consulted when the app also has ios_app_url or android_app_url. While it is false, affiliates of that app are not offered links.direct at all: they get the /r/ forms, which device-route to the store for them. We cannot detect the bounce and never try: a server redirect answers before we are called, and the tag flavour is client-side and routinely injected by a tag manager, so this is your declaration, not a check. Turning it off withdraws links.direct from what we hand out; it does not break a {website_url}?ref= link already shared, which is your own URL and keeps resolving |
| free_access_auto | string | affiliate MOBILE rail: automatic free access. Every affiliate who joins (on Affiliateo, in the Affiliateo app, through POST .../affiliates from your own app, by a link, a rejoin or an unban) gets your paid app free for this long, the same way the per-affiliate free access switch gives it (a RevenueCat promotional entitlement on RevenueCat apps, the SDK freeAccess() check on App Store, Google Play, Adapty and Stripe apps). Switching it on also gives it to every current affiliate who does not have it. Free access it gave follows it: a new length moves each end (counted from when they got it), off (or null) takes it back. Affiliates you set by hand (the switch, or POST .../affiliates/free-access) keep their own. A length ends by itself: nothing renews, nobody is charged. forever lasts until they leave or are banned. Needs a mobile payment provider connected to have any effect |
| max_payout_cents | integer | clipping: maximum payout per submission, cents |
| min_payout_cents | integer | clipping: minimum payout per submission, cents |
| show_on_discover | boolean | List the app on the global Discover marketplace (default true). Who may open the app page is visibility, not this |
| allowed_platforms | array | web_traffic: with platform_filter_enabled, the platforms whose clicks count, e.g. ["tiktok","instagram"] |
| closer_bonus_rate | number | affiliate: the closer commission amount. Percent 1 to 25, or dollars 0.01 to 50 when flat. A percent closer commission plus a percent affiliate_commission_rate can be at most 70 on every app, and the same beside the highest per-product rate; a per-affiliate deal is held to what is left of the 70. Sending it alone keeps the kind already saved; sending closer_bonus_type alone is refused when it changes the kind (percent to flat or back needs its own number) |
| closer_bonus_type | string | affiliate: the closer commission, what whoever answers a customer in this app's Live Chat earns when that customer then buys. off (or null, the default), percent (closer_bonus_rate percent of what the customer paid) or flat (closer_bonus_rate dollars per payment). It is credited only through Live Chat: add Live Chat for this app and switch it on; the customer chats through this app's Affiliateo Live Chat (the SDK's chat bubble or openChat, or the website snippet) and buys on the same phone or browser. A match on the app's own user id needs the app to call identify(userId) before the chat starts. Paid on the sale and its renewals, taken back on a refund or chargeback, like a commission. The closer is whoever has the customer's chat when they buy (the first person to reply, unless the customer waited 30 seconds for them and someone else took over; for 60 days after their last reply or the last sale credited to them, like an affiliate link): the affiliate who brought them (who then gets their rate plus this one), a team member or someone picked to answer chats (who gets this one while the affiliate keeps their commission). A returning customer's chat goes back to them first. The owner never earns it. A closer taken off the team, an affiliate banned or gone, or someone banned from Affiliateo earns nothing more from then on, renewals included; switching Live Chat or this setting off never stops renewals already earning; ending the app does, and it ends only once every closer is paid. What they earned before stays payable. A sale no affiliate brought pays it too, and then carries Affiliateo's platform fee as an affiliate's sale does (once per sale, at the owner's own rate, and none when a plan covers the app). On a sale through the App Store or Google Play the affiliate's commission and this one together are held to 70% of the payment, so this one is cut to what is left, to nothing when the affiliate's rate already takes the 70% |
| match_link_clicks | boolean | affiliate MOBILE rail: match a new install to a recent link click by IP address (ON by default, which is how every app works: an affiliate is credited for a store sale when the buyer tapped their link and then installed). Set false for CODES ONLY: no install of this app is matched to a click by IP address, an ad click included, so on the store rails only a typed affiliate code credits an affiliate. Links keep working as links: they still open the store, and clicks are still counted (a click row keeps the address it came from, to count unique clicks and stop fake ones; it is never compared with an install while this is false). Only allowed false while affiliate_codes_enabled is true, refused with a 400 otherwise, because with both off nothing could credit an affiliate for a store sale; turning affiliate_codes_enabled off turns this back on. A deterministic source still counts either way: an Android Play install referrer, an Apple Ads token, or the same signed-in user on another device. Tell affiliates when it is false: their link alone earns nothing in the app, buyers must type the code |
| min_visit_seconds | integer | web_traffic: minimum visit duration for a click to qualify (1-60) |
| phones_to_website | boolean | affiliate: send phones that open an affiliate link (the /r/ short and username links, and their QR codes) to website_url?ref= like computers, instead of to ios_app_url / android_app_url. Needs the web rail (provider + website_url): turning it on for an app that does not sell on its website is refused with a 400 (the dashboard greys the switch out there), and if the web rail goes later, phones go back to the store. The click is recorded before the redirect, so an app install that follows can still be matched to it by the mobile SDK (7-day window). Affiliates are then offered links.direct too, and web_auto_bounce is ignored while this is on. Do not also bounce ?ref= visitors to the store on your own site (a server redirect, or t.js with data-redirect="store"): that overrides this, or loops. Default false |
| require_application | boolean | Approve who joins: people ask to join and you approve them, instead of joining in one tap. Works on affiliate programs (affiliate_app), web_traffic and clipping apps while the app is public or invite_only. On a public app the button reads Request to join; on an invite_only app the app also shows, locked, to people signed in on your business page so they can ask (it stays off Discover). You, your team and the people you invited get in without asking. Approving (POST …/apps/{appId}/join-requests/{requestId}/approve, MCP approve_app_join_request) puts them on the app’s invite list and, on an affiliate program or a web_traffic app, makes them an affiliate in the same step; on a clipping app the invite is what lets them submit. Turning it off, or a private visibility, cancels the waiting requests. Collab apps always work by request, whatever this says. Default false |
| coupon_codes_enabled | boolean | affiliate: give every affiliate a Stripe discount code made from their username (SARAH-J), so a buyer who types it at checkout is credited to them with no link click. Requires the STRIPE web rail already CONNECTED - the connect step is browser OAuth, so create the app first, have the owner connect in the dashboard, then PATCH this true. ALSO REQUIRES allow_promotion_codes: true on your own Stripe Checkout session (or the promotion-codes checkbox on a Stripe Payment Link) - without it Stripe renders no promo-code box, so the codes exist and no customer can ever type one. We cannot set it for you and cannot detect that it is missing; the only symptom is that nothing is ever redeemed. Turning it off hides codes from affiliates but never deactivates them in Stripe: a code already said on a podcast keeps working |
| invite_excludes_team | boolean | With visibility invite_only: true keeps the team out ("Private + people you pick": only you and the people you invite), false lets them in ("Private + team + people you pick", the default). Sending a visibility other than invite_only without it turns it off. Edit only |
| per_platform_rewards | object | clipping: per-platform overrides {"tiktok":{"reward":"10.00","min":"","max":""}} (dollars as strings) |
| require_demographics | boolean | clipping: creators upload a screenshot of their audience stats instead of writing a description (default false) |
| affiliate_codes_enabled | boolean | affiliate MOBILE rail: affiliate codes typed inside your app (off by default). A coupon code without the coupon: the buyer types an affiliate's code in a box YOUR APP shows before the purchase, your app hands it to the SDK (setAffiliateCode("code") in every SDK from 4.18.0: Swift, Kotlin, React Native, Flutter and the m.js script; it posts { campaign_id, device_id, code } to POST /api/v1/mobile/affiliate-code), and that affiliate is credited for the sale on every store rail (Apple, Google Play, RevenueCat, Adapty). No discount, the store is not involved, and nothing is matched by IP address for that buyer. THE CODE IS THE AFFILIATE'S ref_code, the one at the end of their link and already unique in the app, so nothing is minted. A typed code beats a link match and is never overwritten by one; a later code replaces an earlier one; an unknown code answers matched: false so the app can say "code not found". Turn it on only once your app has the box: while it is on, affiliates are shown "Your code" beside their link. Needs a mobile rail (mobile_provider): turning it on for an app that sells only on its website is refused with a 400 (a website checkout uses coupon_codes_enabled or the link). GET /api/v1/businesses/{slug}/apps/{appId}/affiliate-codes says whether a code has arrived yet |
| affiliate_product_rates | object | affiliate: commission per product, the edit form’s "Custom per product". {"mode": "custom" | "same", "rates": [{"key": "<the price id or store product id, exactly as it arrives on a sale>", "name": "...", "rate": 35, "hidden": false, "source": "web" | "mobile"}]}. rate is a percent, or dollars on a flat app, bounded like the app rate (1 minimum; at most 70 for a store catalog entry and 90 for a web one); up to 200 entries; hidden only takes it off the app card. mode "same" keeps the list but pays every product the app rate. GET the app first for its catalog and current schedule, then send the whole object back |
| coupon_discount_percent | number | affiliate: percent off for the BUYER, 1-100. NOT the affiliate’s commission - 20% off the customer and 10% to the affiliate is the normal shape. Required >= 1 when coupon_codes_enabled is true. Changing it mints a new Stripe coupon and leaves codes already in circulation on the old rate |
| platform_filter_enabled | boolean | web_traffic: count only clicks that come from the platforms in allowed_platforms (default false: every platform counts) |
| affiliate_commission_rate | number | affiliate: commission per sale (percent 1-70 on every app, website and store alike: affiliates and closers together get at most 70% of a sale, and a rate above it is refused, never lowered; flat $ max 50). Required > 0 for affiliate types |
| affiliate_commission_type | string | Commission unit (default percent) |
| submission_window_minutes | integer | clipping: post-age freshness window; one of 30, 60, 360, 720, 1440, 2880, 4320 (default 30) |
| free_access_auto_product_id | string | affiliate: the plan automatic free access gives on apps without RevenueCat (a store product id from your catalog); null = full access. Changing it moves everyone it gave. RevenueCat apps give the app's access level instead (set_revenuecat_entitlement) |
| include_unidentified_clicks | boolean | web_traffic: with platform_filter_enabled, also count clicks whose platform cannot be told (default true) |
| share_ad_sales_with_affiliates | boolean | affiliate: let affiliates send the sales they bring to their own ad accounts (off by default). When true, a sale an affiliate's OWN ad brought through this app's affiliate link (a first payment credited to that affiliate, whose click came from a campaign of a business the affiliate owns in Affiliateo) is also sent through the ad network to that affiliate's own Meta, TikTok, Snapchat or Google account, so their ads can learn. The value is the affiliate's commission, the event id is the affiliate's own, and only the ad's click id and the browser's user agent go with it, never the buyer's email, name or address. Sales made while it is off are never sent; share_ad_sales_with_affiliates_since on the app says when it was last turned on |
{
"type": "object",
"required": [
"business_slug",
"name",
"content_type"
],
"properties": {
"faqs": {
"type": "array",
"description": "FAQ list: [{\"question\":\"...\",\"answer\":\"...\"}]"
},
"name": {
"type": "string",
"description": "App name (max 100 chars) - also becomes the URL slug"
},
"category": {
"type": "string",
"description": "Category, e.g. Music, Gaming, Finance, Tech & Software (default Other)"
},
"provider": {
"enum": [
"stripe",
"paddle",
"polar",
"whop",
"shopify",
"woocommerce"
],
"type": "string",
"description": "affiliate WEB rail: payment provider for sales on website_url, the same six the dashboard wizard offers. The app is created pending until that provider is connected: POST /api/v1/businesses/{slug}/apps/{appId}/connections/{provider} (an approval link for stripe and polar, an approval in the store admin for shopify and woocommerce, an API key for paddle and whop), or in the dashboard. Until then a shopify or woocommerce app reads back web_provider stripe (status pending_stripe), as the wizard’s draft does: connect the provider you named"
},
"cpm_cents": {
"type": "integer",
"description": "clipping: reward per 1,000 views in cents (required unless per_platform_rewards); web_traffic: rate per qualified click in cents (required)"
},
"platforms": {
"type": "array",
"description": "clipping (required) / web_traffic: platforms, e.g. [\"tiktok\",\"instagram\",\"youtube\",\"x\",\"facebook\"]"
},
"media_urls": {
"type": "array",
"description": "collab: up to 5 public https creative URLs (placement: PNG/JPEG/WebP images; content: also MP4). Required (min 1) for placement collabs"
},
"sound_urls": {
"type": "object",
"description": "clipping: the sound to use when require_sounds is true, {\"url\": \"https://...\"}"
},
"visibility": {
"enum": [
"public",
"private",
"private_only",
"invite_only"
],
"type": "string",
"description": "Who can see the app, the choices every app shares: public (anyone on Affiliateo), private (\"Private + team\": you and your team), invite_only (\"Private + team + people you pick\": you, your team and the people you invite; with invite_excludes_team true it is \"Private + people you pick\": you and the people you invite, the team out), private_only (\"Private\": only you). A program has no Product gated choice: people join it, they do not buy it. Edit only: a new app always starts public, then PATCH this. The dashboard sets it from the app’s Change visibility menu, not the edit form"
},
"collab_kind": {
"enum": [
"placement",
"content"
],
"type": "string",
"description": "collab (required): placement = static slot (banner, bio link); content = produced content (post, video)"
},
"description": {
"type": "string",
"description": "Description shown to affiliates (max 500 chars)"
},
"ios_app_url": {
"type": "string",
"description": "affiliate mobile rail: App Store URL (apps.apple.com). At least one store URL is required with mobile_provider (except revenuecat on a website with no app, which sends website_url and no store URL) - the referral link routes iPhone visitors here"
},
"website_url": {
"type": "string",
"description": "Merchant site the web rail sells on (required with provider); web_traffic: destination URL; on a mobile-only affiliate app, an optional landing page; with mobile_provider revenuecat and no store URL, the website RevenueCat sells on (required then, and where every affiliate link lands). Must be https://"
},
"content_type": {
"enum": [
"clipping",
"affiliate_app",
"web_traffic",
"collab",
"tools_app"
],
"type": "string",
"description": "App type (locked after creation). An affiliate_app covers a website, a mobile app, or both at once - send affiliate_app and switch on the rails you want with provider + website_url and/or mobile_provider + a store URL. A tools_app is an app or website with no affiliates, for Live Chat, Tracking and Funnels on an Affiliateo plan: private to the owner and team, no provider or commission, website_url / ios_app_url / android_app_url all optional"
},
"requirements": {
"type": "array",
"description": "Content/joining requirements, array of strings (required for clipping)"
},
"ad_placements": {
"type": "object",
"description": "collab (required): {\"instagram\":[\"story\",\"reel\"],\"x\":[\"post\"]} - platform to placement/content types"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"content_links": {
"type": "array",
"description": "clipping: links creators should use, [{\"type\": \"Google Drive\" | \"YouTube\" | \"External Link\" | \"TikTok\" | \"Instagram\" | \"X\" | \"Google Doc\" | \"Twitch\" | \"Vimeo\", \"label\": \"...\", \"url\": \"https://...\"}]"
},
"thumbnail_url": {
"type": "string",
"description": "Public https URL of a PNG/JPEG thumbnail (fetched server-side, max 25MB). Send the full square icon with no rounded corners, the way the App Store asks for it: every surface rounds it itself. A PNG that arrives already rounded on a black, white or transparent square has its corners filled in"
},
"require_sounds": {
"type": "boolean",
"description": "clipping: creators must use your sound, linked in sound_urls (default false)"
},
"retention_days": {
"type": "integer",
"description": "collab (required): how long the placement/content must stay live (1, 3, 7, 14, or 30)"
},
"android_app_url": {
"type": "string",
"description": "affiliate mobile rail: Play Store URL (play.google.com) - the referral link routes Android visitors here"
},
"mobile_provider": {
"enum": [
"revenuecat",
"stripe",
"apple_iap",
"google_play"
],
"type": "string",
"description": "affiliate MOBILE rail: in-app-purchase provider (connected later in the dashboard). Set it with a store URL to sell in-app; combine with provider + website_url for an app that sells on both. revenuecat with website_url and NO store URL is a website that sells through RevenueCat (its Web Billing) with no app in a store: affiliate links open the website, the website tag is what you install, and the rate may go up to 90"
},
"web_auto_bounce": {
"type": "boolean",
"description": "affiliate: you confirm your landing page sends mobile visitors on to your app store listing (a redirect on your own server, or the t.js tag with data-redirect=\"store\"). ONLY consulted when the app also has ios_app_url or android_app_url. While it is false, affiliates of that app are not offered links.direct at all: they get the /r/ forms, which device-route to the store for them. We cannot detect the bounce and never try: a server redirect answers before we are called, and the tag flavour is client-side and routinely injected by a tag manager, so this is your declaration, not a check. Turning it off withdraws links.direct from what we hand out; it does not break a {website_url}?ref= link already shared, which is your own URL and keeps resolving"
},
"free_access_auto": {
"enum": [
"1w",
"1m",
"3m",
"1y",
"forever",
"off"
],
"type": "string",
"description": "affiliate MOBILE rail: automatic free access. Every affiliate who joins (on Affiliateo, in the Affiliateo app, through POST .../affiliates from your own app, by a link, a rejoin or an unban) gets your paid app free for this long, the same way the per-affiliate free access switch gives it (a RevenueCat promotional entitlement on RevenueCat apps, the SDK freeAccess() check on App Store, Google Play, Adapty and Stripe apps). Switching it on also gives it to every current affiliate who does not have it. Free access it gave follows it: a new length moves each end (counted from when they got it), off (or null) takes it back. Affiliates you set by hand (the switch, or POST .../affiliates/free-access) keep their own. A length ends by itself: nothing renews, nobody is charged. forever lasts until they leave or are banned. Needs a mobile payment provider connected to have any effect"
},
"max_payout_cents": {
"type": "integer",
"description": "clipping: maximum payout per submission, cents"
},
"min_payout_cents": {
"type": "integer",
"description": "clipping: minimum payout per submission, cents"
},
"show_on_discover": {
"type": "boolean",
"description": "List the app on the global Discover marketplace (default true). Who may open the app page is visibility, not this"
},
"allowed_platforms": {
"type": "array",
"description": "web_traffic: with platform_filter_enabled, the platforms whose clicks count, e.g. [\"tiktok\",\"instagram\"]"
},
"closer_bonus_rate": {
"type": "number",
"description": "affiliate: the closer commission amount. Percent 1 to 25, or dollars 0.01 to 50 when flat. A percent closer commission plus a percent affiliate_commission_rate can be at most 70 on every app, and the same beside the highest per-product rate; a per-affiliate deal is held to what is left of the 70. Sending it alone keeps the kind already saved; sending closer_bonus_type alone is refused when it changes the kind (percent to flat or back needs its own number)"
},
"closer_bonus_type": {
"enum": [
"off",
"percent",
"flat"
],
"type": "string",
"description": "affiliate: the closer commission, what whoever answers a customer in this app's Live Chat earns when that customer then buys. off (or null, the default), percent (closer_bonus_rate percent of what the customer paid) or flat (closer_bonus_rate dollars per payment). It is credited only through Live Chat: add Live Chat for this app and switch it on; the customer chats through this app's Affiliateo Live Chat (the SDK's chat bubble or openChat, or the website snippet) and buys on the same phone or browser. A match on the app's own user id needs the app to call identify(userId) before the chat starts. Paid on the sale and its renewals, taken back on a refund or chargeback, like a commission. The closer is whoever has the customer's chat when they buy (the first person to reply, unless the customer waited 30 seconds for them and someone else took over; for 60 days after their last reply or the last sale credited to them, like an affiliate link): the affiliate who brought them (who then gets their rate plus this one), a team member or someone picked to answer chats (who gets this one while the affiliate keeps their commission). A returning customer's chat goes back to them first. The owner never earns it. A closer taken off the team, an affiliate banned or gone, or someone banned from Affiliateo earns nothing more from then on, renewals included; switching Live Chat or this setting off never stops renewals already earning; ending the app does, and it ends only once every closer is paid. What they earned before stays payable. A sale no affiliate brought pays it too, and then carries Affiliateo's platform fee as an affiliate's sale does (once per sale, at the owner's own rate, and none when a plan covers the app). On a sale through the App Store or Google Play the affiliate's commission and this one together are held to 70% of the payment, so this one is cut to what is left, to nothing when the affiliate's rate already takes the 70%"
},
"match_link_clicks": {
"type": "boolean",
"description": "affiliate MOBILE rail: match a new install to a recent link click by IP address (ON by default, which is how every app works: an affiliate is credited for a store sale when the buyer tapped their link and then installed). Set false for CODES ONLY: no install of this app is matched to a click by IP address, an ad click included, so on the store rails only a typed affiliate code credits an affiliate. Links keep working as links: they still open the store, and clicks are still counted (a click row keeps the address it came from, to count unique clicks and stop fake ones; it is never compared with an install while this is false). Only allowed false while affiliate_codes_enabled is true, refused with a 400 otherwise, because with both off nothing could credit an affiliate for a store sale; turning affiliate_codes_enabled off turns this back on. A deterministic source still counts either way: an Android Play install referrer, an Apple Ads token, or the same signed-in user on another device. Tell affiliates when it is false: their link alone earns nothing in the app, buyers must type the code"
},
"min_visit_seconds": {
"type": "integer",
"description": "web_traffic: minimum visit duration for a click to qualify (1-60)"
},
"phones_to_website": {
"type": "boolean",
"description": "affiliate: send phones that open an affiliate link (the /r/ short and username links, and their QR codes) to website_url?ref= like computers, instead of to ios_app_url / android_app_url. Needs the web rail (provider + website_url): turning it on for an app that does not sell on its website is refused with a 400 (the dashboard greys the switch out there), and if the web rail goes later, phones go back to the store. The click is recorded before the redirect, so an app install that follows can still be matched to it by the mobile SDK (7-day window). Affiliates are then offered links.direct too, and web_auto_bounce is ignored while this is on. Do not also bounce ?ref= visitors to the store on your own site (a server redirect, or t.js with data-redirect=\"store\"): that overrides this, or loops. Default false"
},
"require_application": {
"type": "boolean",
"description": "Approve who joins: people ask to join and you approve them, instead of joining in one tap. Works on affiliate programs (affiliate_app), web_traffic and clipping apps while the app is public or invite_only. On a public app the button reads Request to join; on an invite_only app the app also shows, locked, to people signed in on your business page so they can ask (it stays off Discover). You, your team and the people you invited get in without asking. Approving (POST …/apps/{appId}/join-requests/{requestId}/approve, MCP approve_app_join_request) puts them on the app’s invite list and, on an affiliate program or a web_traffic app, makes them an affiliate in the same step; on a clipping app the invite is what lets them submit. Turning it off, or a private visibility, cancels the waiting requests. Collab apps always work by request, whatever this says. Default false"
},
"coupon_codes_enabled": {
"type": "boolean",
"description": "affiliate: give every affiliate a Stripe discount code made from their username (SARAH-J), so a buyer who types it at checkout is credited to them with no link click. Requires the STRIPE web rail already CONNECTED - the connect step is browser OAuth, so create the app first, have the owner connect in the dashboard, then PATCH this true. ALSO REQUIRES allow_promotion_codes: true on your own Stripe Checkout session (or the promotion-codes checkbox on a Stripe Payment Link) - without it Stripe renders no promo-code box, so the codes exist and no customer can ever type one. We cannot set it for you and cannot detect that it is missing; the only symptom is that nothing is ever redeemed. Turning it off hides codes from affiliates but never deactivates them in Stripe: a code already said on a podcast keeps working"
},
"invite_excludes_team": {
"type": "boolean",
"description": "With visibility invite_only: true keeps the team out (\"Private + people you pick\": only you and the people you invite), false lets them in (\"Private + team + people you pick\", the default). Sending a visibility other than invite_only without it turns it off. Edit only"
},
"per_platform_rewards": {
"type": "object",
"description": "clipping: per-platform overrides {\"tiktok\":{\"reward\":\"10.00\",\"min\":\"\",\"max\":\"\"}} (dollars as strings)"
},
"require_demographics": {
"type": "boolean",
"description": "clipping: creators upload a screenshot of their audience stats instead of writing a description (default false)"
},
"affiliate_codes_enabled": {
"type": "boolean",
"description": "affiliate MOBILE rail: affiliate codes typed inside your app (off by default). A coupon code without the coupon: the buyer types an affiliate's code in a box YOUR APP shows before the purchase, your app hands it to the SDK (setAffiliateCode(\"code\") in every SDK from 4.18.0: Swift, Kotlin, React Native, Flutter and the m.js script; it posts { campaign_id, device_id, code } to POST /api/v1/mobile/affiliate-code), and that affiliate is credited for the sale on every store rail (Apple, Google Play, RevenueCat, Adapty). No discount, the store is not involved, and nothing is matched by IP address for that buyer. THE CODE IS THE AFFILIATE'S ref_code, the one at the end of their link and already unique in the app, so nothing is minted. A typed code beats a link match and is never overwritten by one; a later code replaces an earlier one; an unknown code answers matched: false so the app can say \"code not found\". Turn it on only once your app has the box: while it is on, affiliates are shown \"Your code\" beside their link. Needs a mobile rail (mobile_provider): turning it on for an app that sells only on its website is refused with a 400 (a website checkout uses coupon_codes_enabled or the link). GET /api/v1/businesses/{slug}/apps/{appId}/affiliate-codes says whether a code has arrived yet"
},
"affiliate_product_rates": {
"type": "object",
"description": "affiliate: commission per product, the edit form’s \"Custom per product\". {\"mode\": \"custom\" | \"same\", \"rates\": [{\"key\": \"<the price id or store product id, exactly as it arrives on a sale>\", \"name\": \"...\", \"rate\": 35, \"hidden\": false, \"source\": \"web\" | \"mobile\"}]}. rate is a percent, or dollars on a flat app, bounded like the app rate (1 minimum; at most 70 for a store catalog entry and 90 for a web one); up to 200 entries; hidden only takes it off the app card. mode \"same\" keeps the list but pays every product the app rate. GET the app first for its catalog and current schedule, then send the whole object back"
},
"coupon_discount_percent": {
"type": "number",
"description": "affiliate: percent off for the BUYER, 1-100. NOT the affiliate’s commission - 20% off the customer and 10% to the affiliate is the normal shape. Required >= 1 when coupon_codes_enabled is true. Changing it mints a new Stripe coupon and leaves codes already in circulation on the old rate"
},
"platform_filter_enabled": {
"type": "boolean",
"description": "web_traffic: count only clicks that come from the platforms in allowed_platforms (default false: every platform counts)"
},
"affiliate_commission_rate": {
"type": "number",
"description": "affiliate: commission per sale (percent 1-70 on every app, website and store alike: affiliates and closers together get at most 70% of a sale, and a rate above it is refused, never lowered; flat $ max 50). Required > 0 for affiliate types"
},
"affiliate_commission_type": {
"enum": [
"percent",
"flat"
],
"type": "string",
"description": "Commission unit (default percent)"
},
"submission_window_minutes": {
"type": "integer",
"description": "clipping: post-age freshness window; one of 30, 60, 360, 720, 1440, 2880, 4320 (default 30)"
},
"free_access_auto_product_id": {
"type": "string",
"description": "affiliate: the plan automatic free access gives on apps without RevenueCat (a store product id from your catalog); null = full access. Changing it moves everyone it gave. RevenueCat apps give the app's access level instead (set_revenuecat_entitlement)"
},
"include_unidentified_clicks": {
"type": "boolean",
"description": "web_traffic: with platform_filter_enabled, also count clicks whose platform cannot be told (default true)"
},
"share_ad_sales_with_affiliates": {
"type": "boolean",
"description": "affiliate: let affiliates send the sales they bring to their own ad accounts (off by default). When true, a sale an affiliate's OWN ad brought through this app's affiliate link (a first payment credited to that affiliate, whose click came from a campaign of a business the affiliate owns in Affiliateo) is also sent through the ad network to that affiliate's own Meta, TikTok, Snapchat or Google account, so their ads can learn. The value is the affiliate's commission, the event id is the affiliate's own, and only the ad's click id and the browser's user agent go with it, never the buyer's email, name or address. Sales made while it is off are never sent; share_ad_sales_with_affiliates_since on the app says when it was last turned on"
}
}
}| is_visible | boolean | Listed on the business storefront (default true). A hidden product still sells through its direct URL |
| sort_order | integer | Position in the storefront list (lower first) |
| button_text | string | Default buy-button label for subscription plans (max 50, default "Get Access"). A plan’s own button_text wins on its card |
| description | string | The subtitle on the share card (max 500). Same rule as headline: read off the page (the first line of text that is not a title) unless sent explicitly |
| pricing_type | string | Usually DERIVED from pricing_options (free when the list is empty, otherwise the first plan’s type) and not sent. Send "free" explicitly to clear every plan and make the product free |
| business_slug* | string | Business slug, from list_businesses |
| internal_name | string | Private label shown only in the dashboard list (max 100) |
| page_settings | object | The sales page. { theme_color? (hex, page-wide accent; a plan’s own theme_color overrides it on its card), show_reviews? (boolean), featured_review_ids? (ids of the business’s reviews to feature), blocks? (the page as an ordered element list - see the element guide in the tool description; omit to keep the default page: title, subtitle, hero, plans, reviews, FAQ) }. On update page_settings is MERGED key by key; blocks, when sent, replace the whole list |
| pricing_options | array | The plans (max 4), each { id?, pricing_type: "one_time" | "subscription", price_cents (whole cents, 0–10,000,000), interval (subscription only: "7d" | "monthly" | "3m" | "6m" | "yearly", default monthly), initial_fee_cents? (setup fee), name? (card heading, max 40), features? (bullet lines, max 12 × 120 chars), bullet? ("check" | "dot" | "star" | "dash" | "none"), button_text? (max 50; unset = "Buy now" for one-time, the product button for subscriptions), theme_color? (hex accent for the card and its checkout), affiliate_commission_rate? + affiliate_commission_type? ("percentage" 0–90 | "fixed" dollars), stock_limit? (units this plan can sell; null = unlimited; sold units are COUNTED from payments, never sent) }. Two plans at the same price and period are refused (identical buttons). Send YOUR OWN id on each plan if page blocks need to reference it. Always USD. On update the list is replaced whole, so every plan kept is sent WITH ITS ID (a plan sent without an id keeps the existing plan’s id only when its type, price and period match one) - and read the get_product warning: re-pricing or removing a subscription plan cancels its active subscribers |
{
"type": "object",
"required": [
"business_slug",
"name",
"banner_url"
],
"properties": {
"faqs": {
"type": "array",
"description": "FAQ list (max 20): [{ id?, question, answer }], each up to 500 chars. Drawn by the faq page element"
},
"name": {
"type": "string",
"description": "Product name (max 100 chars). Prints on the Stripe charge, receipts and commission records. Unique per business across products, apps and store apps - a taken name is a 409 CONFLICT"
},
"slug": {
"type": "string",
"description": "The URL: the page lives at https://affiliateo.com/{business}/{slug}. Optional - derived from the name when omitted. Lowercase letters, digits and hyphens, at least 3 characters. A slug already used by one of this business’s apps or products is a 409 CONFLICT (pick another); a reserved word is a 400"
},
"headline": {
"type": "string",
"description": "The title on the share card and the thumbnails (max 200). Normally NOT sent: when page elements are sent it is read off the page - the first display or h1 line of a text element - exactly as the editor does. Send it only for a product with no page elements, or to override"
},
"app_slugs": {
"type": "array",
"description": "The products tab’s Apps column: the apps this product is listed against, by slug (\"community\", \"courses\", an app’s slug), max 50, repeats dropped. On update the list is replaced and [] clears it. Left out on create, the product lists no apps (the dashboard’s form ticks them all). A label for the products tab: who an app lets in is still that app’s own gate (update_sidebar_app gated_product_ids)"
},
"video_url": {
"type": "string",
"description": "Optional public https URL of an MP4 (max 50 MB) to play as the hero instead of the image; the image stays as the poster and thumbnail. On update, replaces the video"
},
"banner_url": {
"type": "string",
"description": "REQUIRED on create: public https URL of the product image (PNG, JPEG or WebP, max 25 MB). Fetched server-side and stored on our CDN; it is the hero of the page, the thumbnail everywhere else, and the social share card. On update, replaces the image"
},
"is_visible": {
"type": "boolean",
"description": "Listed on the business storefront (default true). A hidden product still sells through its direct URL"
},
"sort_order": {
"type": "integer",
"description": "Position in the storefront list (lower first)"
},
"button_text": {
"type": "string",
"description": "Default buy-button label for subscription plans (max 50, default \"Get Access\"). A plan’s own button_text wins on its card"
},
"description": {
"type": "string",
"description": "The subtitle on the share card (max 500). Same rule as headline: read off the page (the first line of text that is not a title) unless sent explicitly"
},
"pricing_type": {
"enum": [
"free",
"one_time",
"subscription"
],
"type": "string",
"description": "Usually DERIVED from pricing_options (free when the list is empty, otherwise the first plan’s type) and not sent. Send \"free\" explicitly to clear every plan and make the product free"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
},
"internal_name": {
"type": "string",
"description": "Private label shown only in the dashboard list (max 100)"
},
"page_settings": {
"type": "object",
"description": "The sales page. { theme_color? (hex, page-wide accent; a plan’s own theme_color overrides it on its card), show_reviews? (boolean), featured_review_ids? (ids of the business’s reviews to feature), blocks? (the page as an ordered element list - see the element guide in the tool description; omit to keep the default page: title, subtitle, hero, plans, reviews, FAQ) }. On update page_settings is MERGED key by key; blocks, when sent, replace the whole list"
},
"pricing_options": {
"type": "array",
"description": "The plans (max 4), each { id?, pricing_type: \"one_time\" | \"subscription\", price_cents (whole cents, 0–10,000,000), interval (subscription only: \"7d\" | \"monthly\" | \"3m\" | \"6m\" | \"yearly\", default monthly), initial_fee_cents? (setup fee), name? (card heading, max 40), features? (bullet lines, max 12 × 120 chars), bullet? (\"check\" | \"dot\" | \"star\" | \"dash\" | \"none\"), button_text? (max 50; unset = \"Buy now\" for one-time, the product button for subscriptions), theme_color? (hex accent for the card and its checkout), affiliate_commission_rate? + affiliate_commission_type? (\"percentage\" 0–90 | \"fixed\" dollars), stock_limit? (units this plan can sell; null = unlimited; sold units are COUNTED from payments, never sent) }. Two plans at the same price and period are refused (identical buttons). Send YOUR OWN id on each plan if page blocks need to reference it. Always USD. On update the list is replaced whole, so every plan kept is sent WITH ITS ID (a plan sent without an id keeps the existing plan’s id only when its type, price and period match one) - and read the get_product warning: re-pricing or removing a subscription plan cancels its active subscribers"
}
}
}| Business slug, from list_businesses |
{
"type": "object",
"required": [
"business_slug",
"app",
"email"
],
"properties": {
"app": {
"type": "string",
"description": "App UUID or app slug, from the apps array in list_businesses"
},
"name": {
"type": "string",
"description": "Optional display name used if the account is created. Also names their auto-created business, and takes priority over username for both"
},
"email": {
"type": "string",
"description": "The user’s email address"
},
"username": {
"type": "string",
"description": "Optional handle for the referral link (/r/{business}/{username}), 3-30 chars of a-z 0-9 . _ - with no `name` alongside it, also becomes their display name (dots/underscores read as spaces: jane.doe becomes \"Jane Doe\"). let the person type it, do not invent one. Applies ONLY when this call creates the account; an email that already has an Affiliateo account keeps its handle and reports username_status: \"account_exists\". Never fails the enrollment: taken/invalid/reserved fall back to a random handle, and username_status says which. If it is not \"applied\", the person got a different handle, which they can change at affiliateo.com."
},
"app_email": {
"type": "string",
"description": "Optional. The email this person is signed in with INSIDE the app, which free access matches on; null = the enroll email; left out = the stored one stays. Send it on every call: it keeps itself current and never moves free access that already reached them"
},
"free_access": {
"type": "object",
"properties": {
"duration": {
"enum": [
"1w",
"1m",
"3m",
"1y",
"forever",
"none"
],
"type": "string",
"description": "How long, counted from when they join; none = no free access for this person"
},
"product_id": {
"type": "string",
"description": "App Store, Google Play, Adapty or Stripe apps: the store plan the app unlocks; null = full access. Ignored on RevenueCat apps"
},
"entitlement_id": {
"type": "string",
"description": "RevenueCat apps: the entitlement they get (from get_revenuecat_entitlements); null = the app’s. Ignored on other apps"
}
},
"description": "Optional. This person’s free access when this call makes them an affiliate (new, or a rejoin). Left out or null = the app’s automatic setting; { \"duration\": \"none\" } = none; otherwise that length (and plan or access level), as the owner’s own choice for them. Ignored for someone already an affiliate (set_affiliate_free_access changes that)"
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}{
"type": "object",
"required": [
"business_slug"
],
"properties": {
"to": {
"type": "string",
"description": "YYYY-MM-DD (default: today UTC)"
},
"from": {
"type": "string",
"description": "YYYY-MM-DD (default: 29 days before to)"
},
"params": {
"type": "object",
"description": "Extra parameters a specific breakdown declares, forwarded as query params - e.g. Meta’s asset dimension needs { \"assetType\": \"image\" } (Meta ships eight separate creative-asset breakdowns) and Meta’s hour_of_day takes { \"timeZone\": \"audience\" }. The catalogue call lists each one’s params, and a missing required param is refused before the network is called. The four route-level SCOPE ids ride here too, namely { \"campaignId\": \"…\" }, { \"adGroupId\": \"…\" }, { \"assetGroupId\": \"…\" } and { \"adId\": \"…\" }, and they are how a split covers ONE object instead of the whole ad account. They may be sent together when they chain (campaign, then ad group, then ad); an ad group id beside an asset group id is two questions and is refused. `scopeVerified` on the answer says whether the level is proven: today it is true only at campaign level on meta, google, tiktok and snapchat, and false on every other level any network will attempt.",
"additionalProperties": true
},
"account": {
"type": "string",
"description": "Ad account id, when the business has several connected. Omit for the default. An id the business does not have is refused, never silently swapped for another account."
},
"network": {
"enum": [
"meta",
"google",
"tiktok",
"apple_search_ads",
"x",
"snapchat"
],
"type": "string",
"description": "Required together with dimension. Omit BOTH to list every network’s breakdowns."
},
"dimension": {
"type": "string",
"description": "One dimension (see the menu in this tool’s description). Omit for the catalogue."
},
"business_slug": {
"type": "string",
"description": "Business slug, from list_businesses"
}
}
}| Business slug, from list_businesses |
| cancelled_from | string | Calls cancelled at or after this (YYYY-MM-DD, today, yesterday or ISO 8601) |
| rescheduled_to | string | Calls last moved before this |
| starting_after | string | The last lead id of the previous page |
| rescheduled_from | string | Calls last moved at or after this |