Skip to main content

Settings Configuration

This document defines all configurable settings required to integrate the In-Chat Recommendations API across environments (Development, Staging, and Production).

It is based on the current technical integration guide:

  • Endpoint: POST https://mv.outbrain.com/Multivac/api/in-chat-recs
  • Authentication: API Key passed via query parameter key
  • Contextual signals: keywords + iabCategories passed in request body
  • Impression reporting: fire tracking.reportServed with &pos=X-Y

1) Overview

To call the In-Chat Recommendations API consistently across environments, your application should externalize configuration values such as:

  • API endpoint URL
  • API Key
  • Widget identifier (widgetJSId)
  • Default request flags (cors, optional testMode)
  • Request timeouts

✅ Store configuration in environment variables or secure secrets management.
❌ Never hardcode API keys in client-side repos or public codebases.


2) Environments

EnvironmentPurposeNotes
DevelopmentLocal testing / QAUse testMode=true to avoid polluting production
StagingPre-production validationUses the same endpoint with limited traffic
ProductionLive traffic and monetizationRequires approved key + placement

3) Core Endpoint Settings

Production Endpoint

https://mv.outbrain.com/Multivac/api/in-chat-recs

Method: POST
Authentication: API Key passed as query parameter key


4) Core Configuration Variables

SettingRequiredDescriptionExample
TEADS_INCHAT_RECS_ENDPOINTFull In-Chat Recommendations API endpointhttps://mv.outbrain.com/Multivac/api/in-chat-recs
TEADS_API_KEYAPI key used in key query paramabcd1234
TEADS_WIDGET_JS_IDWidget ID provided by TeadsAPP_12
TEADS_CORSMust be true for browser/chat environmentstrue
TEADS_TEST_MODEEnable test mode during developmenttrue

5) Runtime Parameters (Provided Per Request)

These are not static settings, but values your app must supply at runtime.

ParameterRequiredTypeDescriptionExample
contentUrlstringURL-encoded host pagetest.com
keywordsstring[]Chat intent/topic signals["investing","savings"]
iabCategoriesstring[]IAB category signals["IAB13"]

6) How Settings Map to the API Request

Query String Mapping

API ParameterComes From
keyTEADS_API_KEY
contentUrlruntime input
widgetJSIdTEADS_WIDGET_JS_ID
corsTEADS_CORS
testModeTEADS_TEST_MODE (optional)

Full Example URL

https://mv.outbrain.com/Multivac/api/in-chat-recs?key=YOUR_KEY&contentUrl=test.com&widgetJSId=APP_12&cors=true&testMode=true

Body Example

{
"keywords": ["investing", "savings", "personal finance"],
"iabCategories": ["IAB13"]
}

© 2026 Teads AI Platform. All rights reserved.