API reference
Spots, quotes, campaigns, boosts, serving, earnings and offers.
The API is plain JSON over HTTPS. The base URL is https://offers.kre8.fun today. It is a single setting and can move, so use the address the app shows. Money fields are dollar amounts as strings; USDC is only the settlement coin. The routes keep the service's original names (a Spot is /v1/placements).
Basics#
| Topic | Detail |
|---|---|
| Format | Requests and answers are JSON. Send content-type: application/json on posts. |
| Sign in | Routes marked Sign in need authorization: Bearer YOUR_GULLY_ID_TOKEN. A 401 means the session ended: sign in again. |
| Spot key | Routes marked Spot key take your public key (pk_…); server-to-server calls are signed with the secret (sk_…). |
| Errors | A failure is { "error": "plain sentence", "code": "short_code" } with a matching HTTP status. 400 is a bad request, 404 unknown, 422 refused by a rule, 429 too many requests. |
| Switched off | Ads can be off. Routes then answer 404, 501 or 503, or an empty list with a reason. Show an "opening soon" state; never invent numbers. |
| Test keys | Examples use placeholders: pk_YOUR_SPOT_KEY, YOUR_GULLY_ID_TOKEN. There are no shared test keys; create your own Spot in the app. |
Service state#
/v1/configPublicWhat is switched on. ads: false means sponsor spots are not open yet.
{
"chainId": 485590,
"gullyId": { "issuer": "https://gullyid.xyz", "clientId": "gully-offerwall", "enabled": true },
"asset": { "symbol": "USDC", "decimals": 6 },
"ads": false
}/v1/health/adsPublicWhether ads are serving and, if not, why.
{ "ok": true, "enabled": true, "serving": true, "reason": null }/v1/stats/networkPublicPublic totals across the network (hourly series).
Spots#
A Spot is where your offers and sponsors show.
/v1/placementsSign inCreate a Spot. surface is web, pc, ios or android. The answer includes the public key and, once, the secret.
{
"name": "My site",
"surface": "web",
"origins": ["https://example.com"],
"settlementAddress": "0xYOUR_PAYOUT_ADDRESS",
"rewardCallbackUrl": "https://example.com/hooks/swoop"
}/v1/placementsSign inYour Spots.
/v1/placements/:id/metrics?hours=48Sign inHourly views, offers started and finished and earnings for one Spot (feeds the live charts).
/v1/placements/:id/rotateSign inMake a new secret key. The old one stops working at once.
/v1/placements/:id/verify-originSign inCheck that you own a site origin listed on a web Spot. Limited to 10 checks an hour.
{ "origin": "https://example.com" }Spot picker and prices#
/v1/ads/slotsPublicEvery sponsor spot: where it appears, formats, exact image sizes, text limits and the minimum price. Also the creator share (creatorShareBps, 5000 = 50%, confirmed) and the minimum prices.
{
"slots": [ { "id": "banner-example", "label": "…", "placement": { "where": "…", "format": "…", "sizes": [ { "w": 1200, "h": 400 } ] } } ],
"creatorShareBps": 5000,
"floors": { "cpm": "0.26", "cpc": "…", "daily": "…" }
}/v1/ads/demandPublicLive demand per spot: how many live ads, the top bid and today's featured price. Totals only. A spot with campaigns: 0 is shown as "No live ads here yet".
/v1/ads/quote?pricing=cpm&bid=2.00&dailyBudget=20&totalBudget=100PublicA live estimate before you commit: views and clicks a day, what the creator keeps, and what checkout will charge.
{
"pricing": "cpm",
"floor": "0.26",
"perEvent": "0.002",
"estimate": { "viewsPerDay": 10000, "clicksPerDay": 100 },
"creatorShareBps": 5000,
"creatorShare": "50%",
"checkout": { "cents": 10000, "currency": "USD", "display": "100.00", "settles": "USDC on Gully Chain" }
}Creative helper#
/v1/ads/creative/statusSign inWhether the AI helper is available.
{ "available": true, "provider": "…" }/v1/ads/creativeSign inRead your https link and draft three headline, text and button options plus one banner per size. Drafts are filtered for prohibited claims. 20 drafts per person per hour. Pass the draft id as creative.aiGenId when you create the campaign.
{ "url": "https://example.com/launch", "slot": "SLOT_ID", "about": "A new music app" }Sponsor campaigns#
/v1/ads/campaignsSign inCreate a campaign (status draft, then pay). The body also takes the sponsor's display name (2 to 40 characters); the field keeps the service's older name, so copy its exact spelling from the 400 answer the first time. Prices are strings with up to 3 decimals; budgets up to 2.
{
"name": "Spring launch",
"type": "banner",
"pricing": "cpm",
"bid": "2.00",
"slots": ["SLOT_ID"],
"dailyBudget": "20.00",
"totalBudget": "100.00",
"frequencyCap": 3,
"endsAt": "2026-12-31T23:59:59Z",
"creative": {
"headline": "Meet Skip",
"body": "The easiest way to earn.",
"cta": "Learn more",
"clickUrl": "https://example.com/launch",
"imageUrl": "https://…/uploaded-image"
}
}/v1/ads/campaignsSign inYour campaigns with status, spend and refunds.
/v1/ads/campaigns/:idSign inOne campaign with its quote.
/v1/ads/campaigns/:id/daily?days=14Sign inDaily views, clicks, filtered traffic and spend for the live charts.
/v1/ads/campaigns/:id/checkoutSign inStart the Gully Pay checkout. The campaign goes to review after the payment is confirmed.
/v1/ads/campaigns/:id/pauseSign inPause or resume. Send { "paused": false } to resume.
/v1/ads/campaigns/:id/cancelSign inStop it and refund the unspent budget.
/v1/ads/summary?days=7Sign inTotals across your campaigns.
/v1/ads/uploadsSign inUpload an image. Send the file as the raw body with content type image/png, image/jpeg or image/webp, up to about 1 MB. The answer holds the address to use as imageUrl.
Boosts#
/v1/ads/boosts/packagesPublicThe boost packages: spot, hours (24 or 72) and price.
/v1/ads/boostsSign inBuy a boost for a coin, post, track or profile.
{ "kind": "coin", "id": "0xYOUR_COIN_ADDRESS", "title": "My coin", "slot": "SLOT_ID", "hours": 24 }/v1/ads/boostsSign inYour boosts and how they are doing.
/v1/ads/boosts/:id/cancelSign inCancel a boost and refund the part not delivered.
Showing and counting ads#
Surfaces that show ads call these. They are public, never cached, and carry no personal data.
/v1/ads/serve?slot=SLOT_ID&page=watch&contentPrice=free&creator=channel:ID&content=VIDEO_IDPublicAds for one spot. Always send the real page and content price. An empty list always has a reason (member, ad free, gated, paid content, no fill, creator off and so on).
{
"ads": [ {
"serve": "srv_…", "label": "Sponsored", "whyLabel": "Why this ad?", "why": "…",
"type": "banner", "slot": "SLOT_ID", "headline": "Meet Skip", "body": "…", "cta": "Learn more",
"clickUrl": "https://…", "clickTrackUrl": "https://offers.kre8.fun/v1/ads/click/srv_…", "imageUrl": "https://…",
"beacons": { "events": "https://offers.kre8.fun/v1/ads/events", "hide": "…", "report": "…", "minVisibleMs": 1000 }
} ],
"reason": null
}/v1/ads/eventsPublicCount what happened. kind is impression, click, complete or skip. Send visibleMs for impressions.
{ "serve": "srv_…", "kind": "impression", "visibleMs": 1200 }/v1/ads/click/:servePublicOpen this for a click: it counts the click and redirects to the sponsor.
/v1/ads/hidePublicHide an ad for this viewer.
{ "serve": "srv_…" }/v1/ads/page-reportPublicA note about an ad from the public report page (swoopads.xyz/report). No account. Body: reason (the same reasons as below), details, where (the page address) and serve (the ad reference) are optional. 5 an hour per network. A person reads it; nothing is automatic.
{ "ok": true, "id": "apr_…" }/v1/ads/reportPublicReport an ad. Reasons: misleading, scam, offensive, sexual, illegal, wrong_label, too_loud, other. 20 reports per viewer per hour.
{ "serve": "srv_…", "reason": "misleading", "details": "optional text" }{ "reported": true, "note": "…" }/v1/ads/feed?placement=spots&page=home&n=3PublicCards for a feed: sponsored ads first, then offers. page is required. Every card has a Sponsored label you must keep.
{ "placement": "spots", "items": [ { "kind": "ad", "id": "srv_…", "label": "Sponsored", "badge": null, "title": "…", "body": "…", "cta": "…", "imageUrl": null, "href": "https://…" } ], "reason": null }Creator controls and earnings#
/v1/ads/creatorSign inYour ad settings: ads on or off for your content.
/v1/ads/creatorSign inChange them.
{ "adsEnabled": false }/v1/ads/creator/earnings?days=30Sign inWhat your content earned from sponsors, by day.
/v1/placements/:id/promosSign inPromotion settings for a Spot. PUT the same route to turn promotions off or block categories; the answer also lists the blocked sponsors you can change.
PUT /v1/placements/:id/promos
{ "enabled": true, "slots": [], "blockedCategories": ["gaming"] }/v1/me/earnings?range=30dSign inEverything one person earned, ready for the Earn view: totals in USD, a daily series, by creator and by offer with 14-day sparks, streak, next payout and the steps in progress. range is 7d, 30d or all.
{
"range": "30d", "currency": "USD", "testnet": true,
"totals": { "earnedUsd": 12.4, "readyUsd": 1.5, "pendingUsd": 0.8, "rejectedUsd": 0, "count": 31 },
"series": [ { "day": "2026-11-20", "paidUsd": 0.4, "openUsd": 0.1, "count": 2, "cumulativeUsd": 12.4 } ],
"streak": { "current": 4, "longest": 9, "activeToday": true, "atRisk": false },
"nextPayout": { "ready": null, "pending": null, "text": "…" },
"empty": false
}/v1/me/payouts?days=30Sign inYour payouts with amount, state and transaction link.
/v1/me/completionsSign inOffers you completed and what you can claim.
/v1/completions/:id/claimSign inPrepare a claim for a finished offer reward (the app then sends it).
Invites and marketing#
Creator invites are under /v1/referrals and the sponsor tools under /v1/marketing. See Invite creators and Marketing tools for every route.
Offers and pay per action#
/v1/offers?placement=pk_YOUR_SPOT_KEYPublicOffers for a Spot. With a token each offer carries the person's progress.
/v1/offers/:id/startSign inStart an offer for a signed-in person.
{ "placement": "pk_YOUR_SPOT_KEY" }/v1/creator-offers/mineSign inOffers you made as a creator. Create with POST /v1/creator-offers, then fund, review, complete or cancel.
Pay per action has its own routes under /v1/actions. With the feature off, GET /v1/actions/offers answers { "enabled": false, "offers": [] } and the rest answer 503.
| Who | Routes |
|---|---|
| People | GET /v1/actions/offers?placement=pk_…, POST …/offers/:id/join, POST …/steps/:key/verify, POST …/watch/beat, POST …/playtime, GET /v1/actions/me/progress |
| Your server | POST /v1/actions/events (signed with the Spot secret) |
| Sponsors | GET /v1/actions/quote?prices=0.10,0.25, POST|GET /v1/actions/sponsor/offers, then …/:id/checkout, pause, resume, end |
| Creators | GET /v1/actions/creator/earnings, POST /v1/actions/placements/:id/postback, GET …/deliveries, POST …/test-event |
An offer has one to six steps. Step kinds: swap, buy, follow, quest, watch, telegram, playtime and event. A step is checked by the chain or the service that owns the fact. Caps per person and per day, a hold and a reversal window apply as described under payouts.
curl "https://offers.kre8.fun/v1/actions/quote?prices=0.10,0.25"