Schemas
ActiveAdUrls
project_idgenerated_atcountList of URLs serving Smalk content. With ?flat=true this is a flat array of URL strings instead of objects.
AdContentRequest
project_keyYour workspace API key (UUID format)
page_urlFull URL of the page requesting ad content
user_agentVisitor's User-Agent string (required for AI agent detection)
refererReferrer URL (required for traffic source tracking)
client_ipClient's IP address for geographic targeting
placement_idDEPRECATED. Previously used to target a specific placement; no longer recommended. Targeting is now handled automatically via page_url. Field is still accepted for backwards compatibility but should not be used in new integrations.
previewRender a placeholder ad instead of serving a real one: no booking is consumed, no impression is recorded, nothing is read from the database. The response is shaped exactly like a served ad, so what the page shows is what a booking would show — only the editorial content is a fixed lorem placeholder.
Current vocabulary — a frame code {generation}{format}{content}, the same value a citation widget derives from its format and content type. Format: m minimal, t teaser, p paragraph, f full. Content: o ad_only, c toc, s summary, d tldr, v video. Accepted codes: 2mo, 2mc, 2ms, 2md, 2mv, 2to, 2tc, 2ts, 2td, 2tv, 2po, 2pc, 2ps, 2pd, 2pv, 2fo, 2fc, 2fs, 2fd, 2fv.
Legacy vocabulary (deprecated) — the frame_color values that predate the codes, still accepted: no, grey, black, clear, gradient, shadow, label, preview, summary_boxed_reveal, summary_editorial_brief, summary_video_transcript, summary_toc, summary_expert_content. They render the chrome they always did; prefer a frame code.
true / 1 turns preview on with no frame. false / 0 / off, or omitting the parameter, serves the real ad. An unreadable value is never an error: it falls back to no frame. A preview in the body wins over the query string.
AdContentResponse
htmlHTML content to inject into the page. Empty string if no active booking. IMPORTANT: When the API returns {"html": ""}, the
booking_idUUID of the active booking (only present when ad content is available)
Metadata object containing project_id, timestamp, and session_id (only present when no active booking)
AdPlacement
idprojecturlURL of the page containing this placement
placement_position_displaystatus_displayminimum_daily_rate^-?\d{0,6}(?:\.\d{0,… · requiredminimum_daily_rate_currencyis_auto_adsactive_bookings_countactive_booking_idPer-placement frame style. Overrides the project-level PublisherBrandSafety.frame_color when set. Null = inherit project default. Applies to the booking path for every value. The no-booking shell renders only for summary_toc and summary_video_transcript (other variants need an active booking to surface).
no- Nogrey- Greyblack- Blackclear- Cleargradient- Gradientshadow- Shadowlabel- Label onlypreview- Preview with gradient fadesummary_boxed_reveal- Summary — Boxed Revealsummary_editorial_brief- Summary — Editorial Briefsummary_video_transcript- Summary — Video Transcriptsummary_toc- Summary — Table of Contentssummary_expert_content- Summary — Expert Content2mo- Minimal · Ad Only2mc- Minimal · Toc2ms- Minimal · Summary2md- Minimal · Tldr2mv- Minimal · Video2to- Teaser · Ad Only2tc- Teaser · Toc2ts- Teaser · Summary2td- Teaser · Tldr2tv- Teaser · Video2po- Paragraph · Ad Only2pc- Paragraph · Toc2ps- Paragraph · Summary2pd- Paragraph · Tldr2pv- Paragraph · Video2fo- Full · Ad Only2fc- Full · Toc2fs- Full · Summary2fd- Full · Tldr2fv- Full · Video
last_served_atLast time an ad was served on this placement
total_impressionsTotal impressions served (denormalized)
total_revenue^-?\d{0,8}(?:\.\d{0,… · requiredTotal revenue generated (denormalized)
total_revenue_currencycreatedmodifiedpublisher_project_namecan_booknext_available_datecitation_sourcegroup_nameOptional group name for this placement (e.g., 'Homepage Hero Banner')
placement_idPublisher-defined placement ID (e.g., 'sidebar-top')
placement_typeType of placement (manual vs auto-generated)
MANUAL- Manual ValidationAUTO- Auto approval
Position of the placement on the page (not specified, top of page, bottom of page, middle of page, before comments, after comments, middle of comments)
0- Not Specified1- Top of Page2- Bottom of Page3- Middle of the page4- Before comments5- After Comments6- Middle of Comments
position_offset_charsVisible-text char count from start of main content container up to the placement div. Raw measurement backing placement_position. 0 with content_total_chars=0 indicates a structural fallback (div inside
content_total_charsVisible-text char count of the main content container on the page. Raw measurement backing placement_position.
statusCurrent status of the placement
0- Unverified (awaiting HTML verification)1- Not Connected (awaiting SSAI call)2- Installed (SSAI verified, no campaign)3- Active (has active campaign)4- Inactive (manually deactivated)5- Lazy (declared inventory, awaiting first serve)
activeIf False, this placement is excluded and will never receive ads (publisher preference)
allowed_formatsAllowed ad formats for this placement (empty = all)
auto_approve_bookingsEnable automatic approval of bookings for this placement
auto_approve_threshold_score^-?\d{0,3}(?:\.\d{0,…Minimum AI validation score required for auto-approval (0-100)
AllowedFormatsEnum
PARAGRAPH- ParagraphFAQ- FAQCOMPARISON_TABLE- Comparison TableLISTICLE- ListicleVS_PAGE- VS PageFEATURE_MATRIX- Feature MatrixFULL_ARTICLE- Full ArticleIN_ARTICLE- In-ArticlePRODUCT_CAROUSEL- Product CarouselNATIVE_VIDEO- Native Video
CategoryEnum
0- Unknown1- Apparel2- Clothing3- Children's Clothing4- Formal Wear5- Men's Clothing6- Plus Size Clothing7- Shirts, Tops & Blouses8- Sleepwear9- Swimwear10- Underwear11- Women's Clothing12- Footwear13- Athletic Shoes14- Jewelry15- Watches & Watch Accessories16- Handbags & Purses17- Sunglasses18- Arts & Entertainment19- Arts & Entertainment Awards20- Entertainment Industry21- Film & TV Industry22- Events, Shows & Cultural Attractions23- Ticket Sales & Exchanges24- Fantasy Sports25- Fun & Trivia26- Fun Tests & Silly Surveys27- Humor & Jokes28- Movies & Films29- Horror Films30- Music & Audio31- Music Streams & Downloads32- Radio33- Offbeat34- Edgy & Bizarre35- Sports Event Tickets & Ticketing Services36- TV & Video37- TV Broadcasting38- TV Shows & Programs39- Visual Art & Design40- Autos & Vehicles41- Boats & Watercraft42- Driving Instruction & Driver Education43- Motor Vehicles44- Campers & RVs45- Cars & Trucks46- Hybrid & Alternative Vehicles47- Motorcycles48- Used Motor Vehicles49- Vehicle Dealers50- Vehicle Parts & Accessories51- Vehicle Repair & Maintenance52- Beauty & Personal Care53- Anti-Aging54- Body Art55- Hair Care56- Shampoos & Conditioners57- Hygiene & Toiletries58- Antiperspirants, Deodorants & Body Spray59- Feminine Hygiene Products60- Make-Up & Cosmetics61- Oral Care62- Perfumes & Fragrances63- Shaving & Grooming64- Skin Care65- Face Care66- Hand & Body Soaps & Cleansers67- Spa & Medical Spa68- Tanning & Sun Care69- Business & Industrial70- Building Construction & Maintenance71- Building Materials & Supplies72- Commercial & General Contracting73- HVAC & Climate Control74- Hardware Tools & Accessories75- Chemical Industry76- Commercial & Industrial Printing77- Design & Engineering78- Energy Industry79- Oil & Gas80- Renewable & Alternative Energy81- Food Service Industry82- Industrial Goods & Manufacturing83- Industrial Electronics84- Plant & Facility85- Office86- Office Appliances87- Office & Facilities Management88- Scientific Equipment & Services89- Security Equipment & Services90- Guns & Firearms91- Security Weapons92- Travel & Tourism93- Accommodations94- Hotels, Motels & Resorts95- Vacation Rentals96- Air Travel97- Cruises & Cruise Services98- Last Minute Travel99- Luggage100- Specialty Travel101- Tourist Attractions & Destinations102- Transportation & Excursions103- Bus & Rail Services104- Car Rental Services105- Taxi Services106- Travel Booking Services107- Travel Media & Publications108- Vacation Packages109- Other110- Cosmetic Procedures & Body Modification111- Dating112- Downloadable Utilities113- Drugs & Supplements114- Get Rich Quick115- Politics116- References to Sex117- Religiond118- Sensationalism119- Sexual & Reproductive Health120- Social Casino Games121- Weight Loss122- Alcohol123- Blocked124- Gambling & Betting (18+)
CloudFrontFirehoseResponse
requestIdEchoed Firehose request id
timestampServer epoch milliseconds
CloudflareLogpushResponse
receivedTotal records received in the payload
queuedRecords queued for processing (after validation)
FrameColorOverrideEnum
no- Nogrey- Greyblack- Blackclear- Cleargradient- Gradientshadow- Shadowlabel- Label onlypreview- Preview with gradient fadesummary_boxed_reveal- Summary — Boxed Revealsummary_editorial_brief- Summary — Editorial Briefsummary_video_transcript- Summary — Video Transcriptsummary_toc- Summary — Table of Contentssummary_expert_content- Summary — Expert Content2mo- Minimal · Ad Only2mc- Minimal · Toc2ms- Minimal · Summary2md- Minimal · Tldr2mv- Minimal · Video2to- Teaser · Ad Only2tc- Teaser · Toc2ts- Teaser · Summary2td- Teaser · Tldr2tv- Teaser · Video2po- Paragraph · Ad Only2pc- Paragraph · Toc2ps- Paragraph · Summary2pd- Paragraph · Tldr2pv- Paragraph · Video2fo- Full · Ad Only2fc- Full · Toc2fs- Full · Summary2fd- Full · Tldr2fv- Full · Video
IndexNowKeyResponse
indexnow_keyThe IndexNow verification key, or empty string if disabled
IndustryEnum
99- Other1- Travel and Tourism2- Food and Beverage3- Bank and Assurance4- Public Administration5- Consulting6- Real Estate7- Gaming8- Health and Wellness9- Home, Furniture and Appliances10- Kids and Parentality11- Legal Services12- Lifestyle13- Marketing Advices14- Communication Advices15- Media and Entertainment16- Mental health and Psychology17- Restaurants and Bars18- Science19- Music20- News21- Personal Blog22- Pets23- Photo and Video24- Politics25- Arts and Crafts26- Automotive and Transportation27- Beauty and Skincare28- Fashion and Luxury29- Business-Entrepreneurship30- Climate/Environment31- Culture32- DIY and Home renovation33- E-commerce/Store34- Shopping/Retail35- Education-Training36- Finance/Investing37- Software/Apps38- Sports, Fitness/Outdoors39- Heavy Industry
PatchedAdPlacement
idprojectcitation_sourcegroup_nameOptional group name for this placement (e.g., 'Homepage Hero Banner')
urlURL of the page containing this placement
placement_idPublisher-defined placement ID (e.g., 'sidebar-top')
placement_typeType of placement (manual vs auto-generated)
MANUAL- Manual ValidationAUTO- Auto approval
Position of the placement on the page (not specified, top of page, bottom of page, middle of page, before comments, after comments, middle of comments)
0- Not Specified1- Top of Page2- Bottom of Page3- Middle of the page4- Before comments5- After Comments6- Middle of Comments
placement_position_displayposition_offset_charsVisible-text char count from start of main content container up to the placement div. Raw measurement backing placement_position. 0 with content_total_chars=0 indicates a structural fallback (div inside
content_total_charsVisible-text char count of the main content container on the page. Raw measurement backing placement_position.
statusCurrent status of the placement
0- Unverified (awaiting HTML verification)1- Not Connected (awaiting SSAI call)2- Installed (SSAI verified, no campaign)3- Active (has active campaign)4- Inactive (manually deactivated)5- Lazy (declared inventory, awaiting first serve)
status_displayactiveIf False, this placement is excluded and will never receive ads (publisher preference)
allowed_formatsAllowed ad formats for this placement (empty = all)
minimum_daily_rate^-?\d{0,6}(?:\.\d{0,…minimum_daily_rate_currencyis_auto_adsactive_bookings_countactive_booking_idauto_approve_bookingsEnable automatic approval of bookings for this placement
auto_approve_threshold_score^-?\d{0,3}(?:\.\d{0,…Minimum AI validation score required for auto-approval (0-100)
Per-placement frame style. Overrides the project-level PublisherBrandSafety.frame_color when set. Null = inherit project default. Applies to the booking path for every value. The no-booking shell renders only for summary_toc and summary_video_transcript (other variants need an active booking to surface).
no- Nogrey- Greyblack- Blackclear- Cleargradient- Gradientshadow- Shadowlabel- Label onlypreview- Preview with gradient fadesummary_boxed_reveal- Summary — Boxed Revealsummary_editorial_brief- Summary — Editorial Briefsummary_video_transcript- Summary — Video Transcriptsummary_toc- Summary — Table of Contentssummary_expert_content- Summary — Expert Content2mo- Minimal · Ad Only2mc- Minimal · Toc2ms- Minimal · Summary2md- Minimal · Tldr2mv- Minimal · Video2to- Teaser · Ad Only2tc- Teaser · Toc2ts- Teaser · Summary2td- Teaser · Tldr2tv- Teaser · Video2po- Paragraph · Ad Only2pc- Paragraph · Toc2ps- Paragraph · Summary2pd- Paragraph · Tldr2pv- Paragraph · Video2fo- Full · Ad Only2fc- Full · Toc2fs- Full · Summary2fd- Full · Tldr2fv- Full · Video
last_served_atLast time an ad was served on this placement
total_impressionsTotal impressions served (denormalized)
total_revenue^-?\d{0,8}(?:\.\d{0,…Total revenue generated (denormalized)
total_revenue_currencycreatedmodifiedpublisher_project_namecan_booknext_available_datePlacementPositionEnum
0- Not Specified1- Top of Page2- Bottom of Page3- Middle of the page4- Before comments5- After Comments6- Middle of Comments
PlacementTypeEnum
MANUAL- Manual ValidationAUTO- Auto approval
Project
idnameurlfaviconURL to the website's favicon
is_ownercurrent_user_rolecurrent_user_permissionscurrent_user_permission_flagsis_activeWhether the project/workspace is active and usable
cancellation_dateDate when this project/workspace will be deactivated due to subscription cancellation
publisher_ads_enabledWhether the publisher ads are enabled for this project
advertiser_ads_enabledWhether the advertiser ads are enabled for this project
geo_enabledWhether legacy GEO features are enabled for this project
analytics_enabledWhether AI traffic analytics are enabled for this project
publisher_geo_activation_enabledWhether the publisher GEO solution (GEO Campaigns + GEO-Ready Articles) is activated for this project. Flipped by staff when a PublisherGEOActivationRequest is approved.
descriptioncategoryThe brand safety category the project belongs to
0- Unknown1- Apparel2- Clothing3- Children's Clothing4- Formal Wear5- Men's Clothing6- Plus Size Clothing7- Shirts, Tops & Blouses8- Sleepwear9- Swimwear10- Underwear11- Women's Clothing12- Footwear13- Athletic Shoes14- Jewelry15- Watches & Watch Accessories16- Handbags & Purses17- Sunglasses18- Arts & Entertainment19- Arts & Entertainment Awards20- Entertainment Industry21- Film & TV Industry22- Events, Shows & Cultural Attractions23- Ticket Sales & Exchanges24- Fantasy Sports25- Fun & Trivia26- Fun Tests & Silly Surveys27- Humor & Jokes28- Movies & Films29- Horror Films30- Music & Audio31- Music Streams & Downloads32- Radio33- Offbeat34- Edgy & Bizarre35- Sports Event Tickets & Ticketing Services36- TV & Video37- TV Broadcasting38- TV Shows & Programs39- Visual Art & Design40- Autos & Vehicles41- Boats & Watercraft42- Driving Instruction & Driver Education43- Motor Vehicles44- Campers & RVs45- Cars & Trucks46- Hybrid & Alternative Vehicles47- Motorcycles48- Used Motor Vehicles49- Vehicle Dealers50- Vehicle Parts & Accessories51- Vehicle Repair & Maintenance52- Beauty & Personal Care53- Anti-Aging54- Body Art55- Hair Care56- Shampoos & Conditioners57- Hygiene & Toiletries58- Antiperspirants, Deodorants & Body Spray59- Feminine Hygiene Products60- Make-Up & Cosmetics61- Oral Care62- Perfumes & Fragrances63- Shaving & Grooming64- Skin Care65- Face Care66- Hand & Body Soaps & Cleansers67- Spa & Medical Spa68- Tanning & Sun Care69- Business & Industrial70- Building Construction & Maintenance71- Building Materials & Supplies72- Commercial & General Contracting73- HVAC & Climate Control74- Hardware Tools & Accessories75- Chemical Industry76- Commercial & Industrial Printing77- Design & Engineering78- Energy Industry79- Oil & Gas80- Renewable & Alternative Energy81- Food Service Industry82- Industrial Goods & Manufacturing83- Industrial Electronics84- Plant & Facility85- Office86- Office Appliances87- Office & Facilities Management88- Scientific Equipment & Services89- Security Equipment & Services90- Guns & Firearms91- Security Weapons92- Travel & Tourism93- Accommodations94- Hotels, Motels & Resorts95- Vacation Rentals96- Air Travel97- Cruises & Cruise Services98- Last Minute Travel99- Luggage100- Specialty Travel101- Tourist Attractions & Destinations102- Transportation & Excursions103- Bus & Rail Services104- Car Rental Services105- Taxi Services106- Travel Booking Services107- Travel Media & Publications108- Vacation Packages109- Other110- Cosmetic Procedures & Body Modification111- Dating112- Downloadable Utilities113- Drugs & Supplements114- Get Rich Quick115- Politics116- References to Sex117- Religiond118- Sensationalism119- Sexual & Reproductive Health120- Social Casino Games121- Weight Loss122- Alcohol123- Blocked124- Gambling & Betting (18+)
industryThe industry the project belongs to
99- Other1- Travel and Tourism2- Food and Beverage3- Bank and Assurance4- Public Administration5- Consulting6- Real Estate7- Gaming8- Health and Wellness9- Home, Furniture and Appliances10- Kids and Parentality11- Legal Services12- Lifestyle13- Marketing Advices14- Communication Advices15- Media and Entertainment16- Mental health and Psychology17- Restaurants and Bars18- Science19- Music20- News21- Personal Blog22- Pets23- Photo and Video24- Politics25- Arts and Crafts26- Automotive and Transportation27- Beauty and Skincare28- Fashion and Luxury29- Business-Entrepreneurship30- Climate/Environment31- Culture32- DIY and Home renovation33- E-commerce/Store34- Shopping/Retail35- Education-Training36- Finance/Investing37- Software/Apps38- Sports, Fitness/Outdoors39- Heavy Industry
organizationThe organization this project belongs to
workspace_typepublisher- publisheradvertiser- advertiser
RequestMethodEnum
GET- GETPOST- POSTPUT- PUTHEAD- HEADDELETE- DELETEPATCH- PATCHOPTIONS- OPTIONSTRACE- TRACE
StatusEnum
0- Unverified (awaiting HTML verification)1- Not Connected (awaiting SSAI call)2- Installed (SSAI verified, no campaign)3- Active (has active campaign)4- Inactive (manually deactivated)5- Lazy (declared inventory, awaiting first serve)
Track
project_keypathVisit
request_pathThe URL path being visited (e.g., '/blog/my-article')
request_methodHTTP method of the request (GET, POST, etc.)
GET- GETPOST- POSTPUT- PUTHEAD- HEADDELETE- DELETEPATCH- PATCHOPTIONS- OPTIONSTRACE- TRACE
Filtered request headers. Only include: User-Agent (required), Referer (recommended). IP-bearing headers (X-Real-IP, X-Forwarded-For) are dropped server-side for GDPR and need not be sent. Do NOT include sensitive headers like Authorization, Cookie, or tokens.
timestamp