Skip to main content
POST
Create a signal campaign

Authorizations

X-API-Key
string
header
required

Partner API key (ck_…). Created by Interactive Layers; shown only once.

Body

application/json
name
string
required
Required string length: 2 - 80
brand_name
string
required
Required string length: 1 - 60
categories
string[]
required

Context categories (natural language) that trigger the campaign.

Required array length: 1 - 20 elements
campaign_id
string | null

Optional id (lowercase slug). Generated when omitted.

Pattern: ^[a-z0-9][a-z0-9-]{2,39}$
keywords
string[]

Targeting keywords written into the break marker.

Maximum array length: 30
external_ids
External Ids · object

Ids in your ad stack, e.g. {"springserve": "123"}.

brief
string
default:""
Maximum string length: 2000
positive_examples
string[]
Maximum array length: 20
negative_examples
string[]
Maximum array length: 20
safety_rules
string[]
Maximum array length: 20
trigger_mode
enum<string>
default:need

need: someone expresses an own need; topic: the conversation is about it.

Available options:
need,
topic
active
boolean
default:true
start_at
number | null

Unix seconds

end_at
number | null

Unix seconds

sources
string[]

Restrict to these source ids (empty = all your sources).

Maximum array length: 50

Response

Successful Response

campaign_id
string
required
name
string
required
brand_name
string
required
categories
string[]
required
keywords
string[]
required
external_ids
External Ids · object
required
brief
string
required
positive_examples
string[]
required
negative_examples
string[]
required
safety_rules
string[]
required
trigger_mode
string
required
active
boolean
required
sources
string[]
required
created_at
number
required
updated_at
number
required
start_at
number | null
end_at
number | null