AdsRouter is a conversational AI ad server and non-custodied mediation layer. Serve direct-sold sponsorships, AdsRouter Network demand, house promos, and third-party networks — Gravity, Thrad, Koah, and Velocity — through one REST API.
# One REST call for every demand source curl -X POST https://api.adsrouter.ai/v1/ad \ -H "Authorization: Bearer ar_sec_..." \ -H "Content-Type: application/json" \ -d '{ "placement": "chat_below_answer", "messages": [ {"role": "user", "content": "Best running shoes for flat feet?"}, {"role": "assistant", "content": "Look for stability trainers..."} ], "user": { "pub_user_id": "usr_94a1" }, "device": { "ip": "203.0.113.42", "ua": "Mozilla/5.0 ..." } }' # Canonical response with first-party cloaked tracking { "request_id": "req_01J...", "filled": true, "render_mode": "creative", "source": "gravity", "ad": { "headline": "Stability runners built for long miles", "cta": "Shop now", "click_url": "https://api.adsrouter.ai/v1/click/imp_01J...", "impression_beacon_url": "https://api.adsrouter.ai/v1/imp/imp_01J..." } }
https://adsrouter.ai/llms-full.txt
Every endpoint, auth header, JSON schema, Koah client-SDK bridge recipe, and beacon rule in one self-contained manual.
Register your AI chat app, web widget, or mobile app. Get a public ar_pub_ key and a write-once ar_sec_ secret.
Paste your own API keys for Gravity, Thrad, Koah, and Velocity — encrypted with AES-256-GCM — and add direct-sold or house campaigns.
Set a priority waterfall (Direct → Network → 3rd-party → House) or deterministic seeded traffic splits per property and placement.
Call POST /v1/ad. Fire our first-party cloaked impression beacon and click URL — we handle viewability, upstream forwarding, and caps.
AdsRouter never sits in the middle of your third-party publisher payouts. You bring your own Gravity, Thrad, Koah, and Velocity credentials, keep your direct relationship with each network, and switch weights or failover order from the dashboard without touching code.
Gravity, Thrad, and Velocity run server-to-server with automatic schema normalization, timeouts, and zero-throw failover.
Because Koah is client-SDK-only, AdsRouter returns a structured client_sdk directive that our tiny browser helper executes and reports back.
Every S2S ad returns api.adsrouter.ai/v1/imp/:id and /v1/click/:id — recording viewability and clicks before 302-forwarding upstream.
Run strict priority waterfalls or deterministic weighted splits per property and placement, with automatic failover on no-fill or timeout.
Stop cobbling together spreadsheets and hardcoded banners when a sponsor buys your chat placement. AdsRouter includes a production decisioning engine out of the box.
Target by property, placement, GeoIP country, device type (mobile/tablet/desktop), platform (ios/android/web), OS, and include/exclude conversation keywords.
Run even_pacing across flight dates with burst smoothing, traffic_pct sampling, or asap delivery — combined with IANA timezone day-of-week and hour windows.
Enforce hourly, daily, and rolling-window caps by MAID (IDFA/GAID) → pub_user_id → sha256(ip|ua|lang), counting viewed impressions plus a 10-minute in-flight reservation.
POST /v1/ad returns render_mode: "client_sdk" with the Koah script URL, validated slot config, conversation question/answer context, and an event_beacon_url. Our zero-dependency adsrouter-client.js helper executes window.koah.requestAd() in the browser and reports fill/no-fill telemetry back to AdsRouter.
POST /v1/ad never throws or returns 5xx on upstream misses. It returns HTTP 200 with {"filled": false, "render_mode": "none", "ad": null} so your chat UI can cleanly skip rendering an ad slot (or fall back to a house campaign you configure at the bottom of your waterfall).
Create a property, connect your ad networks or direct sponsors, and ship one REST call.