# API reference

> Every threefold HTTP endpoint, generated from the OpenAPI document.

The threefold HTTP API is described by an OpenAPI 3.1.0 document generated from the endpoint registry. The live copy is at <https://api.threefold.eco/openapi.json>; this page is rendered from the copy committed with the typed clients (`clients/openapi.json`, API version 0.2.0).

Base URL: `https://api.threefold.eco`. Authentication: `Authorization: Bearer <key>` (`tf_live_…`, or sandbox `tf_test_…`), an OAuth 2.1 access token, or nothing for keyless library reads. See [REST API](https://threefold.eco/docs/api.md) for headers, paging and metering, and [Errors](https://threefold.eco/docs/errors.md) for error bodies.

## Account

### Library Metadata {#op-library_meta-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/meta</code> <span class="opid">library_meta</span></p>

Library overview - configured markets, niches, the first-cut profile and data counts

### Track App {#op-track_app-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/track</code> <span class="opid">track_app</span></p>

Track an app across markets - ingest it now and keep it on your workspace with a home and target markets

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | body | yes | string |  |
| `home` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `targets` | body |  | (gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl)[] | Defaults to the first library cut minus home |
| `pillars` | body |  | string[] | brand, organic, paid |

### Untrack App {#op-untrack_app-delete}

<p class="route"><span class="method method-delete">DELETE</span> <code>/api/tracked/{id}</code> <span class="opid">untrack_app</span></p>

Stop tracking an app in your workspace - its schedules stop; data already collected stays in the library

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | The app&#39;s id as GET /api/tracked lists it |

### Get First-Run Answers {#op-get_first_run-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/first-run</code> <span class="opid">get_first_run</span></p>

Read the first-run answers of your workspace - your app, the countries you sell in today and next, and the pillars you do yourself

### Save First-Run Answers {#op-save_first_run-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/first-run</code> <span class="opid">save_first_run</span></p>

Save the first-run answers of your workspace - your app, the countries you sell in today and next, and the pillars you do yourself

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `app` | body |  | string | App Store id, play:&lt;package&gt;, or the app name as typed (up to 80 characters). null clears it |
| `today` | body |  | (gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl)[] | Market codes you sell in today |
| `next` | body |  | (gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl)[] | Market codes you want next; saved as the workspace&#39;s target markets |
| `pillars` | body |  | string[] | Which of brand, organic, paid you do yourself |

### Account Usage {#op-usage-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/usage</code> <span class="opid">usage</span></p>

Your workspace&#39;s plan, tracked apps and spend this month

### Request Coverage {#op-request_coverage-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/coverage/request</code> <span class="opid">request_coverage</span></p>

Record a market, app or channel you need that is not yet covered by Threefold

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | body |  | string | Market code or country name needed, e.g. br, pl, kr |
| `app_id` | body |  | string | App id or package name needed |
| `channel` | body |  | string | Channel or source needed, e.g. line, kakao, reddit |
| `note` | body |  | string | Context on why this coverage is needed |

### Save Item {#op-save_item-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/collections/save</code> <span class="opid">save_item</span></p>

Save research items (apps, screens, galleries, comparisons) to a collection or workspace

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `item_id` | body | yes | string | Item identifier to save |
| `kind` | body |  | app \| screen \| gallery \| comparison | Kind of saved item |
| `collection_id` | body |  | string | Collection UUID or &#39;all-saved&#39; |
| `collection_name` | body |  | string | Name of collection to create or add into |
| `market_code` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Market code if applicable |
| `title` | body |  | string | Item title |
| `note` | body |  | string | Optional research note |

### Remove Saved Item {#op-remove_saved_item-delete}

<p class="route"><span class="method method-delete">DELETE</span> <code>/api/collections/items/{id}</code> <span class="opid">remove_saved_item</span></p>

Remove one saved research item from the current workspace&#39;s collections by its id

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | The saved item&#39;s id (the id of an item in GET /api/collections/all-saved) |

### List Collections {#op-list_collections-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/collections</code> <span class="opid">list_collections</span></p>

List saved research collections for the current workspace with item counts

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `limit` | query |  | integer | Max collections to return |
| `offset` | query |  | integer | Paging offset |

### Get Collection {#op-get_collection-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/collections/{id}</code> <span class="opid">get_collection</span></p>

Retrieve items and notes in a saved research collection

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Collection UUID or &#39;all-saved&#39; |
| `limit` | query |  | integer | Max items to return |
| `offset` | query |  | integer | Paging offset |

### Add Collection Note {#op-add_collection_note-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/collections/notes</code> <span class="opid">add_collection_note</span></p>

Attach a team note or research comment to a collection or saved item

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `note` | body | yes | string | Note content |
| `collection_id` | body |  | string | Collection UUID |
| `item_id` | body |  | string | Item identifier |

### Create Watch {#op-create_watch-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/watches</code> <span class="opid">create_watch</span></p>

Create an alert watch on an app, a niche, or the active countries of the workspace

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `target_type` | body | yes | app \| niche \| workspace | workspace: country alerts for every active country |
| `target_id` | body |  | string | Required for app and niche; left out for workspace |
| `markets` | body |  | (gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl)[] |  |
| `events` | body |  | string[] | app, niche: listing, rank, ad. workspace: country, or country_ads, country_store, country_app, country_ai, country_holiday, country_technical |
| `threshold` | body |  | integer |  |
| `webhook_url` | body |  | string |  |
| `webhook_secret` | body |  | string |  |
| `email` | body |  | string |  |

### List Watches {#op-list_watches-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/watches</code> <span class="opid">list_watches</span></p>

List active alert watches for the current workspace

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `target_id` | query |  | string |  |

### Delete Watch {#op-delete_watch-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/watches/{id}/delete</code> <span class="opid">delete_watch</span></p>

Delete or deactivate an alert watch

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### Watch Events {#op-watch_events-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/watches/{id}/events</code> <span class="opid">watch_events</span></p>

Get recent detected events and delivery logs for a watch

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `limit` | query |  | integer |  |

### Alert Source Rows {#op-watch_event_source-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/watches/events/{id}/source</code> <span class="opid">watch_event_source</span></p>

Read the raw observed rows behind a country alert

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### Workspace {#op-agent_workspace-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/agent/workspace</code> <span class="opid">agent_workspace</span></p>

The user&#39;s own account: their app, rivals (competitors), target countries, watches, saved tool calls, connected accounts, and projects (a rollout into one country: sources, materials, review, export)

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `action` | body |  | get \| set_apps \| set_competitors \| set_markets \| watch \| unwatch \| changes \| save \| saved \| connections \| ad_ops_summary \| ad_ops_connections \| ad_ops_connect \| ad_ops_connection_state \| ad_ops_creatives \| ad_ops_creative_add \| ad_ops_creative_state \| ad_ops_campaigns \| ad_ops_queue \| ad_ops_operation \| ad_ops_cancel \| ad_ops_reconcile \| rollup_connections \| rollup_connect \| rollup_plan \| rollup_execute \| rollup_status \| ecommerce_stores \| ecommerce_store_create \| ecommerce_assess \| ecommerce_assessment \| payouts_summary \| social_posting_list \| social_posting_schedule \| social_posting_cancel \| cms_installs \| cms_translate_preview \| cms_translate_apply \| operator_queue \| operator_set \| operator_decide \| discovery_loop_view \| discovery_loop_run \| discovery_loop_list \| discovery_loop_act \| site_change_propose \| site_change_get \| site_change_approve \| site_change_reject \| site_change_open \| seeding_card \| seeding_plan \| seeding_mark \| seeding_ingest \| seeding_report \| project_list \| project_get \| project_create \| project_update \| project_delete \| project_evidence_add \| project_evidence_update \| project_evidence_delete \| project_research \| project_material_add \| project_material_update \| project_generate \| project_localise \| project_check \| project_review \| project_export \| project_monitoring \| project_opportunity \| project_growth_progress \| project_country_pnl \| project_country_configure \| project_country_approve \| project_country_readiness \| project_country_state \| project_asset_prepare \| project_asset_review \| project_asset_export \| project_publication_snapshot \| project_publication_prepare \| project_publication_publish \| project_ads_configure \| project_ads_approve \| project_ads_provision \| project_ads_cancel_unsent \| project_ads_reconcile \| project_ads_operation_reconcile \| project_ads_review_schedule \| project_ads_review \| project_ads_suggestion_approve \| project_ads_suggestion_apply \| project_economics_baseline \| project_economics_ingest \| project_economics_cost \| project_economics_installs \| project_economics_report \| project_engagement_preregister \| project_engagement_start \| project_engagement_telemetry \| project_engagement_competitor \| project_engagement_report \| project_engagement_signoff \| project_engagement_onboard \| project_engagement_contract_approve \| project_engagement_billing_alignment \| project_engagement_creator \| project_engagement_creator_update \| project_engagement_outcome \| project_engagement_outcome_revoke \| project_engagement_readiness \| project_pricing_snapshot \| project_pricing_prepare \| project_pricing_approve \| project_pricing_cancel \| project_pricing_abandon \| project_pricing_recover \| project_design_prepare \| project_design_import \| project_design_preview \| project_design_review \| project_design_export \| project_voice_set \| project_voice_review_link \| project_voice_review_revoke \| project_library_save \| project_library_brief \| project_web_funnel \| project_web_funnel_record \| project_publication_preflight | get (default) lists the app, rivals, countries, projects and watches. Rollout: project_create, then follow the Next line of each answer. Project writes require the current revision; approvals require a human session |
| `apps` | body |  | string[] | Names, ids or store URLs |
| `scope` | body |  | country | watch, unwatch with no apps: country alerts (a paid watch) |
| `market` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | set_competitors: the market |
| `markets` | body |  | (gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl)[] | set_markets, watch |
| `email` | body |  | string | watch: send alerts to this e-mail. Needed when the caller has no e-mail and the workspace has no member |
| `webhook_url` | body |  | string | watch: send alerts to this public HTTPS webhook (Slack and Discord URLs get their own format) |
| `home` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | set_markets: home market |
| `item` | body |  | string | save: JSON object with title, tool, args, note |
| `since` | body |  | string | changes: since this date |
| `project_id` | body |  | string | Workspace-owned project UUID |
| `resource_id` | body |  | string | Project evidence or material UUID |
| `payload` | body |  | object | Project fields. project_create: {name, kind: app\|retail\|service, description, home_market, target_market, app_id?, persist_consent: &lt;true, only after the user has agreed that threefold stores this project&#39;s material&gt;}; ask the user first. Every other project write: {revision: &lt;current&gt;, ...}; the fields of each action are at GET /api/discover/project_&lt;action&gt; |
| `format` | body |  | json \| markdown | project_export format |
| `material_id` | body |  | string | Export a currently approved project material |
| `install_id` | body |  | string | cms_translate_preview: CMS plugin install UUID |
| `job_id` | body |  | string | cms_translate_apply: auto-translate job UUID |
| `target_locales` | body |  | string[] | cms_translate_preview: target locale codes |
| `idempotency_key` | body |  | string | cms_translate_preview: caller idempotency key |
| `detail` | body |  | brief \| standard \| full | How much of the answer to return. brief: least tokens, the summary and the top 3 of each list, every warning kept. standard (default). full: longer lists and texts, digest up to 48,000 characters. Reads and price are the same at each level |

### List market projects {#op-project_list-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/projects</code> <span class="opid">project_list</span></p>

List market projects in the authenticated workspace; persistent customer content requires explicit consent.

### Create a consented market project {#op-project_create-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/projects</code> <span class="opid">project_create</span></p>

Create a consented market project in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `name` | body | yes | string |  |
| `kind` | body | yes | app \| retail \| service |  |
| `description` | body | yes | string |  |
| `home_market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `target_market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `category` | body |  | string |  |
| `app_id` | body |  | string |  |
| `retention_days` | body |  | integer |  |
| `persist_consent` | body | yes | boolean | true, only after the user has agreed that threefold stores this project&#39;s material. Ask the user first, with this sentence: I choose to store this project, source notes, material, reviews and check history in this workspace until I delete it or its configured retention applies. This is separate from stateless checks. Only add content you have permission to use; review output before publishing. |

### Read a market project {#op-project_get-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/projects/{project_id}</code> <span class="opid">project_get</span></p>

Read a market project in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |

### Update a market project {#op-project_update-patch}

<p class="route"><span class="method method-patch">PATCH</span> <code>/api/projects/{project_id}</code> <span class="opid">project_update</span></p>

Update a market project in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `revision` | body | yes | integer | Current project revision; stale writes return 409 |
| `name` | body |  | string |  |
| `kind` | body |  | app \| retail \| service |  |
| `description` | body |  | string |  |
| `home_market` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `target_market` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `category` | body |  | string |  |
| `app_id` | body |  | string |  |
| `retention_days` | body |  | integer |  |

### Erase a market project {#op-project_delete-delete}

<p class="route"><span class="method method-delete">DELETE</span> <code>/api/projects/{project_id}</code> <span class="opid">project_delete</span></p>

Erase a market project in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `revision` | body | yes | integer | Current project revision; stale writes return 409 |

### Read weekly SEO, GEO and store growth progress {#op-project_growth_progress-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/projects/{project_id}/growth-progress</code> <span class="opid">project_growth_progress</span></p>

Read grounded weekly SEO/GEO audit, Search Console, AI share-of-voice, store presence, and Country Operator progress time-series per country for a market project.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Optional market code to filter progress to one country |
| `weeks` | query |  | integer | Number of UTC Monday-start weeks in the window, 4 to 52 (default 12) |

### Read the country profit scorecard {#op-project_country_pnl-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/projects/{project_id}/country-pnl</code> <span class="opid">project_country_pnl</span></p>

Read spend, installs, conversion, LTV and payback for each country of a market project, with plain weekly actions and the sources that are not connected.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `days` | query |  | integer | Window length in complete UTC days, 7 to 93 (default 30) |
| `ends_at` | query |  | string | Exclusive end date YYYY-MM-DD, not after today (default today) |
| `include_estimates` | query |  | boolean | Attach original modelled opportunity estimate beside observed revenue |

### Project Untapped Country Opportunities {#op-project_opportunity-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/projects/{project_id}/opportunity</code> <span class="opid">project_opportunity</span></p>

Rank untapped collected countries for a workspace project, excluding active countries.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `store` | query |  | ios \| play | ios (default) or play |
| `genre` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Override category/genre slug |
| `rank_band` | query |  | string | Target rank or band (top_10, 1-10, 1..200) |
| `limit` | query |  | integer | Untapped countries to return (1 to 20) |

### Add attributed project evidence {#op-project_evidence_add-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/projects/{project_id}/evidence</code> <span class="opid">project_evidence_add</span></p>

Add attributed project evidence in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `revision` | body | yes | integer | Current project revision; stale writes return 409 |
| `title` | body | yes | string |  |
| `url` | body |  | string | Optional public source citation URL |
| `pillar` | body | yes | brand \| organic \| paid |  |
| `market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `observed_at` | body | yes | string |  |
| `content` | body |  | string | Owned or licensed text only; omit for reference_only evidence |
| `rights` | body | yes | owned \| licensed \| reference_only |  |
| `rights_note` | body |  | string | Required when rights is licensed |
| `source_id` | body |  | string |  |
| `source_record_id` | body |  | string |  |

### Correct project evidence and permissions {#op-project_evidence_update-patch}

<p class="route"><span class="method method-patch">PATCH</span> <code>/api/projects/{project_id}/evidence/{resource_id}</code> <span class="opid">project_evidence_update</span></p>

Correct project evidence and permissions in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `resource_id` | path | yes | string | Path parameter resource_id |
| `revision` | body | yes | integer | Current project revision; stale writes return 409 |
| `title` | body |  | string |  |
| `url` | body |  | string |  |
| `pillar` | body |  | brand \| organic \| paid |  |
| `market` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `observed_at` | body |  | string |  |
| `content` | body |  | string |  |
| `rights` | body |  | owned \| licensed \| reference_only |  |
| `rights_note` | body |  | string |  |
| `source_id` | body |  | string |  |
| `source_record_id` | body |  | string |  |

### Remove project evidence and invalidate dependent approvals {#op-project_evidence_delete-delete}

<p class="route"><span class="method method-delete">DELETE</span> <code>/api/projects/{project_id}/evidence/{resource_id}</code> <span class="opid">project_evidence_delete</span></p>

Remove project evidence and invalidate dependent approvals in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `resource_id` | path | yes | string | Path parameter resource_id |
| `revision` | body | yes | integer | Current project revision; stale writes return 409 |

### Import app-library references with coverage limits {#op-project_research-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/projects/{project_id}/research</code> <span class="opid">project_research</span></p>

Import app-library references with coverage limits in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `revision` | body | yes | integer | Current project revision; stale writes return 409 |
| `app_id` | body |  | string |  |

### Save a draft material with its evidence {#op-project_material_add-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/projects/{project_id}/materials</code> <span class="opid">project_material_add</span></p>

Save a draft material with its evidence in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `revision` | body | yes | integer | Current project revision; stale writes return 409 |
| `kind` | body | yes | positioning \| listing \| email \| creator_brief \| page \| offer \| pricing \| cpp \| statutory \| screenshot |  |
| `title` | body | yes | string |  |
| `content` | body | yes | string |  |
| `evidence_ids` | body | yes | string[] |  |
| `locale` | body |  | string |  |
| `format` | body |  | text \| html \| markdown |  |
| `payload` | body |  | object | Structured offer/pricing/CPP/statutory/screenshot specification. Listing/CPP resources use existing ASC localization ids and expected_hash snapshots. The server derives reviewable canonical content from publication payloads or screenshot strings; review the returned content before copy QA. |

### Edit material and invalidate old approval {#op-project_material_update-patch}

<p class="route"><span class="method method-patch">PATCH</span> <code>/api/projects/{project_id}/materials/{resource_id}</code> <span class="opid">project_material_update</span></p>

Edit material and invalidate old approval in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `resource_id` | path | yes | string | Path parameter resource_id |
| `revision` | body | yes | integer | Current project revision; stale writes return 409 |
| `title` | body |  | string |  |
| `content` | body |  | string |  |
| `evidence_ids` | body |  | string[] |  |
| `locale` | body |  | string |  |
| `format` | body |  | text \| html \| markdown |  |
| `payload` | body |  | object | Replacement structured specification; any edit invalidates approval, copy QA and visual QA. |

### Generate a grounded draft with recorded supplier cost {#op-project_generate-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/projects/{project_id}/generate</code> <span class="opid">project_generate</span></p>

Generate a grounded draft with recorded supplier cost in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `revision` | body | yes | integer | Current project revision; stale writes return 409 |
| `kind` | body | yes | positioning \| listing \| email \| creator_brief \| page |  |
| `title` | body |  | string |  |
| `instructions` | body | yes | string |  |
| `evidence_ids` | body | yes | string[] |  |
| `locale` | body |  | string |  |

### Localise saved material for review {#op-project_localise-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/projects/{project_id}/localise</code> <span class="opid">project_localise</span></p>

Localise saved material for review in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `revision` | body | yes | integer | Current project revision; stale writes return 409 |
| `material_id` | body | yes | string |  |
| `variant` | body | yes | string |  |
| `protected_phrases` | body |  | string[] |  |
| `glossary` | body |  |  | Your terms, winning over the market glossary. Sources must be unique ignoring case. |

### Recheck project material and evidence {#op-project_check-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/projects/{project_id}/check</code> <span class="opid">project_check</span></p>

Recheck project material and evidence in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `revision` | body | yes | integer | Current project revision; stale writes return 409 |
| `material_id` | body |  | string |  |

### Generate a localised web-to-app funnel {#op-project_web_funnel-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/projects/{project_id}/web-funnel</code> <span class="opid">project_web_funnel</span></p>

Generate a localised web-to-app funnel for one country of a market project: a native-language landing or quiz page, local web checkout configuration (Pix, OXXO, Konbini, SEPA, Klarna through Stripe, Paddle or RevenueCat Web Billing), Universal Link and App Link files with their verification, and the funnel&#39;s conversion in the country scorecard&#39;s shape.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `country` | body |  | string | Market code (default: the project&#39;s target market) |
| `domain` | body | yes | string | Funnel host, for example go.example.com |
| `plans` | body | yes | object[] | 1 to 3 plans: [{interval: month\|year, price, trial_days?, checkout_url?}] |
| `kind` | body |  | landing \| quiz | Page kind (default landing); a quiz needs quiz.questions |
| `provider` | body |  | stripe \| paddle \| revenuecat_web_billing | Default: the provider that takes most of the market&#39;s rails |
| `entitlements` | body |  | revenuecat \| own | Where web checkout unlocks entitlements (default: revenuecat when provider is revenuecat_web_billing, else own) |
| `rails` | body |  | string[] | pix, oxxo, konbini, sepa_debit, klarna (default: the market&#39;s) |
| `app` | body |  | object | {name, ios_app_id, team_id, bundle_id, android_package, sha256_fingerprints, custom_scheme, app_store_url, play_store_url, platforms} |
| `copy` | body |  | object | Translated page strings (see page.copy_contract); starter copy fills the rest |
| `copy_meta` | body |  | object | Provenance and native-review attestation for supplied copy: {source, model, run_id, native_reviewed} |
| `quiz` | body |  | object | {questions: [{id, question, options: [{id, label}]}]} in the target language |
| `checkout_url` | body |  | string | Hosted checkout link used by plans without their own |
| `terms_url` | body |  | string | https URL of your Terms of Service in the target language |
| `privacy_url` | body |  | string | https URL of your Privacy Policy in the target language |
| `indexable` | body |  | boolean | Allow search engines to index the funnel page (default false) |
| `links` | body |  | object | {check: live} reads the well-known files from your domain; {aasa, assetlinks} verifies files you send |
| `conversion` | body |  |  | {days, ends_at} window for the conversion block; false leaves it out |

### Record daily web-funnel counts for the country scorecard {#op-project_web_funnel_record-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/projects/{project_id}/web-funnel/metrics</code> <span class="opid">project_web_funnel_record</span></p>

Record a day-by-day count of web-funnel visits, quiz starts, checkout clicks, paid orders and app opens, and web revenue not already counted through RevenueCat, so the country scorecard can show web checkout beside store subscriptions.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `revision` | body | yes | integer | Current project revision; stale writes return 409 |
| `provider` | body | yes | stripe \| paddle \| revenuecat_web_billing |  |
| `revenue_in_revenuecat` | body | yes | boolean | True when RevenueCat already receives these orders: money fields must then be left out |
| `evidence` | body | yes | object | {source, report_sha256} of the export the counts come from |
| `rows` | body | yes | object[] | 1 to 400 rows: {country, day, visits, checkout_starts, paid_orders, quiz_starts?, app_opens?, currency, gross, refunded?, net?} |
| `acknowledge_human_review` | body | yes | boolean | A signed-in human checked the counts |

### Review a current material revision {#op-project_review-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/projects/{project_id}/materials/{resource_id}/review</code> <span class="opid">project_review</span></p>

Review a current material revision in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `resource_id` | path | yes | string | Path parameter resource_id |
| `revision` | body | yes | integer | Current project revision; stale writes return 409 |
| `decision` | body | yes | approve \| request_changes |  |
| `note` | body | yes | string |  |
| `acknowledge_human_review` | body | yes | boolean |  |
| `commercial_signoff` | body |  | boolean | Human customer commercial/pricing authority; required for offer, pricing and CPP approval. |
| `legal_signoff` | body |  | boolean | Human legal signoff for offer, pricing, statutory and CPP items; not legal certification. |
| `publication_signoff` | body |  | boolean | Explicit customer authority to publish this exact material revision. |
| `copy_review` | body |  | object | Human-attested {source,sidecar}; source/target/locale/config hashes and calibrated blind review evidence must validate. |

### Export project provenance or approved material {#op-project_export-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/projects/{project_id}/export</code> <span class="opid">project_export</span></p>

Export project provenance or approved material in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `format` | query |  | json \| markdown |  |
| `material_id` | query |  | string |  |

### Configure bounded project rechecks {#op-project_monitoring-patch}

<p class="route"><span class="method method-patch">PATCH</span> <code>/api/projects/{project_id}/monitoring</code> <span class="opid">project_monitoring</span></p>

Configure bounded project rechecks in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `revision` | body | yes | integer | Current project revision; stale writes return 409 |
| `enabled` | body | yes | boolean |  |
| `interval_hours` | body | yes | integer |  |
| `max_checks_per_month` | body | yes | integer |  |

### Read actual workspace limits and ledger usage {#op-commercial_usage-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/commercial</code> <span class="opid">commercial_usage</span></p>

Read actual workspace limits and ledger usage in the authenticated workspace; persistent customer content requires explicit consent.

### Estimate supplier token cost without charging {#op-commercial_estimate-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/commercial/estimate</code> <span class="opid">commercial_estimate</span></p>

Estimate supplier token cost without charging in the authenticated workspace; persistent customer content requires explicit consent.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `model` | body |  | string |  |
| `input_tokens` | body |  | integer |  |
| `output_tokens` | body |  | integer |  |
| `cache_read_input_tokens` | body |  | integer |  |
| `cache_creation_input_tokens` | body |  | integer |  |
| `calls` | body |  | integer |  |

### Operate approved country rollouts, commercial changes and native designs {#op-project_operation-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/projects/{project_id}/operations/{operation}</code> <span class="opid">project_operation</span></p>

Execute revision-locked country, native design, pricing, publication, advertising, economics or engagement operations.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `operation` | path | yes | country_configure \| country_approve \| country_readiness \| country_state \| asset_prepare \| asset_review \| asset_export \| publication_snapshot \| publication_preflight \| publication_prepare \| publication_publish \| ads_configure \| ads_approve \| ads_provision \| ads_cancel_unsent \| ads_reconcile \| ads_operation_reconcile \| ads_review_schedule \| ads_review \| ads_suggestion_approve \| ads_suggestion_apply \| economics_baseline \| economics_ingest \| economics_cost \| economics_installs \| economics_report \| engagement_preregister \| engagement_start \| engagement_telemetry \| engagement_competitor \| engagement_report \| engagement_signoff \| engagement_onboard \| engagement_contract_approve \| engagement_billing_alignment \| engagement_creator \| engagement_creator_update \| engagement_outcome \| engagement_outcome_revoke \| engagement_readiness \| pricing_snapshot \| pricing_prepare \| pricing_approve \| pricing_cancel \| pricing_abandon \| pricing_recover \| design_prepare \| design_import \| design_preview \| design_review \| design_export \| voice_set \| voice_review_link \| voice_review_revoke \| library_save \| library_brief | Path parameter operation |
| `revision` | body | yes | integer | Current project revision; stale writes return 409. |
| `payload` | body |  | object | Optional operation-specific fields (defaults to {}, or pass fields at top level). Country contracts carry budget, currency, payback, target criteria and responsibility ledger. Publications require material_id, environment and immutable idempotency_key; a material in a country contract must also pass the store pre-flight (publication_preflight reads it; store_snapshot carries the store state, docs/store-preflight.md). Human approvals use signed-in sessions only. |

### List workspace discovery audits {#op-list_discovery_audits-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/discovery/audits</code> <span class="opid">list_discovery_audits</span></p>

List persisted bundled SEO, ASO, and GEO discovery audits in the authenticated workspace.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `state` | query |  | draft \| audited \| published \| archived | Filter by audit state |
| `limit` | query |  | integer | Page size (1-100) |
| `offset` | query |  | integer | Pagination offset |

### Get one discovery audit {#op-get_discovery_audit-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/discovery/audits/{id}</code> <span class="opid">get_discovery_audit</span></p>

Read a single persisted discovery audit with scores, findings, artifacts, and allowed state actions.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Discovery audit UUID |

### Transition discovery audit state {#op-transition_discovery_audit-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/discovery/audits/{id}/state</code> <span class="opid">transition_discovery_audit</span></p>

Move a workspace discovery audit across draft, audited, published, and archived through the guarded state machine.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Discovery audit UUID |
| `to` | body | yes | draft \| audited \| published \| archived | Target state |
| `from` | body |  | string[] | Optional expected current states for optimistic locking |

### List AI share-of-voice runs {#op-list_geo_probe_runs-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/discovery/ai-visibility/runs</code> <span class="opid">list_geo_probe_runs</span></p>

List workspace AI share-of-voice runs.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `limit` | query |  | integer | Page size (1-100) |
| `offset` | query |  | integer | Pagination offset |

### Get one AI share-of-voice run {#op-get_geo_probe_run-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/discovery/ai-visibility/runs/{id}</code> <span class="opid">get_geo_probe_run</span></p>

Get one probe run with answers and playbook.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Probe run UUID |

### Compare baseline and re-probe AI share-of-voice runs {#op-geo_probe_compare-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/discovery/ai-visibility/compare</code> <span class="opid">geo_probe_compare</span></p>

Compare baseline and 14–30 day re-probe runs for citation delta.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `baseline_run_id` | body |  | string | Baseline geo_probe_runs UUID (Postgres) |
| `current_run_id` | body |  | string | Re-probe geo_probe_runs UUID (Postgres) |
| `baseline` | body |  | object | Inline baseline run object (for offline comparison without Postgres) |
| `current` | body |  | object | Inline current run object (for offline comparison without Postgres) |

### Measure AI citation lift after a site change {#op-geo_probe_measured_after-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/discovery/ai-visibility/measured-after</code> <span class="opid">geo_probe_measured_after</span></p>

Compare baseline and post-change probe runs for citation share-of-voice lift.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `baseline_run_id` | body |  | string | Baseline geo_probe_runs UUID (optional when proposal_id carries baseline_run_id) |
| `after_run_id` | body |  | string | Post-change geo_probe_runs UUID (auto-selects newest completed run after change if omitted) |
| `proposal_id` | body |  | string | Optional site_change_proposals UUID to link baseline and change date |
| `min_days` | body |  | integer | Minimum days before full measurement window (default 14) |

### Library Overview {#op-library_overview-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/library/overview</code> <span class="opid">library_overview</span></p>

Live library counters across apps, listings, reviews, paid ads, organic posts, creators and archived media, by market and source freshness

### Country funnel diagnostics {#op-project_funnels-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/projects/{project_id}/funnels</code> <span class="opid">project_funnels</span></p>

Find where each country drops off between install, trial, paid, renewal and refund compared with the project&#39;s home market, from RevenueCat and Stripe through read-only connections

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | path | yes | string | Path parameter project_id |
| `home` | query |  | string | Home market or country code; defaults to the project&#39;s home market |
| `start` | query |  | string | First day, inclusive; defaults to 90 days before end |
| `end` | query |  | string | Last day, exclusive, at most today; defaults to today |
| `min_sample` | query |  | integer | Fewest customers at the start of a step before it is judged; default 100 |

### Create ad-platform connection {#op-ad_ops_connections_create-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/ad-ops/connections</code> <span class="opid">ad_ops_connections_create</span></p>

Register a workspace-scoped Google Ads, Meta Ads, or TikTok Ads connection authorized by THREEFOLD_AD_PLATFORM_CONNECTIONS_JSON.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `platform` | body | yes | google_ads \| meta_ads \| tiktok_ads |  |
| `account_id` | body | yes | string |  |
| `credential_ref` | body | yes | string |  |
| `environment` | body | yes | staging \| production |  |
| `base_url` | body |  | string | Loopback URL for staging; omitted in production |
| `currency` | body | yes | string |  |
| `daily_cap_minor` | body | yes | integer |  |
| `monthly_cap_minor` | body | yes | integer |  |
| `config` | body |  | object | Optional platform config (e.g. oauth_url for Google Ads staging) |

### List ad-platform connections {#op-ad_ops_connections_list-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/ad-ops/connections</code> <span class="opid">ad_ops_connections_list</span></p>

List workspace-scoped Google Ads, Meta Ads, and TikTok Ads connections with current cap usage.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `platform` | query |  | google_ads \| meta_ads \| tiktok_ads |  |
| `environment` | query |  | staging \| production |  |
| `state` | query |  | active \| paused \| revoked |  |

### Transition ad-platform connection state {#op-ad_ops_connection_state-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/ad-ops/connections/{id}/state</code> <span class="opid">ad_ops_connection_state</span></p>

Pause, activate, or revoke a workspace-scoped ad-platform connection.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `state` | body |  | active \| paused \| revoked |  |
| `action` | body |  | pause \| activate \| resume \| revoke |  |

### Create plug-in creative slot {#op-ad_ops_creatives_create-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/ad-ops/creatives</code> <span class="opid">ad_ops_creatives_create</span></p>

Register an externally or creator-supplied creative slot in draft state for explicit approval before campaign launch.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `platform` | body | yes | google_ads \| meta_ads \| tiktok_ads |  |
| `market_code` | body | yes | string | Two-letter ISO 3166-1 country code of the target market, any country the ad platform serves (not only the library&#39;s markets) |
| `locale` | body | yes | string |  |
| `slot_kind` | body | yes | text_asset \| image \| video \| app_asset_group |  |
| `headline` | body |  | string |  |
| `body` | body |  | string |  |
| `cta` | body |  | string |  |
| `media_ref` | body |  | string |  |
| `asset_hash` | body |  | string | Optional explicit SHA-256 hash of the creative asset |
| `metadata` | body |  | object | Optional non-secret creative metadata |

### List creative slots {#op-ad_ops_creatives_list-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/ad-ops/creatives</code> <span class="opid">ad_ops_creatives_list</span></p>

List plug-in ad creative slots in the authenticated workspace with approval state and allowed next actions.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `platform` | query |  | google_ads \| meta_ads \| tiktok_ads |  |
| `market_code` | query |  | string | Two-letter ISO 3166-1 country code to filter by |
| `approval_state` | query |  | draft \| approved \| rejected \| archived |  |

### Transition creative slot approval state {#op-ad_ops_creative_state-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/ad-ops/creatives/{id}/state</code> <span class="opid">ad_ops_creative_state</span></p>

Approve, reject, archive, or reopen a plug-in ad creative slot.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `state` | body |  | draft \| approved \| rejected \| archived |  |
| `action` | body |  | approve \| reject \| archive \| reopen |  |
| `reason` | body |  | string |  |

### Queue multi-platform ad campaign {#op-ad_ops_campaigns_create-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/ad-ops/campaigns</code> <span class="opid">ad_ops_campaigns_create</span></p>

Create a campaign bound to an approved creative slot, queue its provider operation, and atomically reserve daily and monthly spend.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `connection_id` | body | yes | string |  |
| `creative_slot_id` | body | yes | string |  |
| `platform` | body |  | google_ads \| meta_ads \| tiktok_ads | Optional platform assertion against connection |
| `name` | body |  | string | Optional campaign name |
| `market_code` | body | yes | string | Two-letter ISO 3166-1 country code of the target market, any country the ad platform serves (not only the library&#39;s markets) |
| `market_codes` | body |  | string[] | Optional multi-country target market list: two-letter ISO 3166-1 country codes |
| `locale` | body | yes | string |  |
| `languages` | body |  | string[] | Optional ISO language codes |
| `target_all_languages` | body |  | boolean | Meta only. Target the market in all languages rather than the listed languages. |
| `objective` | body | yes | string |  |
| `app_id` | body | yes | string |  |
| `store` | body | yes | ios \| android \| web |  |
| `daily_budget_minor` | body | yes | integer |  |
| `currency` | body | yes | string |  |
| `bidding_strategy` | body |  | TARGET_CPI \| TARGET_ROAS |  |
| `target_cpi_minor` | body |  | integer | Optional target CPI in currency minor units |
| `target_roas` | body |  | string | Optional positive finite target ROAS multiplier |
| `idempotency_key` | body |  | string |  |
| `config` | body |  | object | Optional extra non-secret campaign config |

### List multi-platform ad campaigns {#op-ad_ops_campaigns_list-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/ad-ops/campaigns</code> <span class="opid">ad_ops_campaigns_list</span></p>

List Google Ads, Meta Ads, and TikTok Ads campaigns in the authenticated workspace.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `platform` | query |  | google_ads \| meta_ads \| tiktok_ads |  |
| `market_code` | query |  | string | Two-letter ISO 3166-1 country code to filter by |
| `state` | query |  | draft \| paused \| active \| ended \| error |  |

### End an ad campaign in threefold&#39;s record {#op-ad_ops_campaign_end-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/ad-ops/campaigns/{id}/end</code> <span class="opid">ad_ops_campaign_end</span></p>

Mark a paused or active campaign as ended in threefold&#39;s record, so its daily budget no longer counts against the connection&#39;s daily cap. Makes no provider call and does not pause or remove the campaign at the provider: do that there if needed.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### Get ad-platform operation status {#op-ad_ops_operation_get-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/ad-ops/operations/{id}</code> <span class="opid">ad_ops_operation_get</span></p>

Inspect an ad-platform operation, its spend reservations, receipt, and allowed next actions.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### Reconcile uncertain ad-platform operation {#op-ad_ops_operation_reconcile-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/ad-ops/operations/{id}/reconcile</code> <span class="opid">ad_ops_operation_reconcile</span></p>

Query the provider read-only by idempotency tag to move an uncertain operation to reconciled or failed_before_send.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `note` | body |  | string |  |

### Cancel queued ad-platform operation {#op-ad_ops_operation_cancel-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/ad-ops/operations/{id}/cancel</code> <span class="opid">ad_ops_operation_cancel</span></p>

Cancel a queued ad-platform operation before execution and release its reserved spend.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `reason` | body |  | string |  |

### Multi-platform ad operations summary {#op-ad_ops_summary-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/ad-ops/summary</code> <span class="opid">ad_ops_summary</span></p>

Roll up Apple Ads, Google Ads, Meta Ads, and TikTok Ads campaigns, operations, creatives, and spend separated by currency across countries.

### Probe and list workspace platform connections {#op-rollup_list_connections-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/rollup/connections</code> <span class="opid">rollup_list_connections</span></p>

List registered platform connections and probe readiness across App Store Connect, Google Play, Shopify, Vercel and Sanity.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `live` | query |  | string | Set to 1 to probe loopback/injected endpoints live. |

### Register or transition a workspace platform connection {#op-rollup_upsert_connection-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/rollup/connections</code> <span class="opid">rollup_upsert_connection</span></p>

Register a non-secret platform connection binding or advance its explicit connection state.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `platform` | body |  | appstore_connect \| google_play \| shopify \| vercel \| sanity |  |
| `external_id` | body |  | string | Platform app, shop, project or dataset identifier. |
| `display_name` | body |  | string |  |
| `environment` | body |  | staging \| production |  |
| `capabilities` | body |  | string[] |  |
| `config` | body |  | object | Non-secret connection metadata only; credentials resolve from server-owned configuration or workspace-linked OAuth installs. |
| `connect` | body |  | boolean |  |
| `id` | body |  | string | Existing connection UUID when transitioning state. |
| `to` | body |  | disconnected \| connected \| degraded \| revoked |  |
| `error` | body |  | string |  |

### Plan a cross-platform localisation roll-up sync {#op-rollup_plan_sync-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/rollup/sync/plan</code> <span class="opid">rollup_plan_sync</span></p>

Compute a deterministic dry-run diff plan across connected platforms for target markets.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `target_markets` | body | yes | (gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl)[] |  |
| `platforms` | body | yes | string[] |  |
| `environment` | body |  | staging \| production | Target connection environment (defaults to staging when available). |
| `project_id` | body |  | string |  |
| `materials` | body |  | object[] | Approved content to roll out. A material applies to every platform, market and locale it does not name. Each becomes one plan operation. |
| `store_snapshots` | body |  | object | Store state for the store pre-flight, keyed by platform (appstore_connect, google_play) then market. Apply runs the four checks first and stops on a failing item; docs/store-preflight.md has the shape. |
| `idempotency_key` | body |  | string |  |

### Execute, dry-run, cancel, recover or reconcile a roll-up sync run {#op-rollup_execute_sync-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/rollup/sync/{id}/execute</code> <span class="opid">rollup_execute_sync</span></p>

Run a planned platform roll-up sync in dry_run or apply mode (gated by THREEFOLD_ROLLUP_APPLY_ENABLED), cancel, recover stale runs or reconcile.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `mode` | body |  | dry_run \| apply |  |
| `reconcile` | body |  | boolean | Operator or owner/admin session only: mark a failed sync run reconciled. |
| `recover` | body |  | boolean | Recover a stale planning or executing sync run to failed. |
| `cancel` | body |  | boolean |  |
| `note` | body |  | string |  |
| `reason` | body |  | string |  |

### Read a platform roll-up sync run {#op-rollup_get_sync-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/rollup/sync/{id}</code> <span class="opid">rollup_get_sync</span></p>

Inspect a platform sync run, its plan, receipts, state and allowed actions.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### Create an e-commerce store profile {#op-ecommerce_create_store-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/ecommerce/stores</code> <span class="opid">ecommerce_create_store</span></p>

Register a physical-product store profile with home market, shipping origins and AOV for readiness assessment.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `platform` | body |  | shopify \| vercel \| sanity \| custom |  |
| `store_domain` | body | yes | string |  |
| `home_market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `product_categories` | body |  | string[] |  |
| `average_order_value_minor` | body |  | integer |  |
| `currency` | body |  | string |  |
| `shipping_origins` | body |  | string[] |  |
| `config` | body |  | object | Non-secret store settings kept with the profile. The market assessment reads the keys listed here. Keys that look like secrets (token, secret, password, api_key, credential, authorization, jwt) and secret-shaped values are refused with 400; use a key ending in _env_ref with an UPPERCASE env var name instead. |

### List workspace e-commerce store profiles {#op-ecommerce_list_stores-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/ecommerce/stores</code> <span class="opid">ecommerce_list_stores</span></p>

List physical-product e-commerce store profiles registered in the authenticated workspace.

### Assess e-commerce 0-to-100 market readiness {#op-ecommerce_assess_market-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/ecommerce/assess</code> <span class="opid">ecommerce_assess_market</span></p>

Score an e-commerce store or Shopify Markets snapshot (0-100) for a target market with regional rules and blockers.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market_code` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `store_profile_id` | body |  | string |  |
| `store_profile` | body |  | object | Inline store profile for the assessment. With `store_profile_id`, the fields given here override the saved profile. `id` and `workspace_id` are ignored. |
| `snapshot` | body |  | object | Shopify Markets export for the readiness score. When present, the score reads it instead of the profile alone; each missing section lowers the score. Keys the score reads are listed; others are ignored. |

### Read an e-commerce market readiness assessment {#op-ecommerce_get_assessment-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/ecommerce/assessments/{id}</code> <span class="opid">ecommerce_get_assessment</span></p>

Retrieve a persisted e-commerce market readiness assessment, its score, blockers and allowed transitions.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### Workspace Creator Payouts Summary {#op-payouts_summary-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/payouts/summary</code> <span class="opid">payouts_summary</span></p>

Read creator payout payees, balances per currency, recent transfers and open policy decisions

### Connect Social Posting Account {#op-social_posting_connect_account-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/social-posting/accounts</code> <span class="opid">social_posting_connect_account</span></p>

Connect a workspace social posting account for TikTok, Instagram Reels, YouTube or X with AES-GCM encrypted tokens

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `platform` | body | yes | tiktok \| instagram \| youtube \| x |  |
| `external_account_id` | body | yes | string |  |
| `handle` | body |  | string |  |
| `market_code` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `credentials` | body | yes | object | Account credentials, encrypted at rest and never returned. Every platform adapter (tiktok, instagram, youtube, x) reads only `access_token`; a post for an account without it fails with missing_access_token. Any other key is stored but not used. Must be a JSON object (arrays are refused with 400). Needs THREEFOLD_SOCIAL_POSTING_TOKEN_SECRET on the server. |
| `scopes` | body |  | string[] |  |
| `metadata` | body |  | object | Free-form notes stored with the account (JSON); the server reads no key. Replaced on every reconnect. |

### List Social Posting Accounts {#op-social_posting_list_accounts-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/social-posting/accounts</code> <span class="opid">social_posting_list_accounts</span></p>

List connected social posting accounts in the workspace without exposing encrypted credentials

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `platform` | query |  | tiktok \| instagram \| youtube \| x |  |

### Stage Video Asset for Social Posting {#op-social_posting_stage_asset-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/social-posting/assets</code> <span class="opid">social_posting_stage_asset</span></p>

Register staged video asset metadata for scheduled cross-platform posting

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `media_key` | body | yes | string |  |
| `mime_type` | body | yes | string |  |
| `bytes` | body | yes | integer |  |
| `duration_ms` | body |  | integer |  |
| `width` | body |  | integer |  |
| `height` | body |  | integer |  |
| `sha256` | body | yes | string |  |
| `poster_key` | body |  | string |  |

### Create Draft Scheduled Video Post {#op-social_posting_create_post-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/social-posting/posts</code> <span class="opid">social_posting_create_post</span></p>

Create a validated draft scheduled video post for TikTok, Instagram Reels, YouTube or X

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `account_id` | body | yes | string |  |
| `asset_id` | body |  | string |  |
| `platform` | body |  | tiktok \| instagram \| youtube \| x |  |
| `market_code` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `timezone` | body |  | string |  |
| `scheduled_for` | body | yes | string |  |
| `caption` | body |  | string |  |
| `metadata` | body |  | object | Per-platform publish options. Only the keys of the account&#39;s platform are read; other keys are stored and ignored. |
| `idempotency_key` | body |  | string |  |

### List Scheduled Video Posts {#op-social_posting_list_posts-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/social-posting/posts</code> <span class="opid">social_posting_list_posts</span></p>

List scheduled cross-platform video posts in the workspace with state and allowed next actions

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `state` | query |  | draft \| scheduled \| publishing \| published \| failed \| cancelled \| dead_letter |  |
| `platform` | query |  | tiktok \| instagram \| youtube \| x |  |
| `limit` | query |  | integer |  |

### Get Scheduled Video Post Details {#op-social_posting_get_post-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/social-posting/posts/{id}</code> <span class="opid">social_posting_get_post</span></p>

Inspect a scheduled video post and its append-only delivery attempts

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### Schedule a Video Post {#op-social_posting_schedule_post-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/social-posting/posts/{id}/schedule</code> <span class="opid">social_posting_schedule_post</span></p>

Move a draft or retryable failed video post into the scheduled state

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `scheduled_for` | body |  | string |  |
| `timezone` | body |  | string |  |

### Cancel a Scheduled Video Post {#op-social_posting_cancel_post-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/social-posting/posts/{id}/cancel</code> <span class="opid">social_posting_cancel_post</span></p>

Cancel a draft, scheduled, or failed video post before publishing

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### Country Operator Schedules and Queue {#op-country_operator_get-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/country-operator</code> <span class="opid">country_operator_get</span></p>

Read the weekly Country Operator: each country&#39;s opt-in schedule and the open approval queue with the actions a person may take next

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | query |  | string | Only this project |

### Country Operator Queue Items {#op-country_operator_items-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/country-operator/items</code> <span class="opid">country_operator_items</span></p>

List Country Operator approval items by state, with their frozen payload, evidence, spend cap and allowed actions

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | query |  | string |  |
| `country` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `state` | query |  | string | Comma list of staged, approved, rejected, expired, publishing, published, failed, uncertain, reconciled. Default: the open ones |
| `limit` | query |  | integer |  |

### Switch a Country&#39;s Weekly Operator On or Off {#op-country_operator_set_schedule-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/country-operator/schedules</code> <span class="opid">country_operator_set_schedule</span></p>

Opt one active country in or out of the weekly Country Operator, and set its run day and Apple Ads adjustment cap

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | body | yes | string |  |
| `country` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `enabled` | body |  | boolean |  |
| `weekday` | body |  | integer | 1 (Monday) to 7 (Sunday). Default 1 |
| `ads_adjustment_cap` | body |  | string | Largest daily-budget shift the operator may propose, in the market currency. Default 0: none |

### Stage This Week&#39;s Country Operator Queue Now {#op-country_operator_run-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/country-operator/run</code> <span class="opid">country_operator_run</span></p>

Stage this week&#39;s approval queue for one enabled country now; a week has at most one run, and staging writes nothing live

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `project_id` | body | yes | string |  |
| `country` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `suggest_next_country` | body |  | boolean | Opt in for this run to a project-wide next-country suggestion, at most one per 30 days. |

### Local Share Card and Referral Message {#op-seeding_share_card-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/seeding/share-card</code> <span class="opid">seeding_share_card</span></p>

Build the locale-specific Open Graph preview tags and native referral message for WhatsApp, LINE or KakaoTalk, with a tracked link

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `app_name` | body | yes | string |  |
| `market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `link` | body | yes | string |  |
| `channel` | body |  | whatsapp \| line \| kakao |  |
| `tagline` | body |  | string |  |
| `image_url` | body |  | string |  |
| `code` | body |  | string |  |
| `ref` | body |  | string |  |
| `universal_link` | body |  | object,null | Result of the Universal Link / App Link check, {verified, checked_at}; omit when not checked |

### Plan a Creator Seeding Set {#op-seeding_plan-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/seeding/sets</code> <span class="opid">seeding_plan</span></p>

Create a creator seeding set for one app and market, give each creator one code and attribution token, and return the links and native-language outreach drafts

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `set_id` | body |  | string | Add creators to this set instead of creating one |
| `name` | body |  | string |  |
| `app_name` | body |  | string |  |
| `market` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `sender` | body |  | string | First name creators see |
| `offer` | body |  | string | What the code gives, in the creators&#39; language; a neutral default is used when omitted |
| `landing_url` | body |  | string | https page, ideally a Universal Link |
| `ios_app_id` | body |  | string | Numeric App Store id |
| `android_package` | body |  | string |  |
| `stores` | body |  | string[] | ios, android; both by default |
| `creators` | body |  | object[] | [{platform, handle, display_name?, language?, follower_band?}]; omit to read the library&#39;s creators for the market |
| `platform` | body |  | string | Library creators filter |
| `limit` | body |  | integer | Creators to add, 1 to 50; default 20 |

### List Creator Seeding Sets {#op-seeding_list-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/seeding/sets</code> <span class="opid">seeding_list</span></p>

List the workspace&#39;s creator seeding sets with how many creators sit in each outreach state

### Get a Creator Seeding Kit {#op-seeding_kit-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/seeding/sets/{set_id}</code> <span class="opid">seeding_kit</span></p>

Read a creator seeding set&#39;s kit again: each creator&#39;s code, tracked links, outreach drafts and what is still to create in the stores

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `set_id` | path | yes | string | Path parameter set_id |

### Creator Seeding Report: Installs and Trials per Creator {#op-seeding_report-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/seeding/sets/{set_id}/report</code> <span class="opid">seeding_report</span></p>

Report installs, offer code redemptions, trials and paid conversions for each creator in a seeding set; a count is null until its source is connected

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `set_id` | path | yes | string | Path parameter set_id |

### Feed Creator Attribution Events {#op-seeding_ingest-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/seeding/sets/{set_id}/events</code> <span class="opid">seeding_ingest</span></p>

Feed RevenueCat events or App Store and Play campaign, referrer and redemption exports into a seeding set, matched to creators by code or ref

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `set_id` | path | yes | string | Path parameter set_id |
| `source` | body | yes | revenuecat \| app_store_campaign \| app_store_offer_report \| play_install_referrer \| play_promo_report \| manual |  |
| `events` | body |  | object[] | source revenuecat: RevenueCat webhook events (offer_code or creator_ref subscriber attribute) |
| `rows` | body |  | object[] | other sources: [{ref\|code, date, installs\|redemptions\|quantity+kind, country?}] |

### Mark Creator Outreach Progress {#op-seeding_mark-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/seeding/seeds/{seed_id}</code> <span class="opid">seeding_mark</span></p>

Move one creator through outreach (planned, contacted, replied, seeded, declined) and record that their code now exists in the App Store or Play

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `seed_id` | path | yes | string | Path parameter seed_id |
| `state` | body |  | contacted \| replied \| seeded \| declined |  |
| `created_in_store` | body |  | ios \| android |  |

### Approve, Reject or Publish a Country Operator Item {#op-country_operator_decide-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/country-operator/items/{id}/decision</code> <span class="opid">country_operator_decide</span></p>

Decide one queue item: approve exactly the payload you reviewed, reject it, publish an approved item, or reconcile an uncertain one

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `decision` | body | yes | approve \| reject \| publish \| reconcile |  |
| `payload_hash` | body |  | string | approve: the payload_hash of the item you reviewed |
| `acknowledge_human_review` | body |  | boolean | approve: must be true |
| `allow_live_provider_mutation` | body |  | boolean | Apple Ads items: must be true |
| `note` | body |  | string |  |

### Connect a CMS or Store Auto-Translate Install {#op-cms_installs_create-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/cms/installs</code> <span class="opid">cms_installs_create</span></p>

Register or update a workspace-scoped Shopify, WordPress, WooCommerce, or Webflow connection with AES-256-GCM sealed credentials

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `platform` | body | yes | shopify \| wordpress \| woocommerce \| webflow |  |
| `site_url` | body | yes | string |  |
| `external_id` | body | yes | string |  |
| `tier` | body |  | free \| starter \| byo_key \| pro |  |
| `source_locale` | body |  | string |  |
| `target_locales` | body |  | string[] |  |
| `credentials` | body |  | object | Platform credentials object; encrypted at rest with AES-256-GCM and never returned |
| `metadata` | body |  | object | Non-secret site metadata (raw secret keys/values are rejected) |

### List CMS Auto-Translate Installs {#op-cms_installs_list-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/cms/installs</code> <span class="opid">cms_installs_list</span></p>

List Shopify, WordPress, WooCommerce, and Webflow auto-translate installs for the authenticated workspace

### Transition CMS Install State {#op-cms_install_state-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/cms/installs/{id}/state</code> <span class="opid">cms_install_state</span></p>

Pause, resume, or revoke a workspace CMS auto-translate install

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `state` | body |  | connected \| paused \| revoked |  |
| `action` | body |  | pause \| resume \| revoke |  |

### Create Auto-Translate Preview or Apply Job {#op-cms_translate_jobs_create-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/cms/translate/jobs</code> <span class="opid">cms_translate_jobs_create</span></p>

Run deduplicated CMS auto-translation with monthly tier quotas, dialect linting, and a Market Readiness + Day-1 Dossier teaser

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `install_id` | body | yes | string |  |
| `idempotency_key` | body | yes | string |  |
| `target_locales` | body |  | string[] |  |
| `mode` | body |  | dry_run \| apply |  |
| `glossary` | body |  |  | Glossary applied during translation: a list of {source, target} pairs, or a {source: target} map. Entries with a blank source, or with non-string values, are skipped. A change gives a different job request, so a reused idempotency_key with a changed glossary is a 409. |
| `protected_phrases` | body |  | string[] |  |
| `formality` | body |  | formal \| informal |  |
| `niche` | body |  | string |  |
| `byo_key` | body |  | string | In-memory provider key for byo_key tier; never persisted to Postgres or logs |
| `resources` | body |  | object[] | Optional explicit resource list instead of remote fetch |

### List CMS Auto-Translate Jobs {#op-cms_translate_jobs_list-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/cms/translate/jobs</code> <span class="opid">cms_translate_jobs_list</span></p>

List auto-translate jobs and quota usage for the authenticated workspace

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `install_id` | query |  | string |  |
| `state` | query |  | queued \| running \| preview_ready \| applying \| applied \| failed \| cancelled |  |
| `limit` | query |  | integer |  |

### Get CMS Auto-Translate Job {#op-cms_translate_job_get-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/cms/translate/jobs/{id}</code> <span class="opid">cms_translate_job_get</span></p>

Inspect one auto-translate job, its diff preview, readiness teaser, receipts, and allowed actions

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### Apply a Preview-Ready Auto-Translate Job {#op-cms_translate_job_apply-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/cms/translate/jobs/{id}/apply</code> <span class="opid">cms_translate_job_apply</span></p>

Push a preview_ready auto-translate job&#39;s translations to the connected CMS/store when production writes are enabled

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### Cancel a Queued or Preview-Ready Auto-Translate Job {#op-cms_translate_job_cancel-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/cms/translate/jobs/{id}/cancel</code> <span class="opid">cms_translate_job_cancel</span></p>

Cancel a queued or preview_ready auto-translate job and release its monthly word reservation

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### List Workspace Vendor Connections {#op-connections_list-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/connections</code> <span class="opid">connections_list</span></p>

List connected App Store Connect, Google Play, Apple Ads, RevenueCat, Sanity, Shopify and Vercel accounts and their states without exposing secrets

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `include_revoked` | query |  | boolean |  |

### Verify Connection Health {#op-connections_check-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/connections/{id}/check</code> <span class="opid">connections_check</span></p>

Re-verify a stored vendor connection against its provider API

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### Discovery Loop: One View of Search, Store Analytics, Audits and Opportunities {#op-discovery_loop_view-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/discovery-loop</code> <span class="opid">discovery_loop_view</span></p>

Read one view across Search Console, App Store Connect and Play analytics, saved ASO, SEO and GEO audits, rank-watch moves, open opportunities and publish history. A source that is not connected says so.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Limit the view to one market |

### Discovery Loop: Supply Analytics Rows {#op-discovery_loop_ingest-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/discovery-loop/metrics</code> <span class="opid">discovery_loop_ingest</span></p>

Store daily search or store analytics rows (or a Play Console store-listing CSV) that the workspace owns, for detection and the 14-day check

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `source` | body | yes | search_console \| app_store_connect \| play_console | Where the rows come from |
| `property` | body | yes | string | Site URL, App Store app id or Play package name |
| `rows` | body |  | object[] | Array of { market, day, impressions, clicks, query?, page?, position?, downloads? } |
| `csv` | body |  | string | play_console only: the store-listing acquisition CSV text |

### Discovery Loop: Sync, Detect and Measure {#op-discovery_loop_run-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/discovery-loop/run</code> <span class="opid">discovery_loop_run</span></p>

Sync connected Search Console and App Store Connect analytics, detect striking-distance and low-click opportunities, optionally draft them, and measure published changes whose 14 days are over

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `draft` | body |  | boolean | Also write drafts for detected opportunities (a model only when the draft budget is above 0) |

### Discovery Loop: List Opportunities {#op-discovery_loop_list-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/discovery-loop/opportunities</code> <span class="opid">discovery_loop_list</span></p>

List the workspace&#39;s discovery opportunities (keywords at positions 4 to 15, low-click and low-conversion listings) with their stage and the actions allowed next

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `state` | query |  | detected \| drafted \| approved \| published \| measured \| dismissed |  |
| `kind` | query |  | striking_distance \| low_ctr \| low_conversion |  |
| `market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `limit` | query |  | integer |  |
| `offset` | query |  | integer |  |

### Plan a Google Play change (dry run) {#op-google_play_operation_plan-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/google-play/operations</code> <span class="opid">google_play_operation_plan</span></p>

Dry run a Google Play listing text change, review reply, custom store listing or promotional event: validate it, compare it with the live listing and save the plan for a person to approve.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `kind` | body | yes | listing \| review_reply \| custom_listing \| promo_event |  |
| `idempotency_key` | body | yes | string |  |
| `input` | body | yes |  | The change. listing: language plus title, short_description, full_description. review_reply: review_id, reply_text, reply_locale. custom_listing and promo_event: see docs/google-play.md. |
| `connection_id` | body |  | string |  |
| `package_name` | body |  | string |  |
| `environment` | body |  | production \| staging |  |

### List Google Play changes {#op-google_play_operations_list-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/google-play/operations</code> <span class="opid">google_play_operations_list</span></p>

List the workspace&#39;s planned, approved and finished Google Play changes with the actions each allows next.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `state` | query |  | planned \| approved \| executing \| succeeded \| handed_off \| uncertain \| failed \| cancelled \| reconciled |  |
| `kind` | query |  | listing \| review_reply \| custom_listing \| promo_event |  |
| `limit` | query |  | integer |  |

### Discovery Loop: Read One Opportunity {#op-discovery_loop_get-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/discovery-loop/opportunities/{id}</code> <span class="opid">discovery_loop_get</span></p>

Read one discovery opportunity with its evidence, draft, approval, receipt, 14-day outcome and allowed next actions

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Opportunity UUID |

### Discovery Loop: Move an Opportunity One Stage {#op-discovery_loop_act-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/discovery-loop/opportunities/{id}/{action}</code> <span class="opid">discovery_loop_act</span></p>

Draft, reject, dismiss, reopen, approve, publish or measure one discovery opportunity through its guarded stages. Approve and publish need a signed-in owner or admin; an approval covers the exact draft hash you read.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Opportunity UUID |
| `action` | path | yes | draft \| approve \| reject \| dismiss \| reopen \| publish \| measure | The stage change |
| `draft_hash` | body |  | string | approve: the draft_hash you read |
| `method` | body |  | app_store_connect \| manual | publish: through the App Store Connect connection, or confirmed by hand |
| `current` | body |  | object | draft: the live copy (title, name, subtitle, keywords, meta_description, short_description) |
| `keyword_candidates` | body |  | string[] | draft: keywords for a listing that has no query of its own |
| `resource` | body |  | object | draft: App Store Connect localization { type, id } to publish into |
| `reason` | body |  | string | reject or dismiss: why |
| `note` | body |  | string | publish: note on a manual publish |

### Draft a Site Change from Findings {#op-site_change_propose-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/site-changes/proposals</code> <span class="opid">site_change_propose</span></p>

Turn threefold check, discovery or page localisation findings into a reviewed patch, a pull request payload and copy-ready Markdown with agent instructions; nothing is written to the customer&#39;s site

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `source` | body | yes |  | Where the site lives: {type: &#39;github&#39;, connection_id, ref?} reads the repository with the customer&#39;s own GitHub connection; {type: &#39;files&#39;, files: {path: text}} reads only the files given and stores nothing |
| `check_report` | body |  | object | A threefold check JSON report (npx threefold check --json) |
| `discovery` | body |  | object | A discovery audit result with findings and artifacts |
| `discovery_audit_id` | body |  | string | A saved discovery audit of this workspace, instead of discovery |
| `localisations` | body |  | object[] | POST /api/pages/localise results, each with source_path and optional translated frontmatter |
| `items` | body |  | object[] | Findings already in threefold&#39;s shape: [{code, file, message, fix}] |
| `rules` | body |  | object | Brand and glossary rules: glossary, protected_phrases, banned_terms, formality. They add to threefold.json (voice) in the repository |
| `project_id` | body |  | string | Project whose stored voice rules to read; not connected yet, reported as not_connected |
| `base_locale` | body |  | string | Language of the existing site, default from the framework config or en |
| `draft` | body |  | boolean | Open the pull request as a draft |

### List Site Change Proposals {#op-site_change_list-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/site-changes/proposals</code> <span class="opid">site_change_list</span></p>

List the workspace&#39;s site change proposals with their state and the actions allowed next

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `state` | query |  | drafted \| approved \| opening \| opened \| rejected \| failed \| expired |  |
| `limit` | query |  | integer |  |

### Get a Site Change Proposal {#op-site_change_get-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/site-changes/proposals/{id}</code> <span class="opid">site_change_get</span></p>

Read one site change proposal with its patch, copy-ready Markdown, agent instructions and pull request payload

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### Approve a Site Change {#op-site_change_approve-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/site-changes/proposals/{id}/approve</code> <span class="opid">site_change_approve</span></p>

A person approves the exact change set they reviewed, by quoting its digest; approval writes nothing to the customer&#39;s repository

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `digest` | body | yes | string | The digest of the proposal as the person reviewed it |

### Reject a Site Change {#op-site_change_reject-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/site-changes/proposals/{id}/reject</code> <span class="opid">site_change_reject</span></p>

A person rejects a drafted or approved site change; its file text is deleted

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### Open an Approved Site Change as a Pull Request {#op-site_change_open-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/site-changes/proposals/{id}/open</code> <span class="opid">site_change_open</span></p>

Open the approved change as a pull request on the customer&#39;s own GitHub repository, from a new branch, with the customer&#39;s own connection; never merges

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### Get a Google Play change {#op-google_play_operation_get-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/google-play/operations/{id}</code> <span class="opid">google_play_operation_get</span></p>

Read one Google Play change: its plan, approval, receipt and the actions allowed next.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### Approve, run, cancel or reconcile a Google Play change {#op-google_play_operation_act-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/google-play/operations/{id}/{action}</code> <span class="opid">google_play_operation_act</span></p>

Move a Google Play change forward: approve one exact plan, execute an approved change, cancel it, or reconcile an uncertain one against the live listing.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `action` | path | yes | approve \| execute \| cancel \| reconcile | Path parameter action |
| `plan_hash` | body |  | string | approve: the plan_hash of the plan being approved. |
| `note` | body |  | string | approve and reconcile: what the person checked. |
| `native_dialect_confirmed` | body |  | boolean | approve: true when the text reads naturally in its locale and dialect. |

### Google Play installs, listing conversion and vitals by country {#op-google_play_metrics-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/google-play/metrics</code> <span class="opid">google_play_metrics</span></p>

Read the app&#39;s Google Play installs, store listing conversion and crash and ANR rates per country, or an explicit not-connected or no-data state.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `package_name` | query |  | string |  |
| `country` | query |  | string |  |
| `from` | query |  | string |  |
| `to` | query |  | string |  |

## Analysis

### Explain Listing Differences {#op-explain_listing-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/analysis/listing</code> <span class="opid">explain_listing</span></p>

AI explanation of why an app&#39;s listing differs between two markets

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `app` | body | yes | string |  |
| `to` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `from` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `refresh` | body |  | boolean | Ignore the cached result |
| `task_intent` | body |  | string | Caller task intent or context, used to shape output and logged (hashed) |
| `output_destination` | body |  | code \| doc \| chat \| design_tool | Target environment: code (compact JSON), doc (citations and links), chat (summary sentence), design_tool (visual assets and layout) |

### Explain Paid {#op-explain_paid-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/analysis/paid</code> <span class="opid">explain_paid</span></p>

AI explanation of the ad strategy in a market for an app or niche

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `app` | body |  | string |  |
| `niche` | body |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle |  |
| `from` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `refresh` | body |  | boolean |  |
| `task_intent` | body |  | string | Caller task intent or context, used to shape output and logged (hashed) |
| `output_destination` | body |  | code \| doc \| chat \| design_tool | Target environment: code (compact JSON), doc (citations and links), chat (summary sentence), design_tool (visual assets and layout) |

### Brand Name Check {#op-brand_name_check-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/analysis/brand-name</code> <span class="opid">brand_name_check</span></p>

AI check of an app name and tagline for meaning or connotation problems in other markets

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `name` | body | yes | string |  |
| `tagline` | body |  | string |  |
| `markets` | body |  | (gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl)[] |  |
| `refresh` | body |  | boolean |  |
| `task_intent` | body |  | string | Caller task intent or context, used to shape output and logged (hashed) |
| `output_destination` | body |  | code \| doc \| chat \| design_tool | Target environment: code (compact JSON), doc (citations and links), chat (summary sentence), design_tool (visual assets and layout) |

### Translate {#op-translate-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/analysis/translate</code> <span class="opid">translate</span></p>

Translate short texts such as ad copy or reviews into one target language

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `texts` | body | yes | string[] |  |
| `target` | body |  | string | Target language code |
| `variant` | body |  | string | Regional language variant |
| `formality` | body |  | formal \| informal | Formality register (e.g. for German) |
| `niche` | body |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle | App Store niche |
| `market` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Target market code |

### Describe Video {#op-describe_video-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/analysis/video</code> <span class="opid">describe_video</span></p>

AI description of a video ad or post - hook, format, on-screen text, cultural cues

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `url` | body | yes | string | Public http(s) video URL |
| `thumbnail` | body |  | string | Public http(s) thumbnail URL |
| `market` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `refresh` | body |  | boolean |  |

### Visual Brief {#op-visual_brief-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/analysis/visual-brief</code> <span class="opid">visual_brief</span></p>

Vision analysis evaluating screenshot compositions, cultural adaptations, and visual framing

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Target market |
| `niche` | body |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | App Store niche |
| `app` | body |  | string | App id |
| `query` | body |  | string | Research query |
| `position` | body |  | integer | Screenshot position (1-based, default 1) |
| `refresh` | body |  | boolean | Ignore cached analysis |
| `task_intent` | body |  | string | Caller task intent or context, used to shape output and logged (hashed) |
| `output_destination` | body |  | code \| doc \| chat \| design_tool | Target environment: code (compact JSON), doc (citations and links), chat (summary sentence), design_tool (visual assets and layout) |

### i18n Readiness Rules Catalogue {#op-i18n_check_rules-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/i18n/rules</code> <span class="opid">i18n_check_rules</span></p>

Catalogue of automated internationalization and localization readiness rules across platforms and markets

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `platform` | query |  | string | Filter by platform: core, ios, android, web, flutter, react-native, store, legal |
| `market` | query |  | string | Filter by market code (e.g. de-DE, es-MX, ja-JP) |

### Top target countries for init {#op-i18n_targets-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/i18n/targets</code> <span class="opid">i18n_targets</span></p>

The top target countries for an app, from the languages it already ships and its platforms (the server half of npx threefold init)

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `languages` | query |  | string[] | Locales the app already ships, e.g. en,es-MX |
| `platforms` | query |  | string[] | ios, android, kotlin, swift, react-native, expo or web. An Android build adds each market&#39;s Google Play priority to its reasons |
| `limit` | query |  | integer | How many countries (1-10, default 3) |

### Store and Retrieve i18n Reports {#op-i18n_report_api_i18n_reports_param-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/i18n/reports/{param}</code> <span class="opid">i18n_report_api_i18n_reports_param</span></p>

Store an uploaded i18n readiness report or retrieve a previously stored report by ID

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `param` | path | yes | string | Report UUID for retrieval |

### Store and Retrieve i18n Reports {#op-i18n_report_api_i18n_reports-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/i18n/reports</code> <span class="opid">i18n_report_api_i18n_reports</span></p>

Store an uploaded i18n readiness report or retrieve a previously stored report by ID

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `param` | body |  | string | Report UUID for retrieval |

### Market Glossary {#op-market_glossary_api_market_glossary-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/market-glossary</code> <span class="opid">market_glossary_api_market_glossary</span></p>

Extract domain terms and CTAs used by top-ranked storefront listings in a niche

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `niche` | query | yes | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Niche or any collected genre slug (GET /api/meta genres) |
| `market` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `variant` | query |  | string | Optional regional variant |
| `store` | query |  | ios \| play | ios (default) or play |
| `format` | query |  | json \| csv \| tsv \| tbx | Export format |
| `include_foreign` | query |  | boolean | Keep terms naming another market (flagged foreign_market_reference) in terms and CTAs; default false |

### Market Glossary {#op-market_glossary_api_market_glossary-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/market-glossary</code> <span class="opid">market_glossary_api_market_glossary</span></p>

Extract domain terms and CTAs used by top-ranked storefront listings in a niche

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `niche` | body | yes | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Niche or any collected genre slug (GET /api/meta genres) |
| `market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `variant` | body |  | string | Optional regional variant |
| `store` | body |  | ios \| play | ios (default) or play |
| `format` | body |  | json \| csv \| tsv \| tbx | Export format |
| `include_foreign` | body |  | boolean | Keep terms naming another market (flagged foreign_market_reference) in terms and CTAs; default false |

### Variant Lint {#op-variant_lint_api_variant_lint-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/variant-lint</code> <span class="opid">variant_lint_api_variant_lint</span></p>

Lint arbitrary copy against regional language dialect rules

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `text` | body | yes | string |  |
| `variant` | body | yes | string |  |

### Variant Lint {#op-variant_lint_api_variant_lint-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/variant-lint</code> <span class="opid">variant_lint_api_variant_lint</span></p>

Lint arbitrary copy against regional language dialect rules

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `text` | query | yes | string |  |
| `variant` | query | yes | string |  |

### Listing Check {#op-listing_check-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/listing-check</code> <span class="opid">listing_check</span></p>

Validate proposed localized store copy against store limits and competitive benchmark

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `niche` | body | yes | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Niche or any collected genre slug (GET /api/meta genres) |
| `market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `title` | body |  | string |  |
| `store` | body |  | ios \| play | ios (default) or play |

### Price Points {#op-price_points-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/price-points</code> <span class="opid">price_points</span></p>

Analyze what top apps in a niche charge per storefront from stored listing prices

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `niche` | query | yes | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Niche or any collected genre slug (GET /api/meta genres) |
| `market` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `store` | query |  | ios \| play | ios (default) or play |

### Market Demand Estimate {#op-market_demand-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/market/demand</code> <span class="opid">market_demand</span></p>

Directional monthly downloads and revenue for one country, store and category, as ranges beside the observed chart

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `niche` | query | yes | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Niche or any collected genre slug (GET /api/meta genres). genre is accepted as an alias of niche |
| `store` | query |  | ios \| play | ios (default) or play |
| `rank` | query |  | integer | Also estimate one chart rank (1 to 200), for example what rank 5 earns |
| `days` | query |  | integer | Look-back window for rank history and reviews (7 to 90) |
| `limit` | query |  | integer | Apps listed, from rank 1 (1 to 100). The chart total covers the whole chart |

### Country Opportunity Ranking {#op-market_opportunity-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/market/opportunity</code> <span class="opid">market_opportunity</span></p>

Rank collected countries by modelled monthly revenue opportunity for an app or genre

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `app_id` | query |  | string | Optional library app id; checks low-signal and localisation status |
| `genre` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Genre slug (required unless app_id is given) |
| `home_market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Home market to exclude; inferred from app evidence when possible, required for genre-only requests |
| `store` | query |  | ios \| play | ios (default) or play |
| `rank_band` | query |  | string | Target rank or band (top_5, top_10, top_25, top_50, top_100, 1-10, or 1..200) |
| `limit` | query |  | integer | Countries returned (1 to 20) |
| `include_home` | query |  | boolean | Include home_market in ranked output |

### Market Launch Checklist {#op-market_launch_checklist-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/market-launch-checklist</code> <span class="opid">market_launch_checklist</span></p>

Consolidated per-market launch checklist merging B2B, profile, and statutory legal checks

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `report_id` | query |  | string | Optional stored i18n report UUID |

### Label Profile {#op-label_profile-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/labels/profile</code> <span class="opid">label_profile</span></p>

Label shares for one market - how its listings, screenshots, ads or posts are labelled (subscription mentions, screenshot type, hook, post format), with item ids

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `item_type` | query | yes | listing \| screenshot \| ad \| post | What was labelled |
| `market` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `niche` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Listings and screenshots: niche or genre (the top of its chart). Ads and posts: niche only. Omit for the whole market. |
| `store` | query |  | ios \| play | Listings and screenshots: ios (default) or play |
| `chart` | query |  | free \| paid \| grossing | Listings and screenshots with a niche: chart type (default free) |
| `top` | query |  | integer | Listings and screenshots with a niche: the top N of the chart (1-100, default 100) |

### Language Fit {#op-language_fit-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/labels/language-fit</code> <span class="opid">language_fit</span></p>

Share of a market&#39;s listings, screenshots and ads written in its own language and variant (es-MX in Mexico, not es-ES), with item ids

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `niche` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Listings and screenshots: niche or genre (the top of its chart). Ads: niche only. Omit for the whole market. |
| `store` | query |  | ios \| play | Listings and screenshots: ios (default) or play |
| `chart` | query |  | free \| paid \| grossing | Listings and screenshots with a niche: chart type (default free) |
| `top` | query |  | integer | Listings and screenshots with a niche: the top N of the chart (1-100, default 100) |
| `item_types` | query |  | string[] | listing, screenshot, ad (default all three) |

### Localise Page {#op-localise_page-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/pages/localise</code> <span class="opid">localise_page</span></p>

Translate a web page, Markdown file, structured CMS document or list of text nodes into a market&#39;s language variant, keeping structure, links, images, slugs, numbers and placeholders, with a QA report of every retained node and warning

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `format` | body | yes | html \| markdown \| document \| nodes |  |
| `content` | body | yes |  | html or markdown: the source string. nodes: [{id, text, kind?}]. document: {id?, fields: [{name, kind: text\|richText\|passThrough\|group\|list, ...}]} |
| `variant` | body | yes | string | Target language variant, language-REGION, e.g. es-MX |
| `market` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Target market code; default derived from the variant |
| `niche` | body |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle | App Store niche, picks market vocabulary from the library |
| `glossary` | body |  |  | Your terms, winning over the market glossary: [{source, target}] or {source: target} |
| `protectedPhrases` | body |  | string[] | Brand names and phrases that must survive unchanged |
| `formality` | body |  | formal \| informal | Formality register |
| `slugs` | body |  | keep \| translate | keep never sends slugs; translate only returns slugSuggestions |
| `sourceLanguage` | body |  | string | Source language code; default detected, else en |

### Free tool: store listing and keyword check {#op-free_listing_check-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/free-tools/listing-check</code> <span class="opid">free_listing_check</span></p>

Check pasted App Store or Google Play listing copy against the store limits, the market&#39;s language and dialect, and the keyword field against the fields Apple indexes with it. No account.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `store` | body |  | ios \| play | ios or play (default ios) |
| `market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Storefront market code |
| `listing` | body | yes | object | Listing fields. App Store: name, subtitle, keywords, promo, description. Google Play: title, short_description, full_description. |
| `secondary_listing` | body |  | object | App Store only: the listing of the secondary locale Apple indexes for this storefront (for example en-US for mx), so repeated keywords are found across both. |

### Free tool: hreflang and geo-redirect audit {#op-free_hreflang_audit-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/free-tools/hreflang-audit</code> <span class="opid">free_hreflang_audit</span></p>

Audit a page&#39;s hreflang set, canonical and language declaration, and whether the page or its alternates redirect a visitor by language. Give a public https URL or paste the page&#39;s HTML. No account.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `url` | body |  | string | Public https page to audit. Private and loopback addresses are refused. |
| `html` | body |  | string | The page&#39;s HTML, pasted, when there is no public URL (no redirect probe is possible). |
| `markets` | body |  | (gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl)[] | Up to 4 target market codes (default us) |
| `probe_geo` | body |  | boolean | With a url, also request the page and its alternates with different language preferences (default true) |

### Free tool: llms.txt grader {#op-free_llms_txt_grade-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/free-tools/llms-txt-grade</code> <span class="opid">free_llms_txt_grade</span></p>

Grade a site&#39;s /llms.txt (fetched from a public https URL, or pasted) against the llmstxt.org structure and the habits that make it useful to an agent. No account.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `url` | body |  | string | Public https site: its /llms.txt, /llms-full.txt and /robots.txt are fetched |
| `text` | body |  | string | The llms.txt contents, pasted |

### Free tool: local pricing benchmark {#op-free_pricing_benchmark-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/free-tools/pricing-benchmark</code> <span class="opid">free_pricing_benchmark</span></p>

Turn a price in the home market into a price for each target market at the exchange rate, at purchasing-power parity and blended, snapped to the local price ending. No account.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `home_price` | body | yes |  | The price in the home market&#39;s currency |
| `home_market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Market of that price. The 10 wave-0 markets are covered. |
| `markets` | body |  | (gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl)[] | Target markets (default every other covered market) |
| `ppp_weight` | body |  |  | 0 is the plain exchange rate, 1 is full purchasing-power parity (default 0.5) |

### Free Country Opportunity Check {#op-free_tool_opportunity_check-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/free-tools/opportunity-check</code> <span class="opid">free_tool_opportunity_check</span></p>

Estimate directional monthly revenue ranges across collected markets without login

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `app_id` | body |  | string | Optional app id; checks low-signal and localisation status |
| `genre` | body |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Genre slug (required unless app_id is given) |
| `home_market` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Home market to exclude; inferred from app evidence when possible, required for genre-only requests |
| `store` | body |  | ios \| play | ios (default) or play |
| `rank_band` | body |  |  | Target rank or band (top_5, top_10, top_25, top_50, top_100, 1-10, or 1..200) |
| `limit` | body |  | integer | Countries returned (1 to 20) |

### Local paywall configuration {#op-paywall_config-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/paywall-config</code> <span class="opid">paywall_config</span></p>

Generate starter RevenueCat, Superwall and Adapty paywall examples and local payment guidance for every market profile

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `country` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Any market profile code, including ca-fr for French Canada. |
| `provider` | query |  | revenuecat \| superwall \| adapty \| all |  |
| `cadence` | query |  | monthly \| annual | Default plan; the market&#39;s starter default when omitted |
| `trial_days` | query |  | integer | Free trial length, 0 to 30; 0 removes the starter trial copy, and a trial string in copy (cta_trial, trial_line, no_charge_today, trial_reminder) sent with it is refused |
| `lookup_prefix` | query |  | string | Offering lookup key prefix, default local |
| `copy` | query |  | object | Object of copy key to text that replaces the starter phrasebook, for example from a project glossary |

### Local payment rail setup {#op-payment_rails-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/payment-rails</code> <span class="opid">payment_rails</span></p>

Generate conditional Stripe Checkout examples and sourced payment guidance for every market profile

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `country` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Any market profile code, including ca-fr; the buyer market does not set the seller account country. |
| `trial_days` | query |  | integer | Free trial length for the subscription variant, 0 to 30 |

### Localise Lifecycle Messages {#op-lifecycle_localise-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/lifecycle/localise</code> <span class="opid">lifecycle_localise</span></p>

Localise onboarding emails, trial reminders, win-back messages, holiday messages and push notifications for one or more markets, with local send windows and local holiday dates, and optionally export them for Resend, OneSignal, Customer.io or Braze

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `variants` | body | yes | any[] | Target variants, language-REGION: [&quot;de-DE&quot;, &quot;es-MX&quot;] (up to 10), or [{variant, market}] |
| `templates` | body |  | object[] | Your messages: [{id, kind, trigger?, fields}]. Omit for the starter library (onboarding, trial, win-back, push, Black Friday). |
| `sourceLanguage` | body |  | string | Source language code; default detected, else en |
| `niche` | body |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle | App Store niche, picks market vocabulary from the library |
| `glossary` | body |  |  | Your terms, winning over the market glossary: [{source, target}] or {source: target} |
| `protectedPhrases` | body |  | string[] | Brand names that must survive unchanged |
| `formality` | body |  | formal \| informal | Formality register |
| `from` | body |  | string | First day of the holiday window; default today |
| `days` | body |  | integer | Length of the holiday window in days (1 to 366); default 120 |
| `providers` | body |  | string[] | Also return exports: resend, onesignal, customerio, braze |
| `exportOptions` | body |  | object | Export options: {constants: {app_name, cta_url}, appId, segments, segmentIds, constantsByVariant} |

### Export Lifecycle Messages {#op-lifecycle_export-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/lifecycle/export</code> <span class="opid">lifecycle_export</span></p>

Turn localised lifecycle messages into ready-to-send request bodies for Resend, OneSignal, Customer.io and Braze, each checked against the provider&#39;s documented shape

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `providers` | body | yes | string[] | resend, onesignal, customerio, braze |
| `bundles` | body | yes | object[] | The bundles array of a lifecycle_localise answer |
| `options` | body |  | object | {constants: {app_name, cta_url}, constantsByVariant, appId, segments, segmentIds, transactionalIds, from} |
| `from` | body |  | string | First day of the holiday window; default today |
| `days` | body |  | integer | Length of the holiday window in days; default 120 |

### Local Send Windows and Holidays {#op-lifecycle_schedule-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/lifecycle/schedule</code> <span class="opid">lifecycle_schedule</span></p>

Local time zones, send windows, quiet hours and upcoming local holiday send dates for a market

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `kind` | query |  | onboarding_email \| trial_reminder_email \| win_back_email \| holiday_email \| push_onboarding \| push_trial_reminder \| push_win_back \| push_holiday | One message kind; default all |
| `from` | query |  | string | First day of the holiday window; default today |
| `days` | query |  | integer | Window length in days (1 to 366); default 90 |

### Generate Help Centre and FAQ Pages {#op-help_centre_generate-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/help-centre/generate</code> <span class="opid">help_centre_generate</span></p>

Generate localised Help Centre and FAQ pages per market with FAQ structured data, hreflang links and a sitemap, from your questions or a starter set

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `variants` | body | yes | any[] | Target variants (up to 6): [&quot;de-DE&quot;, &quot;pt-BR&quot;] |
| `appName` | body | yes | string |  |
| `supportEmail` | body |  | string | Support address shown on the pages; topics that need it are left out without it |
| `topics` | body |  | object[] | Your questions: [{id, category: subscription\|account\|support, question, answer}]. Omit for the starter set. |
| `baseUrl` | body |  | string | Site origin, for canonical and hreflang links and the sitemap |
| `sourceLanguage` | body |  | string | Source language code; default detected, else en |
| `niche` | body |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle | App Store niche, picks market vocabulary |
| `glossary` | body |  |  | Your terms: [{source, target}] or {source: target} |
| `protectedPhrases` | body |  | string[] | Brand names that must survive unchanged |
| `formality` | body |  | formal \| informal |  |

### Draft Replies to Reviews and Tickets {#op-reply_draft-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/replies/draft</code> <span class="opid">reply_draft</span></p>

Draft native-language replies to store reviews and support tickets, chosen by what each one is about, within each store&#39;s reply length limit; drafts only, nothing is posted

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `variant` | body | yes | string | Language variant of the replies, language-REGION |
| `appName` | body | yes | string |  |
| `supportEmail` | body |  | string | Contact in every reply (or supportUrl) |
| `supportUrl` | body |  | string | Support page URL, when there is no email |
| `items` | body | yes | object[] | [{id?, source?: review\|ticket, rating?, store?: ios\|play, title?, body (or text)}] (up to 50) |
| `sourceLanguage` | body |  | string |  |
| `niche` | body |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle |  |
| `glossary` | body |  |  | Your terms, winning over the market glossary: [{source, target}] or {source: target}. |
| `protectedPhrases` | body |  | string[] |  |
| `formality` | body |  | formal \| informal |  |

## App

### Get App {#op-get_app-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/apps/{id}</code> <span class="opid">get_app</span></p>

One app across storefronts - localised title, copy language, screenshots, ratings and signals per market

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | App Store id, or play:&lt;package&gt; for Play-only apps |
| `markets` | query |  | (gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl)[] | Comma-separated market codes. Defaults to every market. |
| `store` | query |  | ios \| play | ios (default) or play |
| `include_images` | query |  | boolean | Fetch and return low-res preview images (default false) |
| `image_format` | query |  | webp \| jpg | Preview image format (webp default, or jpg) |

### Screenshot Gallery {#op-screenshot_gallery-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/visuals/gallery</code> <span class="opid">screenshot_gallery</span></p>

Side-by-side screenshot gallery across markets for one app or top apps in a niche with inline low-res previews and high-res export links

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `app` | query |  | string | App Store id (or play:&lt;package&gt; for Play-only apps) |
| `markets` | query |  | (gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl)[] | Comma-separated target market codes |
| `market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Market for niche mode |
| `niche` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Niche for top apps mode |
| `store` | query |  | ios \| play | ios (default) or play |
| `limit` | query |  | integer | Maximum screenshots or apps (1-20, default 5) |
| `image_format` | query |  | webp \| jpg | Preview image format (webp default, or jpg) |
| `task_intent` | query |  | string | Caller task intent or context, used to shape output and logged (hashed) |
| `output_destination` | query |  | code \| doc \| chat \| design_tool | Target environment: code (compact JSON), doc (citations and links), chat (summary sentence), design_tool (visual assets and layout) |

### App {#op-agent_app-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/agent/app</code> <span class="opid">agent_app</span></p>

One app in every country: its store page, rank, reviews, ads and videos, and what changed, as a digest with links and next steps

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `app` | query | yes | string | App name, App Store id, play:&lt;package&gt; or store URL |
| `markets` | query |  | (gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl)[] | Markets to cover (default: where the app charts, up to 5) |
| `store` | query |  | ios \| play | ios or play (default: both where linked) |
| `focus` | query |  | overview \| brand \| paid \| organic \| reviews \| changes | overview (default); brand = store pages; paid = ads; organic = videos; reviews; changes = what changed since `since` (store page and chart rank, one sentence for each country) |
| `platform` | query |  | string | Paid/Organic platform filter |
| `format` | query |  | string | Creative format filter |
| `since` | query |  | string | focus changes: compare from this date (default 7 days ago). Other focus: only items observed on or after this date |
| `cursor` | query |  | string | Cursor from a previous answer |
| `detail` | query |  | brief \| standard \| full | How much of the answer to return. brief: least tokens, the summary and the top 3 of each list, every warning kept. standard (default). full: longer lists and texts, digest up to 48,000 characters. Reads and price are the same at each level |

## Brief

### Market Brief {#op-market_brief-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/apps/{id}/brief</code> <span class="opid">market_brief</span></p>

Rules-based market-entry brief for moving one app into one market across Brand, Paid and Organic

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `to` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Target market |
| `from` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Home market |
| `store` | query |  | ios \| play | ios (default) or play |
| `task_intent` | query |  | string | Caller task intent or context, used to shape output and logged (hashed) |
| `output_destination` | query |  | code \| doc \| chat \| design_tool | Target environment: code (compact JSON), doc (citations and links), chat (summary sentence), design_tool (visual assets and layout) |

### B2B Market Checklist {#op-b2b_checklist_api_b2b-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/b2b</code> <span class="opid">b2b_checklist_api_b2b</span></p>

B2B market-entry checklist - procurement, compliance and channels for selling software into a market

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Omit for the index of covered markets |

### B2B Market Checklist {#op-b2b_checklist_api_b2b_market-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/b2b/{market}</code> <span class="opid">b2b_checklist_api_b2b_market</span></p>

B2B market-entry checklist - procurement, compliance and channels for selling software into a market

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | path | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Omit for the index of covered markets |

### Market Entry Report {#op-market_entry_report-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/reports/market-entry</code> <span class="opid">market_entry_report</span></p>

Printable market-entry report for one app moving into one market (HTML, PDF or JSON)

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `app` | query | yes | string |  |
| `to` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `from` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `format` | query |  | html \| pdf \| json | html (default) |
| `task_intent` | query |  | string | Caller task intent or context, used to shape output and logged (hashed) |
| `output_destination` | query |  | code \| doc \| chat \| design_tool | Target environment: code (compact JSON), doc (citations and links), chat (summary sentence), design_tool (visual assets and layout) |

### Save Market Entry Report {#op-save_market_entry_report-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/reports</code> <span class="opid">save_market_entry_report</span></p>

Build the market-entry report for one app moving into one market, store it on your workspace, and optionally get a share link

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `app` | body | yes | string |  |
| `to` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `from` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `share` | body |  | boolean | Also make a share link (default lifetime). Reading the report through the link is free |
| `expiresIn` | body |  | integer | Share link lifetime in seconds, from 1 to 2592000 (30 days). Sending it also makes a share link |
| `analysis` | body |  | object | Narrative for the report. Without it the report uses the server&#39;s narrative, if there is one |
| `brand` | body |  | object | White-label the report: name, logo (a public https URL) and colors. A logo that is not a public URL is refused |
| `task_intent` | body |  | string | Caller task intent or context, used to shape output and logged (hashed) |
| `output_destination` | body |  | code \| doc \| chat \| design_tool | Target environment: code (compact JSON), doc (citations and links), chat (summary sentence), design_tool (visual assets and layout) |

### Market Entry Narrative {#op-market_entry_narrative-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/analysis/brief</code> <span class="opid">market_entry_narrative</span></p>

AI-written market-entry brief citing listings, ads and posts as evidence

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `app` | body | yes | string |  |
| `to` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `from` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `refresh` | body |  | boolean |  |
| `task_intent` | body |  | string | Caller task intent or context, used to shape output and logged (hashed) |
| `output_destination` | body |  | code \| doc \| chat \| design_tool | Target environment: code (compact JSON), doc (citations and links), chat (summary sentence), design_tool (visual assets and layout) |

### Market Opportunity Teardown Draft {#op-opportunity_teardown_draft-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/opportunity/teardown-draft</code> <span class="opid">opportunity_teardown_draft</span></p>

Draft a grounded offline X thread and LinkedIn post contrasting a localised leader and unlocalised rival

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `genre` | body | yes | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting |  |
| `store` | body |  | ios \| play | ios (default) or play |
| `min_rating_count` | body |  | integer | Minimum ratings threshold so tiny apps are excluded |

### Market Take {#op-market_take-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/market-take</code> <span class="opid">market_take</span></p>

The weekly threefold take on one market and niche - a headline and evidenced points on how its listings, screenshots, ads and posts differ from the US

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Any market except the reference (us) |
| `niche` | query | yes | games \| education \| health-fitness \| finance \| productivity \| lifestyle |  |
| `week` | query |  | string | ISO week YYYY-WW (default: the latest take) |

### Check {#op-agent_check-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/agent/check</code> <span class="opid">agent_check</span></p>

Is the user&#39;s own live store page, draft listing, screenshots, ad, name, website or repository ready for one country - rule checks, criteria and reference examples

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Country code. The library holds data for 10 of the 32 codes: gb us es mx ar br de fr jp kr |
| `what` | body | yes | listing \| screenshots \| ad \| name \| repo \| website \| visual \| app \| compliance-sync \| discovery \| geo \| seo \| aso \| keyword-pack \| ecommerce \| preflight \| store | app = the live store page (most common; pass app). listing = draft store text (pass listing and genre). screenshots, ad, name (pass name), website (pass url), repo. The others have their own inputs below |
| `url` | body |  | string | For what: website: the page to check (home or pricing page) |
| `genre` | body |  | string | Genre in plain words or a slug |
| `from` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | The user&#39;s home market |
| `app` | body |  | string | App name, id or store URL |
| `name` | body |  | string | For what: name |
| `listing` | body |  | object | For what: listing. JSON object: title, subtitle, keywords, promotional_text, description, screenshot_count, iap_display_name, iap_description |
| `compliance` | body |  | object | For compliance-sync: manifests (ios, privacy, android), privacyPage, storeDescription, statutoryDisclosures, storeBadges URL array, and lifecycleEmails keyed by locale then event. Supply source text; no remote fetching. |
| `keyword_pack` | body |  | object | For keyword-pack: { locales: [{ locale, name, subtitle, keywords, candidates: [{ term, score }] }], indexed_locales, byte_budget }. Packs each indexed locale&#39;s 100-byte iOS keyword field with no word repeated across fields. |
| `levers` | body |  | object | For what: store. One object: lever (events, pricing, pages, tests, ratings, editorial or stores) plus its inputs, the fields POST /api/store/levers takes. Unknown keys are rejected. Example { lever: pricing, base_amount: 9.99, fx_rate: 18 } |
| `snapshot` | body |  | object | For what: preflight. The store state for the market: purchases (id, kind, active, localizations by locale, prices by country), urls (privacy, terms, support by locale), trader { status }, metadata by locale, regional, acknowledged_terms. Its privacy, terms and support URLs are fetched (public addresses only). Shape: docs/store-preflight.md |
| `store` | body |  | ios \| play | ios or play |
| `detail` | body |  | brief \| standard \| full | How much of the answer to return. brief: least tokens, the summary and the top 3 of each list, every warning kept. standard (default). full: longer lists and texts, digest up to 48,000 characters. Reads and price are the same at each level |

### Run bundled ASO, SEO, and GEO discovery audit {#op-discovery_audit-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/discovery/audit</code> <span class="opid">discovery_audit</span></p>

Run deterministic ASO, international web SEO, and customer GEO audits across target markets and persist workspace-scoped results.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `target_markets` | body |  | (gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl)[] | Target market codes |
| `pillars` | body |  | string[] | Pillars to audit: aso, seo, geo |
| `app_id` | body |  | string | App Store or Google Play app id |
| `site_url` | body |  | string | Public HTTPS site URL to audit for SEO and GEO |
| `niche` | body |  | string | Niche/genre slug for ASO glossary and competitor benchmarking |
| `store` | body |  | ios \| play | ios or play |
| `listing` | body |  | object | Proposed store listing copy |
| `listings` | body |  |  | Per-locale or per-market store listing copy map |
| `pages` | body |  |  | Supplied HTML pages map keyed by URL for offline SEO/GEO auditing |
| `llms_txt` | body |  | string | Supplied llms.txt contents |
| `robots_txt` | body |  | string | Supplied robots.txt contents |
| `persist` | body |  | boolean | Persist audit to workspace discovery_audits table (Postgres only) |
| `include_artifacts` | body |  | boolean | Include generated ASO/SEO/GEO artifacts in the response |
| `web_checks` | body |  |  | Web checks under the SEO pillar: false to skip, or a list from geo_redirect, webfonts, web_to_app, regional_engines, link_plan. Default: the first four. |
| `web_to_app` | body |  | object | App identity and files for the web-to-app check: { ios_app_id, bundle_id, team_id, android_package, sha256_fingerprints, aasa, assetlinks }. aasa and assetlinks are supplied file contents for offline checks. |
| `fonts` | body |  | object | Webfont audit inputs: { sizes: { fontUrl: bytes }, stylesheets: { cssUrl: cssText } } for offline checks |
| `link_inventory` | body |  | object[] | Local pages for the link plan: array of { market, type (hub, use_case, alternative, calculator, faq), url, title } |

### Generate ASO, SEO, and GEO discovery artifacts {#op-discovery_generate-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/discovery/generate</code> <span class="opid">discovery_generate</span></p>

Generate ASO packs, XML sitemaps, llms.txt, JSON-LD (with entity_jsonld), guides and Markdown twins.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `target_markets` | body |  | (gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl)[] | Target market codes |
| `types` | body |  | string[] | Artifact types: aso_pack, sitemap_xml, llms_txt, llms_full_txt, json_ld, market_guide, landing_page, comparison_pages, calculators, link_plan, directory_seeds, regional_checklist, entity_jsonld, markdown_twin. The last two are only made when asked for. |
| `same_as` | body |  | object | For entity_jsonld and markdown_twin: map of sameAs links by kind (domain, app_store, google_play, wikidata, wikidata_organization, github, youtube; other keys are plain profiles). Checked by shape, not fetched. |
| `offers` | body |  | object[] | For entity_jsonld and markdown_twin: array of { market, price, currency?, url?, payment_methods? }. The currency must be the market&#39;s own (MXN, BRL, JPY, EUR, KRW). |
| `organization` | body |  | object | For entity_jsonld: { name, url?, logo? } of the publisher |
| `name` | body |  | string | Product name |
| `site_url` | body |  | string | Canonical site URL |
| `description` | body |  | string | Product summary |
| `store` | body |  | ios \| play | ios or play |
| `listing` | body |  | object | Listing fields for ASO pack generation |
| `listings` | body |  |  | Per-locale listing fields map |
| `faq` | body |  | object[] | Array of {question, answer} FAQ pairs |
| `sitemap_entries` | body |  | object[] | Explicit sitemap entries with alternates |
| `vs` | body |  | string | Origin market for comparison_pages: the local winners are apps that chart in the target market and not in this one (default us) |
| `niche` | body |  | string | Niche slug for comparison_pages |
| `app_info` | body |  | object | Your app for comparison_pages: { name, url, rating, rating_count, rank, copy_in_market_language, developer, reasons } |
| `winners` | body |  | object | Supplied local winners { state, winners, reason? } for comparison_pages; skips the library read |
| `calculator_kinds` | body |  | string[] | Calculator kinds: subscription (default), price_with_tax |
| `tax_rates` | body |  | object | Tax rate in percent for each market, for price_with_tax: { mx: 16 }. threefold ships no tax rates. |
| `translations` | body |  | object | Supplied label translations for each locale or market; required for non-English comparison pages and calculators |
| `link_inventory` | body |  | object[] | Local pages for link_plan: array of { market, type, url, title } |
| `audit_id` | body |  | string | Optional discovery audit UUID to attach generated artifacts to |

### Harvest local ASO keywords from store and search suggestions {#op-aso_suggest-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/aso/suggest</code> <span class="opid">aso_suggest</span></p>

Ask the free App Store, Google Play, Google and YouTube suggest endpoints for the terms people type in one country and language, rank them, and add Apple Ads Search Popularity when the workspace has an Apple Ads connection.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `seeds` | body | yes | string[] | 1-10 seed terms in the market&#39;s language |
| `store` | body |  | ios \| play | ios (App Store hints, default) or play (Google Play suggest) |
| `sources` | body |  | string[] | appstore, play, google, youtube. Default: the store&#39;s own plus google and youtube |
| `depth` | body |  | integer | 0 asks the seeds only (default); 1 adds one-character prefixes |
| `limit` | body |  | integer | Keywords returned (1-200, default 50) |
| `competition` | body |  | boolean | ios: check the top-5 titles of the 10 best terms (default true) |

### Pack iOS keyword fields across a storefront&#39;s indexed locales {#op-aso_keyword_pack-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/aso/keyword-pack</code> <span class="opid">aso_keyword_pack</span></p>

Fill each indexed locale&#39;s 100-byte App Store keyword field with the best candidate words, so no word repeats in any name, subtitle or keyword field the storefront indexes.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | The App Store storefront |
| `locales` | body | yes | object[] | Array of { locale, name, subtitle, keywords (current, optional), candidates: [{ term, score }] } for the app&#39;s localisations |
| `indexed_locales` | body |  | string[] | Override which locales the storefront indexes (default: the built-in table; most storefronts index only their primary locale) |
| `byte_budget` | body |  | integer | Keyword field size in UTF-8 bytes (10-100, default 100) |

### Store conversion levers: holiday events, local prices, custom pages, page tests, ratings {#op-store_levers-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/store/levers</code> <span class="opid">store_levers</span></p>

Draft localised In-App Events and Promotional Content from a country holiday calendar, benchmark local price tiers, plan Custom Product Pages and Custom Store Listings tied to ad groups, propose page-test hypotheses, track storefront rating velocity with cold-storefront flags and review-reply drafts, and prepare an editorial nomination pack and an alternative-store checklist. Drafts only: nothing is written to a store.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `lever` | body | yes | events \| pricing \| pages \| tests \| ratings \| editorial \| stores |  |
| `market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `from` | body |  | string | Plan from this date (default today, UTC) |
| `app` | body |  | string | ratings: App Store id or play:&lt;package&gt; in the library, to read its rating counts and stored reviews |
| `app_name` | body |  | string | The app&#39;s name, for replies, pages and the nomination |
| `genre` | body |  | string | Genre slug, to read local competitors, screenshot habits and prices from the library |
| `stores` | body |  | string[] | ios and/or play (default both) |
| `store` | body |  | ios \| play | ios or play (single-store alias of stores) |
| `horizon_days` | body |  | integer | events: how far ahead to look (1 to 400 days, default 120) |
| `deep_link` | body |  | string | events: the in-app link the event opens |
| `max_events` | body |  | integer | events: how many events to return (1 to 20, default 6) |
| `base_amount` | body |  | number | pricing, pages: your home price as a number |
| `base_currency` | body |  | string | pricing: the currency of base_amount (default USD) |
| `products` | body |  | object[] | pricing: [{ kind: subscription_monthly \| subscription_annual \| lifetime \| one_time, base_amount, name? }] |
| `fx_rate` | body |  | number | pricing: local currency per one unit of base_currency, as a number you trust |
| `ppp_index` | body |  | number | pricing: local price level against home (1 = equal), as a number from a source you cite |
| `competitor_prices` | body |  | object[] | pricing: [{ name?, amount }] in local currency. Default: paid apps on the library chart |
| `price_points` | body |  | number[] | pricing: the store&#39;s real price points in local currency, to land on one |
| `iap_products` | body |  | object[] | pricing: [{ kind, name?, description?, benefit? }] promoted In-App Purchases to draft or lint |
| `include_iap` | body |  | boolean | pricing: false to skip the In-App Purchase copy |
| `competitors` | body |  | string[] | pages: local competitor names for the switcher ad keywords (not shown in store copy) |
| `use_cases` | body |  | string[] | pages: up to two use cases in the market&#39;s language |
| `keywords` | body |  | string[] | pages: ad keywords in the market&#39;s language |
| `price_display` | body |  | string | pages: the local price to show, from the pricing lever |
| `ad_groups` | body |  | object[] | pages: your Apple Ads ad groups [{ id, name?, keywords?, google_ad_group_id? }] to bind packs to |
| `existing_pages` | body |  | object | pages: { ios, play } counts of pages and listings you already have |
| `android_package` | body |  | string | pages: the Android package, for custom listing URLs |
| `own_screenshots_localised` | body |  | boolean | tests: whether your screenshots are already in the local language |
| `competitor_screenshots` | body |  | object | tests: { n, screenshots_localised } if you measured it; default from the library chart |
| `rating_cold` | body |  | boolean | tests, editorial: whether the storefront is cold |
| `baseline_cvr` | body |  | number | tests: the page&#39;s conversion rate, 0 to 1 |
| `daily_impressions` | body |  | number | tests: product page impressions a day |
| `mde` | body |  | number | tests: the smallest relative lift worth finding (default 0.1) |
| `max_hypotheses` | body |  | integer | tests: how many hypotheses to return (1 to 10, default 4) |
| `results` | body |  | object | tests: { control: { impressions, conversions }, treatments: [{ name?, impressions, conversions }] } exported from the store |
| `storefronts` | body |  | object[] | ratings: [{ market, rating_count, average_rating?, snapshots?: [{ observed_at, rating_count, average_rating? }] }] |
| `home_market` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | ratings: the market to compare the average rating with |
| `target_count` | body |  | integer | ratings: the rating count to aim for (1 to 1,000,000, default 100) |
| `reviews` | body |  | object[] | ratings: [{ id?, rating, title?, body, lang?, replied?, store? }] to draft replies for. Default: stored reviews of app |
| `support_contact` | body |  | string | ratings: where unhappy users should write |
| `nomination_type` | body |  | app_launch \| new_content \| app_enhancements | editorial: the nomination type |
| `publish_date` | body |  | string | editorial: the launch or update date |
| `highlights` | body |  | string[] | editorial: plain facts about what is new |
| `platform_features` | body |  | string[] | editorial: Apple platform features the app uses |
| `local_price_display` | body |  | string | editorial: the local price |
| `event_ref` | body |  | string | editorial: the In-App Event to attach (a draft id from the events lever) |
| `supplemental_urls` | body |  | string[] | editorial: up to five https links |
| `localizations` | body |  | string[] | editorial: locales the app is localised in |

### Measure how AI assistants name an app, in each market&#39;s language {#op-geo_probe_run-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/discovery/ai-visibility/run</code> <span class="opid">geo_probe_run</span></p>

Plan, score or run the AI share-of-voice probe and citation-gap playbook.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `app` | body | yes | object | { name, aliases?, domains?, store_ids? }: the app, its other spellings, its own web domains and its store ids (id123456789 or a Play package) |
| `markets` | body | yes | object[] | Array of { market, category_term, competitors? }. category_term is the buyers&#39; own word for this kind of app, in the market&#39;s language; threefold does not translate it. Markets with native prompts: mx, es, ar, br, de, fr, jp, kr, us, gb, ae. |
| `engines` | body |  | string[] | chatgpt, claude, gemini. Default: all three. |
| `intents` | body |  | string[] | best, recommend, cheap, alternative, brand. Default: all five. |
| `repeats` | body |  | integer | Times each prompt is asked of each engine (1 to 5). Answers vary, so repeats steady the share. |
| `answers` | body |  | object[] | Answers you already have: array of { market, engine, intent?, answer, sources? }. They are scored for free; nothing is sent. |
| `live` | body |  | boolean | true sends the prompts to the AI engines. Paid. Needs THREEFOLD_GEO_PROBE=on, an engine key, a workspace on Postgres and the track scope. Absent or false: the call only plans. |
| `schedule_opt_in` | body |  | boolean | Explicitly opt this live run&#39;s inputs into recurring paid rechecks when the server schedule is enabled. A later live run for the same app without this flag opts it out; historical and recorded runs are not scheduled. |
| `max_cost_usd` | body |  |  | Cost cap in US dollars for a live run, at most THREEFOLD_GEO_PROBE_MAX_USD_PER_RUN. The run stops before the call that would pass it. |
| `persist` | body |  | boolean | Save a scored run of supplied answers to the workspace (Postgres only). A live run is always saved. |

### Audit content for topical dilution, question density, original data and comparison freshness {#op-geo_content_audit-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/discovery/ai-visibility/content-audit</code> <span class="opid">geo_content_audit</span></p>

Audit topical dilution, question density, data studies and comparison dates.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `core_topics` | body |  | string[] | Core product topics for topical-dilution pruning audit |
| `pages` | body |  | object[] | Pages [{ url, title?, h1?, text?, html?, word_count?, traffic?, impressions? }] to check for topical dilution |
| `html` | body |  | string | HTML page to audit for question density, original data study and date-stamped comparison signals |
| `markdown` | body |  | string | Markdown page to audit instead of HTML |
| `url` | body |  | string | Optional canonical URL for grounding |
| `own_app_name` | body |  | string | Product name for honest comparison disclosure check |

### Plan or score the UAE vs UK 20-buyer-question AI visibility pilot {#op-geo_probe_pilot-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/discovery/ai-visibility/pilot</code> <span class="opid">geo_probe_pilot</span></p>

Plan or score the $0 UAE (ar+en) vs UK (en) 20-question pilot.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `app` | body | yes | object | { name, aliases?, domains?, store_ids? } |
| `category_term_ar` | body | yes | string | Buyers&#39; own Arabic category term for UAE prompts |
| `category_term_en` | body | yes | string | Buyers&#39; own English category term for UAE English and UK prompts |
| `competitors_ae` | body | yes | any[] | Competitor names/entities in the UAE |
| `competitors_gb` | body | yes | any[] | Competitor names/entities in the UK |
| `engines` | body |  | string[] | chatgpt, claude, gemini. Default: all three. |
| `answers` | body |  | object[] | Optional recorded answers to score at $0 |
| `dry_run` | body |  | boolean | Defaults to true ($0, sends nothing) |

### Suggest researched buyer prompts from store reviews and listings {#op-geo_probe_suggest_prompts-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/discovery/ai-visibility/suggest-prompts</code> <span class="opid">geo_probe_suggest_prompts</span></p>

Mine stored listings and reviews at $0 for 15-50 native buyer prompt candidates.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `app` | body |  |  | App entity { name, app_id?, store_ids? } or name string |
| `markets` | body |  |  | Market codes or { market, category_term?, competitors?, language? } objects |
| `genre` | body |  | string | Optional genre/niche slug to narrow stored listings and reviews |
| `limit` | body |  | integer | Target number of prompt candidates (1-50, default 25) |

### Turn an AI visibility playbook action into a site-change proposal {#op-geo_probe_propose_fix-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/discovery/ai-visibility/propose-fix</code> <span class="opid">geo_probe_propose_fix</span></p>

Build a reviewable site-change diff and agent handoff from a probe playbook.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `run_id` | body | yes | string | Stored geo_probe_runs UUID |
| `action_index` | body |  | integer | Index into playbook.site_fixes (default 0) |
| `repo_files` | body |  | object | Optional map of repository file paths to contents for dry-run diffing |
| `target_url` | body |  | string | Canonical https site URL when not inferable from run.app.domains |
| `persist` | body |  | boolean | Save as a drafted site_change_proposals row (requires repo; never opens a GitHub PR) |
| `repo` | body |  | string | GitHub owner/name when persist is true |
| `base_branch` | body |  | string | Base branch name when persist is true (default main) |
| `base_sha` | body |  | string | Base commit SHA when persist is true |

## Chart

### Apple Chart Sample {#op-apple_chart_sample-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/market/apple-chart-sample</code> <span class="opid">apple_chart_sample</span></p>

Read the latest limited Apple top-grossing chart sample for an additional market profile

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `genre_id` | query | yes | string | Apple genre ID: 6013 or 6017 |

### Landing Showcase {#op-showcase-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/showcase</code> <span class="opid">showcase</span></p>

The landing page in one call - floating localised screenshots, one app&#39;s store pages in every market, top chart rows and store pages for several countries, every country&#39;s chart, rank history, one fixed market answer, a few videos, ads and creators, with rank and rating counts

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `markets` | query |  | (gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl)[] | Up to 6 markets for the chart rows. Default gb,de,br,jp,kr |
| `niche` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | The chart&#39;s niche or genre slug. Default health-fitness |

### Top Apps {#op-top_apps-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/chart</code> <span class="opid">top_apps</span></p>

Top free, paid or grossing apps in one market and niche or genre, with localisation signals and the market profile

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `niche` | query | yes | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Niche or any collected genre slug (GET /api/meta genres). genre is accepted as an alias of niche |
| `store` | query |  | ios \| play | ios (default) or play |
| `chart` | query |  | free \| paid \| grossing | Chart type: top free (default), top paid or top grossing |
| `elsewhere` | query |  | boolean | Add each app&#39;s rank in the same chart in the other markets (apps[].elsewhere: [{ market, rank }]) |
| `shots` | query |  | boolean | Add each app&#39;s first screenshot in this market (apps[].screenshot) |

### Compare category difficulty between a target and home market {#op-aso_category_difficulty-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/aso/category-difficulty</code> <span class="opid">aso_category_difficulty</span></p>

Score how hard the top 10 of each collected free chart (genre and subgenre) is in a target market from stored rating counts, and flag the categories where a top-10 slot is far easier to reach than at home. Audits a Google Play store-tag list.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Target market |
| `home` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Home market to compare against (default us) |
| `store` | query |  | ios \| play | ios (default) or play |
| `genre` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | The app&#39;s current primary genre, marked in the answer |
| `play_tags` | query |  | string[] | The app&#39;s Google Play store tags, to audit (up to 5 allowed) |
| `limit` | query |  | integer | Categories returned (default 20) |

## Compare

### Compare Markets {#op-compare_markets-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/compare</code> <span class="opid">compare_markets</span></p>

Compare one niche in two markets - shared winners, apps that have not crossed over, local-only winners

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `from` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Home market |
| `to` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Target market |
| `niche` | query | yes | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Niche or any collected genre slug (GET /api/meta genres) |
| `store` | query |  | ios \| play | ios (default) or play |
| `chart` | query |  | free \| paid \| grossing | Chart type: top free (default), top paid or top grossing |
| `include_images` | query |  | boolean | Fetch and return low-res preview images (default false) |
| `image_format` | query |  | webp \| jpg | Preview image format (webp default, or jpg) |
| `task_intent` | query |  | string | Caller task intent or context, used to shape output and logged (hashed) |
| `output_destination` | query |  | code \| doc \| chat \| design_tool | Target environment: code (compact JSON), doc (citations and links), chat (summary sentence), design_tool (visual assets and layout) |

### Compare Paid {#op-compare_paid-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/apps/{id}/paid-compare</code> <span class="opid">compare_paid</span></p>

Compare one app&#39;s ads at home against a target market

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `to` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `from` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Home market |

### Label Compare {#op-label_compare-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/labels/compare</code> <span class="opid">label_compare</span></p>

Label differences between two markets - share of each answer per label for listings, screenshots, ads or posts, largest differences first, with item ids

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `item_type` | query | yes | listing \| screenshot \| ad \| post | What was labelled |
| `from` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Reference market |
| `to` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Market compared with it |
| `niche` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Listings and screenshots: niche or genre (the top of its chart). Ads and posts: niche only. Omit for the whole market. |
| `store` | query |  | ios \| play | Listings and screenshots: ios (default) or play |
| `chart` | query |  | free \| paid \| grossing | Listings and screenshots with a niche: chart type (default free) |
| `top` | query |  | integer | Listings and screenshots with a niche: the top N of the chart (1-100, default 100) |

### Label Gaps {#op-label_gaps-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/labels/gaps</code> <span class="opid">label_gaps</span></p>

Gaps between two markets - creative formats, hooks, angles, calls to action and dialects that are common in one market&#39;s ads or organic posts and rare or absent in another&#39;s, same niche, with item ids

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `item_type` | query |  | ad \| post | Paid ads (default) or organic posts |
| `from` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Market where the answer is common |
| `to` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Market where it is rare or absent |
| `niche` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Niche for both markets. Omit for every niche. |
| `label` | query |  | string | One label, e.g. creative_format, hook_type, angle, cta_type, spoken_dialect. Omit for every choice and yes/no label. |
| `min_share_pct` | query |  | integer | An answer is a gap when it is at least this percent of the from market&#39;s labelled items |
| `max_share_pct` | query |  | integer | ... and at most this percent of the to market&#39;s (0 = none there) |
| `min_run_days` | query |  | integer | Ads only: the from side counts only ads that ran at least this many days (0 = all). The to side is every ad. |
| `min_sample` | query |  | integer | Labelled items needed on each side before a label is judged |

### Market {#op-agent_market-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/agent/market</code> <span class="opid">agent_market</span></p>

One country and one category: who wins there and how (store pages, ads, videos, creators, prices, demand), optionally next to the user&#39;s app or home country, as a digest

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Country code. The library holds data for 10 of the 32 codes: gb us es mx ar br de fr jp kr |
| `genre` | query | yes | string | Genre in plain words or a slug |
| `like` | query |  | string | Reference app: name, id or store URL |
| `vs` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Home market to compare against |
| `store` | query |  | ios \| play | ios or play |
| `focus` | query |  | overview \| brand \| paid \| organic \| pricing \| language \| launch \| library \| creators \| keywords \| categories \| demand \| gaps \| opportunity \| strategist \| proven_topics | overview (default) or one part in depth. keywords: local suggest terms for seeds plus review vocabulary. categories: category difficulty against the home market (vs). opportunity: rank untapped countries. strategist: creative strategist breakdown. proven_topics: cross-language proven video topics |
| `id` | query |  | string | Optional creative UUID for focus: strategist |
| `dialect` | query |  | string | For focus: creators. Language-variant tag, e.g. es-MX |
| `followerBand` | query |  | string | For focus: creators. &lt;1k, 1k-10k, 10k-100k, 100k-1m or 1m+ |
| `minOutlierRate` | query |  | string | For focus: creators. A decimal from 0 to 1 |
| `seeds` | query |  | string[] | For focus keywords: 1-10 seed terms in the market&#39;s own language |
| `platform` | query |  | string | Paid/Organic platform filter |
| `format` | query |  | string | Creative format filter |
| `sort` | query |  | winner \| outlier | Library order (focus library) |
| `cursor` | query |  | string | Cursor from a previous answer |
| `detail` | query |  | brief \| standard \| full | How much of the answer to return. brief: least tokens, the summary and the top 3 of each list, every warning kept. standard (default). full: longer lists and texts, digest up to 48,000 characters. Reads and price are the same at each level |

### Library Country Split {#op-library_split-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/library/split</code> <span class="opid">library_split</span></p>

Compare one niche across two or three countries side by side, with the longest-running ads, the organic videos that broke out furthest beyond their creator&#39;s median views, and the App Store screenshot galleries of the highest-charting apps

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `niche` | query | yes | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting |  |
| `markets` | query | yes | (gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl)[] | Two or three market codes |
| `limit` | query |  | integer | Rows per section and country, 1 to 12 (default 6) |
| `minRunDays` | query |  | integer | Ads only: at least this many run days |
| `activeOnly` | query |  | boolean | Ads only: still active |
| `lang` | query |  | string | Reader language for the translated hook on each card |

## History

### Listing History {#op-listing_history-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/apps/{id}/history</code> <span class="opid">listing_history</span></p>

History of an app&#39;s store listing - title, description, screenshots and price changes over time

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `store` | query |  | ios \| play | ios (default) or play |

### Chart History {#op-chart_history-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/chart-history</code> <span class="opid">chart_history</span></p>

Daily chart rank history for an app or a market and niche

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `app` | query |  | string |  |
| `market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `niche` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Niche or any collected genre slug (GET /api/meta genres) |
| `store` | query |  | ios \| play | ios (default) or play |
| `chart` | query |  | free \| paid \| grossing | Chart type: top free (default), top paid or top grossing |
| `days` | query |  | integer | Look-back window in days |
| `limit` | query |  | integer |  |
| `offset` | query |  | integer |  |

### Backfill App {#op-backfill_app-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/apps/{id}/backfill</code> <span class="opid">backfill_app</span></p>

Trigger or check historical backfill for an app across approved sources

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |

### Export History {#op-export_history-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/export/history</code> <span class="opid">export_history</span></p>

Export full history of listing snapshots, ads and posts as streaming JSONL with evidence fields

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `app` | query | yes | string |  |

## Ingest

### Pull Google Play reports now {#op-google_play_ingest-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/google-play/ingest</code> <span class="opid">google_play_ingest</span></p>

Read the app&#39;s Play Console installs and listing conversion reports and its crash and ANR vitals for a date window, and save them per country.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `connection_id` | body |  | string |  |
| `package_name` | body |  | string |  |
| `environment` | body |  | production \| staging |  |
| `from` | body |  | string |  |
| `to` | body |  | string |  |

## Organic

### Organic Posts {#op-organic_posts-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/organic</code> <span class="opid">organic_posts</span></p>

Creator and social posts about an app or niche in a market, with publish dates and views

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `app` | query |  | string |  |
| `niche` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle |  |
| `source` | query |  | string | Channel: youtube, tiktok, instagram or x |
| `since` | query |  | string |  |
| `sort` | query |  | views \| recent | views (default) or recent |
| `brand_account` | query |  | boolean | true: posts from the app&#39;s own account (Instagram Business Discovery); false: creator and hashtag posts. Omit for both. |
| `limit` | query |  | integer |  |
| `offset` | query |  | integer |  |

### Library Creators {#op-library_creators-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/library/creators</code> <span class="opid">library_creators</span></p>

Shortlist creators for a country by dialect, category, follower band and outlier rate, with median views, engagement and public profile links

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `niche` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Category (niche or genre slug) |
| `platform` | query |  | string |  |
| `appId` | query |  | string |  |
| `language` | query |  | string |  |
| `mediaKind` | query |  | image \| video \| audio \| other |  |
| `minRunDays` | query |  | integer |  |
| `followerBand` | query |  | string | &lt;1k, 1k-10k, 10k-100k, 100k-1m or 1m+; comma-separated for several |
| `dialect` | query |  | string | Language-variant tag of their posts in a country, e.g. es-MX |
| `minOutlierRate` | query |  | string | A decimal from 0 to 1: share of their latest 30 posts with at least 3x their median views (in the market, when market is set) |
| `q` | query |  | string |  |
| `sort` | query |  | newest \| longest_running \| most_posts \| rating |  |
| `limit` | query |  | integer |  |
| `offset` | query |  | integer |  |
| `cursor` | query |  | string |  |

### Library UGC Economics {#op-library_ugc-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/library/ugc</code> <span class="opid">library_ugc</span></p>

UGC program economics by app and country - creator posts, active creators, total views, viral hit rate, posts a month, and creator spend against the paid-ad cost of the same views when a rate card is set

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `niche` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting |  |
| `appId` | query |  | string |  |
| `days` | query |  | integer | Window in days (default 90, at most 365) |
| `limit` | query |  | integer |  |
| `offset` | query |  | integer |  |

### Library Creator Shortlist Export {#op-library_creators_export-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/library/creators/export</code> <span class="opid">library_creators_export</span></p>

Export a filtered creator shortlist as JSON or CSV by country, dialect, category, outlier ratio and follower band for outreach

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `country` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `dialect` | query |  | string | Language tag of the creator&#39;s posts, for example es-MX or pt-BR |
| `category` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting |  |
| `platform` | query |  | string |  |
| `followerBand` | query |  | &lt;1k \| 1k-10k \| 10k-100k \| 100k-1m \| 1m+ |  |
| `minOutlierRatio` | query |  | string | Best post views over the creator&#39;s median views, at least this |
| `format` | query |  | json \| csv |  |
| `limit` | query |  | integer | 1 to 1000 (default 100) |
| `offset` | query |  | integer |  |

### Proven-Topic Mining (cross-language video templates) {#op-proven_topics_mine-post}

<p class="route"><span class="method method-post">POST</span> <code>/api/proven-topics/mine</code> <span class="opid">proven_topics_mine</span></p>

Mine high-performing cross-language video topics from another market, rank by creator outlier ratio, extract hook patterns and beat sheets, enforce copyright guardrails, and output original dialect-checked script scaffolds and agent prompt packs

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `target_market` | body | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Target market code for the adapted topic list and script scaffolds |
| `source_market` | body |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Source market code to mine proven breakout topics from (default: us, or gb when target_market is us) |
| `source_language` | body |  | string | Optional source language filter (e.g. en, es, ja) |
| `target_locale` | body |  | string | Target BCP 47 locale tag (default: target market primary locale, e.g. es-MX) |
| `niche` | body |  | string | Genre or niche slug to scope source posts |
| `app_name` | body |  | string | Your app name used in script scaffolds and agent prompt packs |
| `app_value_prop` | body |  | string | Short product value proposition used in script payoffs |
| `limit` | body |  | integer | Maximum proven topics to return (1 to 25) |
| `source_examples` | body |  | object[] | Optional caller-supplied source posts for deterministic $0 offline mining (up to 100) |

## Paid

### Paid Ads {#op-paid_ads-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/paid</code> <span class="opid">paid_ads</span></p>

Ads running in a market, for an app or a niche, with start and stop dates and how long they ran

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `app` | query |  | string |  |
| `niche` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle |  |
| `source` | query |  | meta_ad_library \| tiktok_creative_center \| tiktok_commercial_content \| google_ads_transparency \| linkedin_ad_library |  |
| `active` | query |  | boolean | Only ads still running |
| `minDays` | query |  | integer | Ran at least this many days |
| `lang` | query |  | string | Language (es) or variant (es-MX) |
| `sort` | query |  | longest \| recent | longest (default) or recent |
| `limit` | query |  | integer |  |
| `offset` | query |  | integer |  |

### Paid Summary {#op-paid_summary-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/paid/summary</code> <span class="opid">paid_summary</span></p>

Summary of ads in a market - advertisers, counts and longest running ads

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `app` | query |  | string |  |
| `niche` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle |  |

### Library Creative Cards {#op-library_cards-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/library/cards</code> <span class="opid">library_cards</span></p>

Get the playable card for ads or organic videos by id, with the archived video stream URL, poster, run days, country, accepted label chips, hook transcript state and the parent app&#39;s listing and reviews

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `kind` | query | yes | paid_ads \| organic_posts |  |
| `ids` | query | yes | string[] | Up to 24 ids from the library browse |
| `lang` | query |  | string | Reader language for the translated hook |

### Library Creative Strategist Breakdown {#op-library_strategist-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/library/strategist</code> <span class="opid">library_strategist</span></p>

First-principles creative strategist breakdown for one ad or organic post (cached by input_hash, model and prompt_version; deterministic zero-spend by default with full row grounding)

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `kind` | query | yes | paid_ads \| organic_posts |  |
| `id` | query | yes | string | Creative UUID from the library browse |
| `market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | Optional target market context for adaptation principles |

## Reviews

### App Reviews {#op-app_reviews-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/apps/{id}/reviews</code> <span class="opid">app_reviews</span></p>

Store reviews for an app in one market, with dates, ratings, version and language

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `store` | query |  | ios \| play | ios (default) or play |
| `limit` | query |  | integer |  |
| `cursor` | query |  | string | Paging cursor from the previous response |

### Review Summary {#op-review_summary-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/apps/{id}/reviews/summary</code> <span class="opid">review_summary</span></p>

Summary of an app&#39;s reviews in one market - rating mix, languages and recent themes

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `market` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |

### Mine native buyer vocabulary from store reviews {#op-aso_review_vocabulary-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/aso/review-vocabulary</code> <span class="opid">aso_review_vocabulary</span></p>

Count the words and phrases users write in store reviews in the target language for named competitor apps or a genre chart: everyday vocabulary, complaints (1-2 stars) and praise (4-5 stars).

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `market` | query | yes | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `genre` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting | Mine the reviews of the top 20 free apps of this genre chart in the market |
| `app_ids` | query |  | string[] | Mine these competitor apps instead of a chart (up to 50 ids) |
| `store` | query |  | ios \| play | ios (default) or play |
| `limit` | query |  | integer | Phrases per list (default 25) |

### List recent Google Play reviews {#op-google_play_reviews-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/google-play/reviews</code> <span class="opid">google_play_reviews</span></p>

List recent Google Play reviews with each reviewer&#39;s language, to choose which to answer in the reviewer&#39;s own language.

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `connection_id` | query |  | string |  |
| `package_name` | query |  | string |  |
| `environment` | query |  | production \| staging |  |
| `page_token` | query |  | string |  |

### Bug Drafts from Foreign Reviews {#op-review_bug_drafts-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/apps/{id}/review-bugs</code> <span class="opid">review_bug_drafts</span></p>

Group an app&#39;s recurring 1-to-3-star foreign store reviews into structured bug drafts (translation defects, broken local payment or sign-in, missing regional features) ready to paste into GitHub; opens no issue

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `id` | path | yes | string | Path parameter id |
| `market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl | One market; default every market with reviews |
| `store` | query |  | ios \| play | ios or play; default both |
| `appName` | query |  | string | Name used in the draft titles |
| `sinceDays` | query |  | integer | Look-back window in days; default 90 |
| `minReviews` | query |  | integer | Reviews needed for a draft; default 3 |
| `minAuthors` | query |  | integer | Distinct reviewers needed; default 2 |
| `known` | query |  | string[] | Fingerprints already filed, comma separated; they are listed in alreadyFiled, not drafted again |

## Search

### Search Apps {#op-search_apps-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/search</code> <span class="opid">search_apps</span></p>

Search apps already in the library by name or developer, with where each one charts

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `q` | query | yes | string | App name or developer |
| `store` | query |  | ios \| play | ios (default) or play |
| `limit` | query |  | integer | Page size |
| `offset` | query |  | integer | Skip this many results |

### Search App Store {#op-search_store-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/store-search</code> <span class="opid">search_store</span></p>

Live App Store search for any app, not only charting ones, to get its id

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `q` | query | yes | string | Search term |

### Browse Visual Library {#op-browse_library-get}

<p class="route"><span class="method method-get">GET</span> <code>/api/library/browse</code> <span class="opid">browse_library</span></p>

Browse apps, paid ads, organic posts, screenshots, creators, and country onboarding flows and paywall screens in one unified query with filters and cursor pagination

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `kind` | query |  | string | all (default), apps, paid_ads, organic_posts, screenshots, creators, onboarding, paywalls, or comma-separated list |
| `market` | query |  | gb \| us \| es \| mx \| ar \| br \| de \| fr \| jp \| kr \| ca \| au \| tw \| it \| nl \| tr \| sa \| in \| ca-fr \| hk \| th \| id \| ch \| pl \| se \| ae \| vn \| ph \| pt \| at \| co \| cl |  |
| `niche` | query |  | games \| education \| health-fitness \| finance \| productivity \| lifestyle \| business \| weather \| utilities \| travel \| sports \| social-networking \| reference \| photo-video \| news \| navigation \| music \| entertainment \| books \| medical \| magazines-newspapers \| catalogs \| food-drink \| shopping \| stickers \| developer-tools \| graphics-design \| games-action \| games-adventure \| games-casual \| games-board \| games-card \| games-casino \| games-dice \| games-educational \| games-family \| games-music \| games-puzzle \| games-racing \| games-role-playing \| games-simulation \| games-sports \| games-strategy \| games-trivia \| games-word \| games-arcade \| communication \| dating \| video-players \| personalization \| auto-vehicles \| beauty \| comics \| events \| house-home \| parenting |  |
| `platform` | query |  | string | Store or social/ad platform filter (ios, play, meta_ad_library, instagram, youtube, tiktok, x) |
| `appId` | query |  | string |  |
| `language` | query |  | string |  |
| `activeOnly` | query |  | boolean |  |
| `mediaKind` | query |  | image \| video \| audio \| other |  |
| `minRunDays` | query |  | integer |  |
| `followerBand` | query |  | string | &lt;1k, 1k-10k, 10k-100k, 100k-1m or 1m+; comma-separated for several |
| `dialect` | query |  | string | Language-variant tag such as es-MX (paid ads, organic posts, creators) |
| `minOutlierRate` | query |  | string | Creators only: a decimal from 0 to 1 |
| `q` | query |  | string | Text search over title, copy, advertiser or author |
| `trialDays` | query |  | integer | Paywalls only: free-trial length in days (0 = none) |
| `billingCadence` | query |  | weekly \| monthly \| quarterly \| annual \| lifetime \| installments | Paywalls only |
| `pricePresentation` | query |  | per_month_equivalent \| per_week \| total_only \| installments \| not_shown | Paywalls only |
| `localPayment` | query |  | string | Paywalls only: local payment method shown, such as pix, oxxo or konbini |
| `sort` | query |  | newest \| longest_running \| most_posts \| rating \| winner \| outlier | winner: paid creatives by winner score; outlier: organic posts by views over the creator&#39;s median |
| `clusterId` | query |  | string | List every copy of one paid creative (cluster.id from an item) |
| `limit` | query |  | integer |  |
| `offset` | query |  | integer |  |
| `cursor` | query |  | string |  |
