Creates a web in-app or email campaign behind the same campaign model. Use either one message (a direct communication, one variant named “A”) or an explicit weighted variants array. Pass launch: true to start delivery, or leave a draft. Email launch requires a verified project domain and a matching from address. Optional deliverFrom/deliverUntil schedule a future start and automatic expiry. Optional sourceChanges declares the changes for deployment-based activation. Content and declaration commit atomically. Declaring changes does not approve the campaign. Approval survives later edits, but launch requires coverage for the current declaration and current channel readiness.
POST
/
api
/
v1
/
campaigns
Create a campaign
curl --request POST \ --url https://galinum.com/api/v1/campaigns \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "Launch: CSV export", "message": { "presentation": "toast", "title": "CSV export is here 📊", "body": "Export any table to CSV from the toolbar.", "media": { "url": "https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png", "alt": "Screenshot of the new analytics dashboard", "decorative": false } }, "channel": "web_inapp", "variants": [ { "message": { "presentation": "toast", "title": "CSV export is here 📊", "body": "Export any table to CSV from the toolbar.", "media": { "url": "https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png", "alt": "Screenshot of the new analytics dashboard", "decorative": false } }, "name": "A", "weight": 1, "isControl": true } ], "audience": { "kind": "all", "reason": "<string>" }, "targeting": { "traits": { "plan": "free" }, "events": { "seen": [ "activated_workspace" ], "not_seen": [ "used_csv_export" ] } }, "pages": [ "/settings/*" ], "goalId": "<string>", "launch": false, "deliverFrom": 123, "deliverUntil": 123}'
import requests
url = "https://galinum.com/api/v1/campaigns"
payload = {
"name": "Launch: CSV export",
"message": {
"presentation": "toast",
"title": "CSV export is here 📊",
"body": "Export any table to CSV from the toolbar.",
"media": {
"url": "https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png",
"alt": "Screenshot of the new analytics dashboard",
"decorative": False
}
},
"channel": "web_inapp",
"variants": [
{
"message": {
"presentation": "toast",
"title": "CSV export is here 📊",
"body": "Export any table to CSV from the toolbar.",
"media": {
"url": "https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png",
"alt": "Screenshot of the new analytics dashboard",
"decorative": False
}
},
"name": "A",
"weight": 1,
"isControl": True
}
],
"audience": {
"kind": "all",
"reason": "<string>"
},
"targeting": {
"traits": { "plan": "free" },
"events": {
"seen": ["activated_workspace"],
"not_seen": ["used_csv_export"]
}
},
"pages": ["/settings/*"],
"goalId": "<string>",
"launch": False,
"deliverFrom": 123,
"deliverUntil": 123
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: 'Launch: CSV export',
message: {
presentation: 'toast',
title: 'CSV export is here 📊',
body: JSON.stringify('Export any table to CSV from the toolbar.'),
media: {
url: 'https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png',
alt: 'Screenshot of the new analytics dashboard',
decorative: false
}
},
channel: 'web_inapp',
variants: [
{
message: {
presentation: 'toast',
title: 'CSV export is here 📊',
body: JSON.stringify('Export any table to CSV from the toolbar.'),
media: {
url: 'https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png',
alt: 'Screenshot of the new analytics dashboard',
decorative: false
}
},
name: 'A',
weight: 1,
isControl: true
}
],
audience: {kind: 'all', reason: '<string>'},
targeting: {
traits: {plan: 'free'},
events: {seen: ['activated_workspace'], not_seen: ['used_csv_export']}
},
pages: ['/settings/*'],
goalId: '<string>',
launch: false,
deliverFrom: 123,
deliverUntil: 123
})
};
fetch('https://galinum.com/api/v1/campaigns', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
Your project's secret key (pk_…, without the pub segment). Server-side only — never ship it to a browser. Get it from Settings → Projects in the dashboard.
Body
application/json
Option 1
Option 2
Exactly one of message or variants is required.
name
string
required
Internal campaign name shown in the dashboard.
Maximum string length: 80
Example:
"Launch: CSV export"
message
object
required
Single-variant shorthand: creates one variant named "A". Mutually exclusive with variants.
Option 1
Option 2
Option 3
Show child attributes
channel
enum<string>
default:web_inapp
Delivery channel. Email content uses subject, previewText, Markdown body, and an optional CTA.
Available options:
web_inapp,
email,
push
variants
object[]
Weighted variants for an A/B test (at most one control, at least one positive weight). Mutually exclusive with message.
Required array length: 1 - 10 elements
Show child attributes
audience
object
Canonical audience union. null or { "kind": "all" } targets everyone. { "kind": "expression", "expression": { … }, "reason": "…" } authors an inline audience stored as an immutable audience version. { "kind": "segment", "segment": "id-or-key", "version": n? } pins a saved segment version (omitted version = current, resolved atomically; archived segments are refused). Check expressions first with POST /api/v1/audiences/check. Mutually exclusive with the deprecated targeting field.
Option 1
Option 2
Option 3
Show child attributes
targeting
object | null
deprecated
Deprecated shorthand for the same audience semantics (strict trait equality + events seen/not_seen, ANDed). Still accepted; normalized into an immutable audience version. Prefer audience.
Show child attributes
pages
string[]
Web in-app only. Path patterns limiting where the message may render. Email campaigns reject this field.
Maximum array length: 20
Maximum string length: 256
goalId
string | null
Link the campaign to a goal in this project (400 if the goal doesn't exist here). Tracked events matching the linked goal's targetEvent automatically resolve the campaign's deliveries to converted once shown. Omit or pass null for no goal — direct communications never need one.
Minimum string length: 1
launch
boolean
default:false
Start the campaign instead of creating a draft. Email returns 409 until the project's sending domain is verified and its from address matches.
deliverFrom
integerstring<date-time>
Requested delivery-window start: epoch milliseconds or ISO-8601 with an explicit timezone offset (e.g. 2026-08-01T09:00:00Z). Nothing is delivered before this instant; combine with launch: true to schedule a future start. Must be earlier than deliverUntil.
deliverUntil
integerstring<date-time>
Requested delivery-window end: epoch milliseconds or ISO-8601 with an explicit timezone offset. Must be in the future; delivery stops automatically at exactly this instant.
push
object
Show child attributes
sourceChanges
object
Optional prepared source declaration, committed atomically with campaign content. No expectedRevision on create. Empty changes cannot qualify for automatic activation.
Show child attributes
Response
The created campaign, including its variant.
campaign
object
required
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Galinum","colors":{"primary":"#1A3A2A","light":"#2D7A4A","dark":"#1A3A2A"},"logo":{"light":"https://mintcdn.com/galinum/P8EaxFHlVOCBbMgl/logo/light.svg?fit=max\u0026auto=format\u0026n=P8EaxFHlVOCBbMgl\u0026q=85\u0026s=e13a9c002bb43cdf4e88cff30817d370","dark":"https://mintcdn.com/galinum/P8EaxFHlVOCBbMgl/logo/dark.svg?fit=max\u0026auto=format\u0026n=P8EaxFHlVOCBbMgl\u0026q=85\u0026s=176d58c21ac1069bdf64ce3a6940f210"},"favicon":"https://mintcdn.com/galinum/P8EaxFHlVOCBbMgl/logo/favicon.png?fit=max\u0026auto=format\u0026n=P8EaxFHlVOCBbMgl\u0026q=85\u0026s=436d30283307adf9500bbeb1ccf5b40a","navbar":{"primary":{"type":"button","label":"Get Early Access","href":"https://galinum.com"}},"footer":{"socials":{"github":"https://github.com/Galinum"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://galinum.com"},{"anchor":"GitHub","icon":"github","href":"https://github.com/Galinum"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"galinum","hasAudioNarration":false,"actualSubdomain":"galinum","customDomains":["docs.galinum.com"],"gitSource":{"type":"github","owner":"galinum","repo":"galinum","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6aa33dbae98199fe45f13e28","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"API Reference","count":65},{"language":"default","tag":"Documentation","count":19},{"language":"default","tag":"Audiences","count":10},{"language":"default","tag":"Push","count":9},{"language":"default","tag":"Hosted agent","count":9},{"language":"default","tag":"Campaigns","count":8},{"language":"default","tag":"Installations","count":7},{"language":"default","tag":"Get started","count":4},{"language":"default","tag":"React SDK","count":4},{"language":"default","tag":"Goals","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".nav-logo,nav-logo{height:40px!important;width:auto!important}"}]}
{"page":{"pagePath":"api-reference/campaigns/create-a-campaign","slug":"/api-reference/campaigns/create-a-campaign","pageMetadata":{"title":"Create a campaign","description":"Creates a web in-app or email campaign behind the same campaign model. Use either one `message` (a direct communication, one variant named \"A\") or an explicit weighted `variants` array. Pass `launch: true` to start delivery, or leave a draft. Email launch requires a verified project domain and a matching from address. Optional `deliverFrom`/`deliverUntil` schedule a future start and automatic expiry. Optional sourceChanges declares the changes for deployment-based activation. Content and declaration commit atomically. Declaring changes does not approve the campaign. Approval survives later edits, but launch requires coverage for the current declaration and current channel readiness.","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/campaigns","href":"/api-reference/campaigns/create-a-campaign","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_components.p, {\n children: [\"Creates a web in-app or email campaign behind the same campaign model. Use either one \", _jsx(_components.code, {\n children: \"message\"\n }), \" (a direct communication, one variant named “A”) or an explicit weighted \", _jsx(_components.code, {\n children: \"variants\"\n }), \" array. Pass \", _jsx(_components.code, {\n children: \"launch: true\"\n }), \" to start delivery, or leave a draft. Email launch requires a verified project domain and a matching from address. Optional \", _jsx(_components.code, {\n children: \"deliverFrom\"\n }), \"/\", _jsx(_components.code, {\n children: \"deliverUntil\"\n }), \" schedule a future start and automatic expiry. Optional sourceChanges declares the changes for deployment-based activation. Content and declaration commit atomically. Declaring changes does not approve the campaign. Approval survives later edits, but launch requires coverage for the current declaration and current channel readiness.\"]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a campaign","description":"Creates a web in-app or email campaign behind the same campaign model. Use either one `message` (a direct communication, one variant named \"A\") or an explicit weighted `variants` array. Pass `launch: true` to start delivery, or leave a draft. Email launch requires a verified project domain and a matching from address. Optional `deliverFrom`/`deliverUntil` schedule a future start and automatic expiry. Optional sourceChanges declares the changes for deployment-based activation. Content and declaration commit atomically. Declaring changes does not approve the campaign. Approval survives later edits, but launch requires coverage for the current declaration and current channel readiness.","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/campaigns","href":"/api-reference/campaigns/create-a-campaign","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"createCampaign","summary":"Create a campaign","security":["ee248952-b7d6-4785-8412-15676aa129bc"],"description":"Creates a web in-app or email campaign behind the same campaign model. Use either one `message` (a direct communication, one variant named \"A\") or an explicit weighted `variants` array. Pass `launch: true` to start delivery, or leave a draft. Email launch requires a verified project domain and a matching from address. Optional `deliverFrom`/`deliverUntil` schedule a future start and automatic expiry. Optional sourceChanges declares the changes for deployment-based activation. Content and declaration commit atomically. Declaring changes does not approve the campaign. Approval survives later edits, but launch requires coverage for the current declaration and current channel readiness.","tags":["Campaigns"],"requestBody":"ba8a5622-72f3-4e80-a045-5275f5ca4b80","responses":{"201":"b9e05573-2933-4bde-8afe-c484029263ec","400":"08cf76c4-260f-474b-a231-a72e15dae73c","401":"21a23aad-454b-4710-94a7-fd4b131866c6","404":"7932ac47-bbb1-4ced-bdae-7c366d24fc7f","409":"5b575a15-5bac-428d-8109-e231ac9d6297","413":"4a6ba1c3-6ce8-4b49-9d62-5b91fc7f7eaa","429":"af0b933c-d694-4549-9695-82a6be944fb9","500":"a11f7d79-1fc3-4209-91ca-fcc7d72d3936","503":"6f5b00e6-cc5d-4187-b88c-eb5ef330ec61"},"x-mcp":{"exposed":true,"tool":"create_campaign","mode":"full","annotations":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"guidance":"Classify the request as direct, outcome-measured, or optimized before you write anything, then use the smallest mode the user asked for. A direct communication is one message: do not add a goal, variants, a delivery window, an evaluation, or optimization unless the user asked for them. Treat ordinary announcements as direct even when the product has goals. Use a single message field for direct communication. Set a delivery window only from timing the user gave you, or after you resolve the missing dates with them. If the user said draft, propose, or prepare, stop at draft and never launch. Launch only when the user gave explicit launch, send, or announce authority. If launch authority is ambiguous, stop at draft and ask. Avoid overlapping audiences and delivery periods with other running or scheduled campaigns. Before you create, launch, or update a campaign, read recent agent runs and query running and scheduled campaigns as two separate paginated searches. Read every page through pageCount for both statuses before treating their deduplicated union as a complete point-in-time snapshot. Repeat both searches immediately before the write. Never claim protection against concurrent campaign changes. If a create call is uncertain, never retry it: read campaigns back and confirm what exists before you act again."},"method":"post","type":"path","servers":["d78851ce-f6b3-4284-acc2-dcf1797c4d16"],"path":"/api/v1/campaigns","baseUrlOptions":["https://galinum.com"],"title":"Create a campaign","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Exactly one of `message` or `variants` is required.","required":["name","message"],"properties":{"name":{"type":"string","maxLength":80,"description":"Internal campaign name shown in the dashboard.","example":"Launch: CSV export","isRequired":true,"uniqueKey":"oneOf.0.name","typeLabel":"string"},"message":{"oneOf":[{"type":"object","description":"Single-variant shorthand: creates one variant named \"A\". Mutually exclusive with `variants`.","required":["presentation"],"properties":{"presentation":{"type":"string","enum":["toast","modal"],"description":"How the built-in renderer presents the message; media is independent content. `toast` is the compact bottom-right card, `modal` the centered announcement over a full-screen backdrop.","example":"toast","isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.0.presentation","typeLabel":"enum\u003cstring>"},"title":{"type":"string","maxLength":120,"example":"CSV export is here 📊","uniqueKey":"oneOf.0.message.oneOf.0.title","typeLabel":"string"},"body":{"type":"string","maxLength":600,"example":"Export any table to CSV from the toolbar.","uniqueKey":"oneOf.0.message.oneOf.0.body","typeLabel":"string"},"cta":{"type":"object","required":["label"],"properties":{"label":{"type":"string","example":"Try it","isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.0.cta.label","typeLabel":"string"},"destination":{"type":"object","required":["kind","url"],"additionalProperties":false,"properties":{"kind":{"type":"string","enum":["website","app"],"isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.0.cta.destination.kind","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"HTTPS website URL, or an app URL whose scheme is configured in the client.","example":"https://app.example.com/exports","isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.0.cta.destination.url","typeLabel":"string"}},"uniqueKey":"oneOf.0.message.oneOf.0.cta.destination","typeLabel":"object"}},"uniqueKey":"oneOf.0.message.oneOf.0.cta","typeLabel":"object"},"media":{"oneOf":[{"type":"object","description":"Optional image for a message (PNG, JPEG, WebP, or animated GIF). Media is content, not presentation: a toast shows it as a compact thumbnail and a modal shows it as the immersive visual. Exactly one of `alt` or `decorative: true` is required.","required":["url","alt"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https?://","description":"A managed campaign media URL returned by POST /api/v1/campaign-media for this project. External, data:, and other projects' URLs are rejected.","example":"https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png","isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.0.media.oneOf.0.url","typeLabel":"string\u003curi>"},"alt":{"type":"string","maxLength":300,"description":"What the image shows, for assistive technology. Required unless `decorative` is true.","example":"Screenshot of the new analytics dashboard","isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.0.media.oneOf.0.alt","typeLabel":"string"},"decorative":{"type":"boolean","description":"Mark the image as purely decorative instead of providing alt text. Mutually exclusive with `alt`.","const":false,"uniqueKey":"oneOf.0.message.oneOf.0.media.oneOf.0.decorative","typeLabel":"boolean"}},"uniqueKey":"oneOf.0.message.oneOf.0.media.oneOf.0","typeLabel":"object"},{"type":"object","description":"Optional image for a message (PNG, JPEG, WebP, or animated GIF). Media is content, not presentation: a toast shows it as a compact thumbnail and a modal shows it as the immersive visual. Exactly one of `alt` or `decorative: true` is required.","required":["url","decorative"],"properties":{"decorative":{"type":"boolean","description":"Mark the image as purely decorative instead of providing alt text. Mutually exclusive with `alt`.","const":true,"isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.0.media.oneOf.1.decorative","typeLabel":"boolean"},"url":{"type":"string","format":"uri","pattern":"^https?://","description":"A managed campaign media URL returned by POST /api/v1/campaign-media for this project. External, data:, and other projects' URLs are rejected.","example":"https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png","isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.0.media.oneOf.1.url","typeLabel":"string\u003curi>"},"alt":{"type":"string","maxLength":300,"description":"What the image shows, for assistive technology. Required unless `decorative` is true.","example":"Screenshot of the new analytics dashboard","uniqueKey":"oneOf.0.message.oneOf.0.media.oneOf.1.alt","typeLabel":"string"}},"uniqueKey":"oneOf.0.message.oneOf.0.media.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.message.oneOf.0.media","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.0","typeLabel":"object"},{"type":"object","description":"Single-variant shorthand: creates one variant named \"A\". Mutually exclusive with `variants`.","required":["subject","body"],"properties":{"subject":{"type":"string","maxLength":200,"example":"CSV export is ready","isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.1.subject","typeLabel":"string"},"body":{"type":"string","maxLength":50000,"description":"Markdown email body.","example":"# CSV export is here\\n\\nDownload any table from the toolbar.","isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.1.body","typeLabel":"string"},"previewText":{"type":"string","maxLength":200,"example":"Download any table in one click","uniqueKey":"oneOf.0.message.oneOf.1.previewText","typeLabel":"string"},"cta":{"type":"object","required":["label","url"],"properties":{"label":{"type":"string","example":"Try CSV export","isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.1.cta.label","typeLabel":"string"},"url":{"type":"string","format":"uri","description":"Must use http:// or https://.","example":"https://app.example.com/exports","isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.1.cta.url","typeLabel":"string\u003curi>"}},"uniqueKey":"oneOf.0.message.oneOf.1.cta","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.1","typeLabel":"object"},{"type":"object","required":["title","body","destination"],"properties":{"title":{"type":"string","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.2.title","typeLabel":"string"},"body":{"type":"string","minLength":1,"maxLength":2048,"isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.2.body","typeLabel":"string"},"destination":{"type":"object","properties":{"kind":{"type":"string","enum":["website","app"],"isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.2.destination.kind","typeLabel":"enum\u003cstring>"},"url":{"type":"string","minLength":1,"maxLength":2048,"isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.2.destination.url","typeLabel":"string"}},"required":["kind","url"],"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.2.destination","typeLabel":"object"},"data":{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":1024,"uniqueKey":"oneOf.0.message.oneOf.2.data.additionalProperties","typeLabel":"string"},"maxProperties":32,"uniqueKey":"oneOf.0.message.oneOf.2.data","typeLabel":"object"},"image":{"type":"string","minLength":1,"maxLength":2048,"uniqueKey":"oneOf.0.message.oneOf.2.image","typeLabel":"string"},"actions":{"type":"array","maxItems":4,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$","isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.2.actions.items.[INDEX].id","typeLabel":"string"},"title":{"type":"string","minLength":1,"maxLength":64,"isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.2.actions.items.[INDEX].title","typeLabel":"string"}},"required":["id","title"],"additionalProperties":false,"uniqueKey":"oneOf.0.message.oneOf.2.actions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.message.oneOf.2.actions","typeLabel":"object[]"},"ios":{"type":"object","properties":{"subtitle":{"type":"string","minLength":1,"maxLength":256,"uniqueKey":"oneOf.0.message.oneOf.2.ios.subtitle","typeLabel":"string"},"sound":{"type":"string","minLength":1,"maxLength":128,"uniqueKey":"oneOf.0.message.oneOf.2.ios.sound","typeLabel":"string"},"badge":{"type":"integer","minimum":0,"maximum":9007199254740991,"uniqueKey":"oneOf.0.message.oneOf.2.ios.badge","typeLabel":"integer"},"categoryId":{"type":"string","minLength":1,"maxLength":128,"uniqueKey":"oneOf.0.message.oneOf.2.ios.categoryId","typeLabel":"string"}},"required":[],"additionalProperties":false,"uniqueKey":"oneOf.0.message.oneOf.2.ios","typeLabel":"object"},"android":{"type":"object","properties":{"channelId":{"type":"string","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.2.android.channelId","typeLabel":"string"},"sound":{"type":"string","minLength":1,"maxLength":128,"uniqueKey":"oneOf.0.message.oneOf.2.android.sound","typeLabel":"string"}},"required":["channelId"],"additionalProperties":false,"uniqueKey":"oneOf.0.message.oneOf.2.android","typeLabel":"object"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.message.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"object"},"channel":{"type":"string","enum":["web_inapp","email","push"],"default":"web_inapp","description":"Delivery channel. Email content uses subject, previewText, Markdown body, and an optional CTA.","uniqueKey":"oneOf.0.channel","typeLabel":"enum\u003cstring>"},"variants":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"object","required":["message"],"properties":{"message":{"oneOf":[{"type":"object","description":"Channel-specific campaign content. Use the web in-app shape for channel web_inapp and the email shape for channel email.","required":["presentation"],"properties":{"presentation":{"type":"string","enum":["toast","modal"],"description":"How the built-in renderer presents the message; media is independent content. `toast` is the compact bottom-right card, `modal` the centered announcement over a full-screen backdrop.","example":"toast","isRequired":true,"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.presentation","typeLabel":"enum\u003cstring>"},"title":{"type":"string","maxLength":120,"example":"CSV export is here 📊","uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.title","typeLabel":"string"},"body":{"type":"string","maxLength":600,"example":"Export any table to CSV from the toolbar.","uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.body","typeLabel":"string"},"cta":{"type":"object","required":["label"],"properties":{"label":{"type":"string","example":"Try it","isRequired":true,"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.cta.label","typeLabel":"string"},"destination":{"type":"object","required":["kind","url"],"additionalProperties":false,"properties":{"kind":{"type":"string","enum":["website","app"],"isRequired":true,"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.cta.destination.kind","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"HTTPS website URL, or an app URL whose scheme is configured in the client.","example":"https://app.example.com/exports","isRequired":true,"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.cta.destination.url","typeLabel":"string"}},"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.cta.destination","typeLabel":"object"}},"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.cta","typeLabel":"object"},"media":{"oneOf":[{"type":"object","description":"Optional image for a message (PNG, JPEG, WebP, or animated GIF). Media is content, not presentation: a toast shows it as a compact thumbnail and a modal shows it as the immersive visual. Exactly one of `alt` or `decorative: true` is required.","required":["url","alt"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https?://","description":"A managed campaign media URL returned by POST /api/v1/campaign-media for this project. External, data:, and other projects' URLs are rejected.","example":"https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png","isRequired":true,"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.media.oneOf.0.url","typeLabel":"string\u003curi>"},"alt":{"type":"string","maxLength":300,"description":"What the image shows, for assistive technology. Required unless `decorative` is true.","example":"Screenshot of the new analytics dashboard","isRequired":true,"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.media.oneOf.0.alt","typeLabel":"string"},"decorative":{"type":"boolean","description":"Mark the image as purely decorative instead of providing alt text. Mutually exclusive with `alt`.","const":false,"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.media.oneOf.0.decorative","typeLabel":"boolean"}},"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.media.oneOf.0","typeLabel":"object"},{"type":"object","description":"Optional image for a message (PNG, JPEG, WebP, or animated GIF). Media is content, not presentation: a toast shows it as a compact thumbnail and a modal shows it as the immersive visual. Exactly one of `alt` or `decorative: true` is required.","required":["url","decorative"],"properties":{"decorative":{"type":"boolean","description":"Mark the image as purely decorative instead of providing alt text. Mutually exclusive with `alt`.","const":true,"isRequired":true,"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.media.oneOf.1.decorative","typeLabel":"boolean"},"url":{"type":"string","format":"uri","pattern":"^https?://","description":"A managed campaign media URL returned by POST /api/v1/campaign-media for this project. External, data:, and other projects' URLs are rejected.","example":"https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png","isRequired":true,"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.media.oneOf.1.url","typeLabel":"string\u003curi>"},"alt":{"type":"string","maxLength":300,"description":"What the image shows, for assistive technology. Required unless `decorative` is true.","example":"Screenshot of the new analytics dashboard","uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.media.oneOf.1.alt","typeLabel":"string"}},"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.media.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0.media","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.0","typeLabel":"object"},{"type":"object","description":"Channel-specific campaign content. Use the web in-app shape for channel web_inapp and the email shape for channel email.","required":["subject","body"],"properties":{"subject":{"type":"string","maxLength":200,"example":"CSV export is ready","isRequired":true,"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.1.subject","typeLabel":"string"},"body":{"type":"string","maxLength":50000,"description":"Markdown email body.","example":"# CSV export is here\\n\\nDownload any table from the toolbar.","isRequired":true,"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.1.body","typeLabel":"string"},"previewText":{"type":"string","maxLength":200,"example":"Download any table in one click","uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.1.previewText","typeLabel":"string"},"cta":{"type":"object","required":["label","url"],"properties":{"label":{"type":"string","example":"Try CSV export","isRequired":true,"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.1.cta.label","typeLabel":"string"},"url":{"type":"string","format":"uri","description":"Must use http:// or https://.","example":"https://app.example.com/exports","isRequired":true,"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.1.cta.url","typeLabel":"string\u003curi>"}},"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.1.cta","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.0.variants.items.[INDEX].message.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"oneOf.0.variants.items.[INDEX].message","typeLabel":"object"},"name":{"type":"string","maxLength":40,"description":"Defaults to A, B, C… by position.","example":"A","uniqueKey":"oneOf.0.variants.items.[INDEX].name","typeLabel":"string"},"weight":{"type":"integer","minimum":0,"maximum":100,"default":1,"description":"Relative assignment weight. 0 retires the variant (it is never assigned).","uniqueKey":"oneOf.0.variants.items.[INDEX].weight","typeLabel":"integer"},"isControl":{"type":"boolean","description":"At most one control per campaign; defaults to the first variant.","uniqueKey":"oneOf.0.variants.items.[INDEX].isControl","typeLabel":"boolean"}},"uniqueKey":"oneOf.0.variants.items.[INDEX]","typeLabel":"object"},"description":"Weighted variants for an A/B test (at most one control, at least one positive weight). Mutually exclusive with `message`.","uniqueKey":"oneOf.0.variants","typeLabel":"object[]"},"audience":{"oneOf":[{"type":"null","description":"Canonical audience union. `null` or `{ \"kind\": \"all\" }` targets everyone. `{ \"kind\": \"expression\", \"expression\": { … }, \"reason\": \"…\" }` authors an inline audience stored as an immutable audience version. `{ \"kind\": \"segment\", \"segment\": \"id-or-key\", \"version\": n? }` pins a saved segment version (omitted version = current, resolved atomically; archived segments are refused). Check expressions first with POST /api/v1/audiences/check. Mutually exclusive with the deprecated `targeting` field.","uniqueKey":"oneOf.0.audience.oneOf.0","typeLabel":"null"},{"type":"object","description":"Canonical audience union. `null` or `{ \"kind\": \"all\" }` targets everyone. `{ \"kind\": \"expression\", \"expression\": { … }, \"reason\": \"…\" }` authors an inline audience stored as an immutable audience version. `{ \"kind\": \"segment\", \"segment\": \"id-or-key\", \"version\": n? }` pins a saved segment version (omitted version = current, resolved atomically; archived segments are refused). Check expressions first with POST /api/v1/audiences/check. Mutually exclusive with the deprecated `targeting` field.","required":["kind"],"properties":{"kind":{"const":"all","isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.1.kind","typeLabel":"any"},"reason":{"type":"string","maxLength":500,"uniqueKey":"oneOf.0.audience.oneOf.1.reason","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.0.audience.oneOf.1","typeLabel":"object"},{"type":"object","description":"Canonical audience union. `null` or `{ \"kind\": \"all\" }` targets everyone. `{ \"kind\": \"expression\", \"expression\": { … }, \"reason\": \"…\" }` authors an inline audience stored as an immutable audience version. `{ \"kind\": \"segment\", \"segment\": \"id-or-key\", \"version\": n? }` pins a saved segment version (omitted version = current, resolved atomically; archived segments are refused). Check expressions first with POST /api/v1/audiences/check. Mutually exclusive with the deprecated `targeting` field.","required":["kind","expression"],"properties":{"kind":{"const":"expression","isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.kind","typeLabel":"any"},"expression":{"type":"object","required":["version","root"],"properties":{"version":{"type":"integer","enum":[1],"description":"Audience expression schema version.","isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.version","typeLabel":"enum\u003cinteger>"},"root":{"oneOf":[{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","children"],"properties":{"kind":{"const":"all","isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.0.kind","typeLabel":"any"},"children":{"type":"array","minItems":1,"maxItems":16,"items":{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01"},"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.0.children","typeLabel":"array"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.0","typeLabel":"object"},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","children"],"properties":{"kind":{"const":"any","isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.1.kind","typeLabel":"any"},"children":{"type":"array","minItems":1,"maxItems":16,"items":{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01"},"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.1.children","typeLabel":"array"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.1","typeLabel":"object"},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","child"],"properties":{"kind":{"const":"not","isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.2.kind","typeLabel":"any"},"child":{"oneOf":[{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01","isRequired":true}],"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.2.child","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.2","typeLabel":"object"},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","field","op"],"properties":{"kind":{"const":"field","isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.3.kind","typeLabel":"any"},"field":{"oneOf":[{"type":"object","description":"Structured, unambiguous field reference.","required":["kind","key"],"properties":{"kind":{"const":"trait","isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.0.kind","typeLabel":"any"},"key":{"type":"string","maxLength":128,"description":"Literal top-level trait key.","isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.0.key","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.0","typeLabel":"object"},{"type":"object","description":"Structured, unambiguous field reference.","required":["kind","field"],"properties":{"kind":{"const":"user","isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.1.kind","typeLabel":"any"},"field":{"type":"string","enum":["firstSeenAt","lastSeenAt"],"description":"Lifecycle field (datetime).","isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.1.field","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.1","typeLabel":"object"},{"type":"object","description":"Structured, unambiguous field reference.","required":["kind","key"],"properties":{"kind":{"const":"event_property","isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.2.kind","typeLabel":"any"},"key":{"type":"string","maxLength":128,"description":"Literal top-level event property key. Only valid inside an event node's where conditions.","isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.2.key","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.3.field","typeLabel":"object"},"op":{"type":"string","enum":["eq","neq","in","not_in","contains","starts_with","ends_with","gt","gte","lt","lte","exists","not_exists","before","after","within_last","not_within_last"],"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.3.op","typeLabel":"enum\u003cstring>"},"value":{"description":"Required for every operator except exists/not_exists (which reject it). Typed per operator: eq/neq take a string/number/boolean; in/not_in a non-empty array (≤ 50) of all strings or all numbers; contains/starts_with/ends_with a string; gt/gte/lt/lte a number; before/after an ISO-8601 date-time with explicit offset; within_last/not_within_last an AudienceWindow.","uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.3.value","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.3","typeLabel":"object"},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","event"],"properties":{"kind":{"const":"event","isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.4.kind","typeLabel":"any"},"event":{"type":"string","maxLength":80,"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.4.event","typeLabel":"string"},"count":{"type":"object","required":["op","value"],"additionalProperties":false,"properties":{"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"],"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.4.count.op","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","minimum":0,"maximum":10000,"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.4.count.value","typeLabel":"integer"}},"description":"Occurrence-count comparison; defaults to at-least-once ({ op: gte, value: 1 }).","uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.4.count","typeLabel":"object"},"window":{"type":"object","required":["amount","unit"],"properties":{"amount":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.4.window.amount","typeLabel":"integer"},"unit":{"type":"string","enum":["minutes","hours","days"],"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.4.window.unit","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"description":"Relative time window measured back from the evaluation instant (evaluatedAt).","uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.4.window","typeLabel":"object"},"where":{"type":"array","minItems":1,"maxItems":8,"items":{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01"},"description":"field nodes on event_property references, ANDed per occurrence.","uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.4.where","typeLabel":"array"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression.root","typeLabel":"object"}},"additionalProperties":false,"description":"Versioned, strictly validated audience rule. Example: `{ \"version\": 1, \"root\": { \"kind\": \"all\", \"children\": [ { \"kind\": \"field\", \"field\": { \"kind\": \"trait\", \"key\": \"plan\" }, \"op\": \"eq\", \"value\": \"free\" }, { \"kind\": \"not\", \"child\": { \"kind\": \"event\", \"event\": \"used_csv_export\" } } ] } }`","example":{"version":1,"root":{"kind":"all","children":[{"kind":"field","field":{"kind":"trait","key":"plan"},"op":"eq","value":"free"},{"kind":"not","child":{"kind":"event","event":"used_csv_export"}}]}},"isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.2.expression","typeLabel":"object"},"reason":{"type":"string","maxLength":500,"description":"Concise note on why this audience was chosen or revised; stored on the immutable audience version.","uniqueKey":"oneOf.0.audience.oneOf.2.reason","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.0.audience.oneOf.2","typeLabel":"object"},{"type":"object","description":"Canonical audience union. `null` or `{ \"kind\": \"all\" }` targets everyone. `{ \"kind\": \"expression\", \"expression\": { … }, \"reason\": \"…\" }` authors an inline audience stored as an immutable audience version. `{ \"kind\": \"segment\", \"segment\": \"id-or-key\", \"version\": n? }` pins a saved segment version (omitted version = current, resolved atomically; archived segments are refused). Check expressions first with POST /api/v1/audiences/check. Mutually exclusive with the deprecated `targeting` field.","required":["kind","segment"],"properties":{"kind":{"const":"segment","isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.3.kind","typeLabel":"any"},"segment":{"type":"string","description":"Segment id (seg_…) or machine key.","isRequired":true,"uniqueKey":"oneOf.0.audience.oneOf.3.segment","typeLabel":"string"},"version":{"type":"integer","minimum":1,"description":"Pin a specific immutable version; omitted = the segment's current version, resolved atomically at write time.","uniqueKey":"oneOf.0.audience.oneOf.3.version","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"oneOf.0.audience.oneOf.3","typeLabel":"object"}],"uniqueKey":"oneOf.0.audience","typeLabel":"null · object · object · object"},"targeting":{"oneOf":[{"type":"object","description":"Deprecated shorthand for the same audience semantics (strict trait equality + events seen/not_seen, ANDed). Still accepted; normalized into an immutable audience version. Prefer `audience`.","deprecated":true,"properties":{"traits":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"oneOf.0.targeting.oneOf.0.traits.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"oneOf.0.targeting.oneOf.0.traits.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"oneOf.0.targeting.oneOf.0.traits.additionalProperties.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"oneOf.0.targeting.oneOf.0.traits.additionalProperties","typeLabel":"string | number | boolean"},"description":"Trait values the user must match by strict equality.","example":{"plan":"free"},"uniqueKey":"oneOf.0.targeting.oneOf.0.traits","typeLabel":"object"},"events":{"type":"object","properties":{"seen":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.targeting.oneOf.0.events.seen.items.[INDEX]","typeLabel":"string"},"description":"Events the user must have fired at least once.","example":["activated_workspace"],"uniqueKey":"oneOf.0.targeting.oneOf.0.events.seen","typeLabel":"string[]"},"not_seen":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.0.targeting.oneOf.0.events.not_seen.items.[INDEX]","typeLabel":"string"},"description":"Events the user must NOT have fired.","example":["used_csv_export"],"uniqueKey":"oneOf.0.targeting.oneOf.0.events.not_seen","typeLabel":"string[]"}},"uniqueKey":"oneOf.0.targeting.oneOf.0.events","typeLabel":"object"}},"uniqueKey":"oneOf.0.targeting.oneOf.0","typeLabel":"object"},{"type":"null","description":"Deprecated shorthand for the same audience semantics (strict trait equality + events seen/not_seen, ANDed). Still accepted; normalized into an immutable audience version. Prefer `audience`.","deprecated":true,"uniqueKey":"oneOf.0.targeting.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.targeting","typeLabel":"object | null"},"pages":{"type":"array","maxItems":20,"items":{"type":"string","maxLength":256,"example":"/settings/*","uniqueKey":"oneOf.0.pages.items.[INDEX]","typeLabel":"string"},"description":"Web in-app only. Path patterns limiting where the message may render. Email campaigns reject this field.","uniqueKey":"oneOf.0.pages","typeLabel":"string[]"},"goalId":{"oneOf":[{"type":"string","minLength":1,"description":"Link the campaign to a goal in this project (400 if the goal doesn't exist here). Tracked events matching the linked goal's targetEvent automatically resolve the campaign's deliveries to converted once shown. Omit or pass null for no goal — direct communications never need one.","uniqueKey":"oneOf.0.goalId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Link the campaign to a goal in this project (400 if the goal doesn't exist here). Tracked events matching the linked goal's targetEvent automatically resolve the campaign's deliveries to converted once shown. Omit or pass null for no goal — direct communications never need one.","uniqueKey":"oneOf.0.goalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.0.goalId","typeLabel":"string | null"},"launch":{"type":"boolean","default":false,"description":"Start the campaign instead of creating a draft. Email returns 409 until the project's sending domain is verified and its from address matches.","uniqueKey":"oneOf.0.launch","typeLabel":"boolean"},"deliverFrom":{"oneOf":[{"type":"integer","description":"Requested delivery-window start: epoch milliseconds or ISO-8601 with an explicit timezone offset (e.g. 2026-08-01T09:00:00Z). Nothing is delivered before this instant; combine with `launch: true` to schedule a future start. Must be earlier than `deliverUntil`.","uniqueKey":"oneOf.0.deliverFrom.oneOf.0","typeLabel":"integer"},{"type":"string","description":"Requested delivery-window start: epoch milliseconds or ISO-8601 with an explicit timezone offset (e.g. 2026-08-01T09:00:00Z). Nothing is delivered before this instant; combine with `launch: true` to schedule a future start. Must be earlier than `deliverUntil`.","format":"date-time","uniqueKey":"oneOf.0.deliverFrom.oneOf.1","typeLabel":"string\u003cdate-time>"}],"uniqueKey":"oneOf.0.deliverFrom","typeLabel":"integer | string\u003cdate-time>"},"deliverUntil":{"oneOf":[{"type":"integer","description":"Requested delivery-window end: epoch milliseconds or ISO-8601 with an explicit timezone offset. Must be in the future; delivery stops automatically at exactly this instant.","uniqueKey":"oneOf.0.deliverUntil.oneOf.0","typeLabel":"integer"},{"type":"string","description":"Requested delivery-window end: epoch milliseconds or ISO-8601 with an explicit timezone offset. Must be in the future; delivery stops automatically at exactly this instant.","format":"date-time","uniqueKey":"oneOf.0.deliverUntil.oneOf.1","typeLabel":"string\u003cdate-time>"}],"uniqueKey":"oneOf.0.deliverUntil","typeLabel":"integer | string\u003cdate-time>"},"push":{"type":"object","properties":{"appId":{"type":"string","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"oneOf.0.push.appId","typeLabel":"string"},"selection":{"oneOf":[{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","enum":["last_active","all"],"isRequired":true,"uniqueKey":"oneOf.0.push.selection.oneOf.0.kind","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.push.selection.oneOf.0","typeLabel":"object"},{"type":"object","required":["kind","installationId"],"properties":{"kind":{"type":"string","enum":["specific"],"isRequired":true,"uniqueKey":"oneOf.0.push.selection.oneOf.1.kind","typeLabel":"enum\u003cstring>"},"installationId":{"type":"string","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"oneOf.0.push.selection.oneOf.1.installationId","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.0.push.selection.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"oneOf.0.push.selection","typeLabel":"object"},"ttlSeconds":{"type":"integer","minimum":1,"maximum":2419200,"uniqueKey":"oneOf.0.push.ttlSeconds","typeLabel":"integer"},"replacementKey":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"oneOf.0.push.replacementKey","typeLabel":"string"}},"required":["appId","selection"],"additionalProperties":false,"uniqueKey":"oneOf.0.push","typeLabel":"object"},"sourceChanges":{"type":"object","additionalProperties":false,"required":["changes"],"properties":{"changes":{"type":"array","maxItems":100,"items":{"oneOf":[{"type":"object","description":"A writable source change. Inherits the strict source change fields and types; PR input is limited to 250 original SHAs.","required":["sourceId","kind","sha"],"properties":{"sourceId":{"type":"string","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"oneOf.0.sourceChanges.changes.items.[INDEX].oneOf.0.sourceId","typeLabel":"string"},"kind":{"type":"string","const":"commit","isRequired":true,"uniqueKey":"oneOf.0.sourceChanges.changes.items.[INDEX].oneOf.0.kind","typeLabel":"string"},"sha":{"type":"string","pattern":"^[a-f0-9]{40}$","isRequired":true,"uniqueKey":"oneOf.0.sourceChanges.changes.items.[INDEX].oneOf.0.sha","typeLabel":"string"},"shas":{"type":"array","maxItems":250,"uniqueKey":"oneOf.0.sourceChanges.changes.items.[INDEX].oneOf.0.shas","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"oneOf.0.sourceChanges.changes.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A writable source change. Inherits the strict source change fields and types; PR input is limited to 250 original SHAs.","required":["sourceId","kind","number","shas"],"properties":{"sourceId":{"type":"string","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"oneOf.0.sourceChanges.changes.items.[INDEX].oneOf.1.sourceId","typeLabel":"string"},"kind":{"type":"string","const":"pull_request","isRequired":true,"uniqueKey":"oneOf.0.sourceChanges.changes.items.[INDEX].oneOf.1.kind","typeLabel":"string"},"number":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"oneOf.0.sourceChanges.changes.items.[INDEX].oneOf.1.number","typeLabel":"integer"},"shas":{"type":"array","items":{"type":"string","pattern":"^[a-f0-9]{40}$","uniqueKey":"oneOf.0.sourceChanges.changes.items.[INDEX].oneOf.1.shas.items.[INDEX]","typeLabel":"string"},"maxItems":250,"minItems":1,"isRequired":true,"uniqueKey":"oneOf.0.sourceChanges.changes.items.[INDEX].oneOf.1.shas","typeLabel":"string[]"}},"additionalProperties":false,"uniqueKey":"oneOf.0.sourceChanges.changes.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.0.sourceChanges.changes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.sourceChanges.changes","typeLabel":"object[]"}},"description":"Optional prepared source declaration, committed atomically with campaign content. No expectedRevision on create. Empty changes cannot qualify for automatic activation.","uniqueKey":"oneOf.0.sourceChanges","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","description":"Exactly one of `message` or `variants` is required.","required":["name","variants"],"properties":{"name":{"type":"string","maxLength":80,"description":"Internal campaign name shown in the dashboard.","example":"Launch: CSV export","isRequired":true,"uniqueKey":"oneOf.1.name","typeLabel":"string"},"variants":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"object","required":["message"],"properties":{"message":{"oneOf":[{"type":"object","description":"Channel-specific campaign content. Use the web in-app shape for channel web_inapp and the email shape for channel email.","required":["presentation"],"properties":{"presentation":{"type":"string","enum":["toast","modal"],"description":"How the built-in renderer presents the message; media is independent content. `toast` is the compact bottom-right card, `modal` the centered announcement over a full-screen backdrop.","example":"toast","isRequired":true,"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.presentation","typeLabel":"enum\u003cstring>"},"title":{"type":"string","maxLength":120,"example":"CSV export is here 📊","uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.title","typeLabel":"string"},"body":{"type":"string","maxLength":600,"example":"Export any table to CSV from the toolbar.","uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.body","typeLabel":"string"},"cta":{"type":"object","required":["label"],"properties":{"label":{"type":"string","example":"Try it","isRequired":true,"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.cta.label","typeLabel":"string"},"destination":{"type":"object","required":["kind","url"],"additionalProperties":false,"properties":{"kind":{"type":"string","enum":["website","app"],"isRequired":true,"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.cta.destination.kind","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"HTTPS website URL, or an app URL whose scheme is configured in the client.","example":"https://app.example.com/exports","isRequired":true,"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.cta.destination.url","typeLabel":"string"}},"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.cta.destination","typeLabel":"object"}},"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.cta","typeLabel":"object"},"media":{"oneOf":[{"type":"object","description":"Optional image for a message (PNG, JPEG, WebP, or animated GIF). Media is content, not presentation: a toast shows it as a compact thumbnail and a modal shows it as the immersive visual. Exactly one of `alt` or `decorative: true` is required.","required":["url","alt"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https?://","description":"A managed campaign media URL returned by POST /api/v1/campaign-media for this project. External, data:, and other projects' URLs are rejected.","example":"https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png","isRequired":true,"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.media.oneOf.0.url","typeLabel":"string\u003curi>"},"alt":{"type":"string","maxLength":300,"description":"What the image shows, for assistive technology. Required unless `decorative` is true.","example":"Screenshot of the new analytics dashboard","isRequired":true,"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.media.oneOf.0.alt","typeLabel":"string"},"decorative":{"type":"boolean","description":"Mark the image as purely decorative instead of providing alt text. Mutually exclusive with `alt`.","const":false,"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.media.oneOf.0.decorative","typeLabel":"boolean"}},"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.media.oneOf.0","typeLabel":"object"},{"type":"object","description":"Optional image for a message (PNG, JPEG, WebP, or animated GIF). Media is content, not presentation: a toast shows it as a compact thumbnail and a modal shows it as the immersive visual. Exactly one of `alt` or `decorative: true` is required.","required":["url","decorative"],"properties":{"decorative":{"type":"boolean","description":"Mark the image as purely decorative instead of providing alt text. Mutually exclusive with `alt`.","const":true,"isRequired":true,"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.media.oneOf.1.decorative","typeLabel":"boolean"},"url":{"type":"string","format":"uri","pattern":"^https?://","description":"A managed campaign media URL returned by POST /api/v1/campaign-media for this project. External, data:, and other projects' URLs are rejected.","example":"https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png","isRequired":true,"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.media.oneOf.1.url","typeLabel":"string\u003curi>"},"alt":{"type":"string","maxLength":300,"description":"What the image shows, for assistive technology. Required unless `decorative` is true.","example":"Screenshot of the new analytics dashboard","uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.media.oneOf.1.alt","typeLabel":"string"}},"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.media.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0.media","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.0","typeLabel":"object"},{"type":"object","description":"Channel-specific campaign content. Use the web in-app shape for channel web_inapp and the email shape for channel email.","required":["subject","body"],"properties":{"subject":{"type":"string","maxLength":200,"example":"CSV export is ready","isRequired":true,"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.1.subject","typeLabel":"string"},"body":{"type":"string","maxLength":50000,"description":"Markdown email body.","example":"# CSV export is here\\n\\nDownload any table from the toolbar.","isRequired":true,"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.1.body","typeLabel":"string"},"previewText":{"type":"string","maxLength":200,"example":"Download any table in one click","uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.1.previewText","typeLabel":"string"},"cta":{"type":"object","required":["label","url"],"properties":{"label":{"type":"string","example":"Try CSV export","isRequired":true,"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.1.cta.label","typeLabel":"string"},"url":{"type":"string","format":"uri","description":"Must use http:// or https://.","example":"https://app.example.com/exports","isRequired":true,"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.1.cta.url","typeLabel":"string\u003curi>"}},"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.1.cta","typeLabel":"object"}},"isRequired":true,"uniqueKey":"oneOf.1.variants.items.[INDEX].message.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"oneOf.1.variants.items.[INDEX].message","typeLabel":"object"},"name":{"type":"string","maxLength":40,"description":"Defaults to A, B, C… by position.","example":"A","uniqueKey":"oneOf.1.variants.items.[INDEX].name","typeLabel":"string"},"weight":{"type":"integer","minimum":0,"maximum":100,"default":1,"description":"Relative assignment weight. 0 retires the variant (it is never assigned).","uniqueKey":"oneOf.1.variants.items.[INDEX].weight","typeLabel":"integer"},"isControl":{"type":"boolean","description":"At most one control per campaign; defaults to the first variant.","uniqueKey":"oneOf.1.variants.items.[INDEX].isControl","typeLabel":"boolean"}},"uniqueKey":"oneOf.1.variants.items.[INDEX]","typeLabel":"object"},"description":"Weighted variants for an A/B test (at most one control, at least one positive weight). Mutually exclusive with `message`.","isRequired":true,"uniqueKey":"oneOf.1.variants","typeLabel":"object[]"},"channel":{"type":"string","enum":["web_inapp","email","push"],"default":"web_inapp","description":"Delivery channel. Email content uses subject, previewText, Markdown body, and an optional CTA.","uniqueKey":"oneOf.1.channel","typeLabel":"enum\u003cstring>"},"message":{"oneOf":[{"type":"object","description":"Single-variant shorthand: creates one variant named \"A\". Mutually exclusive with `variants`.","required":["presentation"],"properties":{"presentation":{"type":"string","enum":["toast","modal"],"description":"How the built-in renderer presents the message; media is independent content. `toast` is the compact bottom-right card, `modal` the centered announcement over a full-screen backdrop.","example":"toast","isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.0.presentation","typeLabel":"enum\u003cstring>"},"title":{"type":"string","maxLength":120,"example":"CSV export is here 📊","uniqueKey":"oneOf.1.message.oneOf.0.title","typeLabel":"string"},"body":{"type":"string","maxLength":600,"example":"Export any table to CSV from the toolbar.","uniqueKey":"oneOf.1.message.oneOf.0.body","typeLabel":"string"},"cta":{"type":"object","required":["label"],"properties":{"label":{"type":"string","example":"Try it","isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.0.cta.label","typeLabel":"string"},"destination":{"type":"object","required":["kind","url"],"additionalProperties":false,"properties":{"kind":{"type":"string","enum":["website","app"],"isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.0.cta.destination.kind","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"HTTPS website URL, or an app URL whose scheme is configured in the client.","example":"https://app.example.com/exports","isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.0.cta.destination.url","typeLabel":"string"}},"uniqueKey":"oneOf.1.message.oneOf.0.cta.destination","typeLabel":"object"}},"uniqueKey":"oneOf.1.message.oneOf.0.cta","typeLabel":"object"},"media":{"oneOf":[{"type":"object","description":"Optional image for a message (PNG, JPEG, WebP, or animated GIF). Media is content, not presentation: a toast shows it as a compact thumbnail and a modal shows it as the immersive visual. Exactly one of `alt` or `decorative: true` is required.","required":["url","alt"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https?://","description":"A managed campaign media URL returned by POST /api/v1/campaign-media for this project. External, data:, and other projects' URLs are rejected.","example":"https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png","isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.0.media.oneOf.0.url","typeLabel":"string\u003curi>"},"alt":{"type":"string","maxLength":300,"description":"What the image shows, for assistive technology. Required unless `decorative` is true.","example":"Screenshot of the new analytics dashboard","isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.0.media.oneOf.0.alt","typeLabel":"string"},"decorative":{"type":"boolean","description":"Mark the image as purely decorative instead of providing alt text. Mutually exclusive with `alt`.","const":false,"uniqueKey":"oneOf.1.message.oneOf.0.media.oneOf.0.decorative","typeLabel":"boolean"}},"uniqueKey":"oneOf.1.message.oneOf.0.media.oneOf.0","typeLabel":"object"},{"type":"object","description":"Optional image for a message (PNG, JPEG, WebP, or animated GIF). Media is content, not presentation: a toast shows it as a compact thumbnail and a modal shows it as the immersive visual. Exactly one of `alt` or `decorative: true` is required.","required":["url","decorative"],"properties":{"decorative":{"type":"boolean","description":"Mark the image as purely decorative instead of providing alt text. Mutually exclusive with `alt`.","const":true,"isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.0.media.oneOf.1.decorative","typeLabel":"boolean"},"url":{"type":"string","format":"uri","pattern":"^https?://","description":"A managed campaign media URL returned by POST /api/v1/campaign-media for this project. External, data:, and other projects' URLs are rejected.","example":"https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png","isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.0.media.oneOf.1.url","typeLabel":"string\u003curi>"},"alt":{"type":"string","maxLength":300,"description":"What the image shows, for assistive technology. Required unless `decorative` is true.","example":"Screenshot of the new analytics dashboard","uniqueKey":"oneOf.1.message.oneOf.0.media.oneOf.1.alt","typeLabel":"string"}},"uniqueKey":"oneOf.1.message.oneOf.0.media.oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.message.oneOf.0.media","typeLabel":"object"}},"uniqueKey":"oneOf.1.message.oneOf.0","typeLabel":"object"},{"type":"object","description":"Single-variant shorthand: creates one variant named \"A\". Mutually exclusive with `variants`.","required":["subject","body"],"properties":{"subject":{"type":"string","maxLength":200,"example":"CSV export is ready","isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.1.subject","typeLabel":"string"},"body":{"type":"string","maxLength":50000,"description":"Markdown email body.","example":"# CSV export is here\\n\\nDownload any table from the toolbar.","isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.1.body","typeLabel":"string"},"previewText":{"type":"string","maxLength":200,"example":"Download any table in one click","uniqueKey":"oneOf.1.message.oneOf.1.previewText","typeLabel":"string"},"cta":{"type":"object","required":["label","url"],"properties":{"label":{"type":"string","example":"Try CSV export","isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.1.cta.label","typeLabel":"string"},"url":{"type":"string","format":"uri","description":"Must use http:// or https://.","example":"https://app.example.com/exports","isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.1.cta.url","typeLabel":"string\u003curi>"}},"uniqueKey":"oneOf.1.message.oneOf.1.cta","typeLabel":"object"}},"uniqueKey":"oneOf.1.message.oneOf.1","typeLabel":"object"},{"type":"object","required":["title","body","destination"],"properties":{"title":{"type":"string","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.2.title","typeLabel":"string"},"body":{"type":"string","minLength":1,"maxLength":2048,"isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.2.body","typeLabel":"string"},"destination":{"type":"object","properties":{"kind":{"type":"string","enum":["website","app"],"isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.2.destination.kind","typeLabel":"enum\u003cstring>"},"url":{"type":"string","minLength":1,"maxLength":2048,"isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.2.destination.url","typeLabel":"string"}},"required":["kind","url"],"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.2.destination","typeLabel":"object"},"data":{"type":"object","additionalProperties":{"type":"string","minLength":1,"maxLength":1024,"uniqueKey":"oneOf.1.message.oneOf.2.data.additionalProperties","typeLabel":"string"},"maxProperties":32,"uniqueKey":"oneOf.1.message.oneOf.2.data","typeLabel":"object"},"image":{"type":"string","minLength":1,"maxLength":2048,"uniqueKey":"oneOf.1.message.oneOf.2.image","typeLabel":"string"},"actions":{"type":"array","maxItems":4,"items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z0-9_-]+$","isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.2.actions.items.[INDEX].id","typeLabel":"string"},"title":{"type":"string","minLength":1,"maxLength":64,"isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.2.actions.items.[INDEX].title","typeLabel":"string"}},"required":["id","title"],"additionalProperties":false,"uniqueKey":"oneOf.1.message.oneOf.2.actions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.1.message.oneOf.2.actions","typeLabel":"object[]"},"ios":{"type":"object","properties":{"subtitle":{"type":"string","minLength":1,"maxLength":256,"uniqueKey":"oneOf.1.message.oneOf.2.ios.subtitle","typeLabel":"string"},"sound":{"type":"string","minLength":1,"maxLength":128,"uniqueKey":"oneOf.1.message.oneOf.2.ios.sound","typeLabel":"string"},"badge":{"type":"integer","minimum":0,"maximum":9007199254740991,"uniqueKey":"oneOf.1.message.oneOf.2.ios.badge","typeLabel":"integer"},"categoryId":{"type":"string","minLength":1,"maxLength":128,"uniqueKey":"oneOf.1.message.oneOf.2.ios.categoryId","typeLabel":"string"}},"required":[],"additionalProperties":false,"uniqueKey":"oneOf.1.message.oneOf.2.ios","typeLabel":"object"},"android":{"type":"object","properties":{"channelId":{"type":"string","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"oneOf.1.message.oneOf.2.android.channelId","typeLabel":"string"},"sound":{"type":"string","minLength":1,"maxLength":128,"uniqueKey":"oneOf.1.message.oneOf.2.android.sound","typeLabel":"string"}},"required":["channelId"],"additionalProperties":false,"uniqueKey":"oneOf.1.message.oneOf.2.android","typeLabel":"object"}},"additionalProperties":false,"uniqueKey":"oneOf.1.message.oneOf.2","typeLabel":"object"}],"uniqueKey":"oneOf.1.message","typeLabel":"object"},"audience":{"oneOf":[{"type":"null","description":"Canonical audience union. `null` or `{ \"kind\": \"all\" }` targets everyone. `{ \"kind\": \"expression\", \"expression\": { … }, \"reason\": \"…\" }` authors an inline audience stored as an immutable audience version. `{ \"kind\": \"segment\", \"segment\": \"id-or-key\", \"version\": n? }` pins a saved segment version (omitted version = current, resolved atomically; archived segments are refused). Check expressions first with POST /api/v1/audiences/check. Mutually exclusive with the deprecated `targeting` field.","uniqueKey":"oneOf.1.audience.oneOf.0","typeLabel":"null"},{"type":"object","description":"Canonical audience union. `null` or `{ \"kind\": \"all\" }` targets everyone. `{ \"kind\": \"expression\", \"expression\": { … }, \"reason\": \"…\" }` authors an inline audience stored as an immutable audience version. `{ \"kind\": \"segment\", \"segment\": \"id-or-key\", \"version\": n? }` pins a saved segment version (omitted version = current, resolved atomically; archived segments are refused). Check expressions first with POST /api/v1/audiences/check. Mutually exclusive with the deprecated `targeting` field.","required":["kind"],"properties":{"kind":{"const":"all","isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.1.kind","typeLabel":"any"},"reason":{"type":"string","maxLength":500,"uniqueKey":"oneOf.1.audience.oneOf.1.reason","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.1.audience.oneOf.1","typeLabel":"object"},{"type":"object","description":"Canonical audience union. `null` or `{ \"kind\": \"all\" }` targets everyone. `{ \"kind\": \"expression\", \"expression\": { … }, \"reason\": \"…\" }` authors an inline audience stored as an immutable audience version. `{ \"kind\": \"segment\", \"segment\": \"id-or-key\", \"version\": n? }` pins a saved segment version (omitted version = current, resolved atomically; archived segments are refused). Check expressions first with POST /api/v1/audiences/check. Mutually exclusive with the deprecated `targeting` field.","required":["kind","expression"],"properties":{"kind":{"const":"expression","isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.kind","typeLabel":"any"},"expression":{"type":"object","required":["version","root"],"properties":{"version":{"type":"integer","enum":[1],"description":"Audience expression schema version.","isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.version","typeLabel":"enum\u003cinteger>"},"root":{"oneOf":[{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","children"],"properties":{"kind":{"const":"all","isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.0.kind","typeLabel":"any"},"children":{"type":"array","minItems":1,"maxItems":16,"items":{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01"},"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.0.children","typeLabel":"array"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.0","typeLabel":"object"},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","children"],"properties":{"kind":{"const":"any","isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.1.kind","typeLabel":"any"},"children":{"type":"array","minItems":1,"maxItems":16,"items":{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01"},"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.1.children","typeLabel":"array"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.1","typeLabel":"object"},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","child"],"properties":{"kind":{"const":"not","isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.2.kind","typeLabel":"any"},"child":{"oneOf":[{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01","isRequired":true}],"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.2.child","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.2","typeLabel":"object"},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","field","op"],"properties":{"kind":{"const":"field","isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.3.kind","typeLabel":"any"},"field":{"oneOf":[{"type":"object","description":"Structured, unambiguous field reference.","required":["kind","key"],"properties":{"kind":{"const":"trait","isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.0.kind","typeLabel":"any"},"key":{"type":"string","maxLength":128,"description":"Literal top-level trait key.","isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.0.key","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.0","typeLabel":"object"},{"type":"object","description":"Structured, unambiguous field reference.","required":["kind","field"],"properties":{"kind":{"const":"user","isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.1.kind","typeLabel":"any"},"field":{"type":"string","enum":["firstSeenAt","lastSeenAt"],"description":"Lifecycle field (datetime).","isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.1.field","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.1","typeLabel":"object"},{"type":"object","description":"Structured, unambiguous field reference.","required":["kind","key"],"properties":{"kind":{"const":"event_property","isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.2.kind","typeLabel":"any"},"key":{"type":"string","maxLength":128,"description":"Literal top-level event property key. Only valid inside an event node's where conditions.","isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.2.key","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.3.field.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.3.field","typeLabel":"object"},"op":{"type":"string","enum":["eq","neq","in","not_in","contains","starts_with","ends_with","gt","gte","lt","lte","exists","not_exists","before","after","within_last","not_within_last"],"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.3.op","typeLabel":"enum\u003cstring>"},"value":{"description":"Required for every operator except exists/not_exists (which reject it). Typed per operator: eq/neq take a string/number/boolean; in/not_in a non-empty array (≤ 50) of all strings or all numbers; contains/starts_with/ends_with a string; gt/gte/lt/lte a number; before/after an ISO-8601 date-time with explicit offset; within_last/not_within_last an AudienceWindow.","uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.3.value","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.3","typeLabel":"object"},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","event"],"properties":{"kind":{"const":"event","isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.4.kind","typeLabel":"any"},"event":{"type":"string","maxLength":80,"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.4.event","typeLabel":"string"},"count":{"type":"object","required":["op","value"],"additionalProperties":false,"properties":{"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"],"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.4.count.op","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","minimum":0,"maximum":10000,"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.4.count.value","typeLabel":"integer"}},"description":"Occurrence-count comparison; defaults to at-least-once ({ op: gte, value: 1 }).","uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.4.count","typeLabel":"object"},"window":{"type":"object","required":["amount","unit"],"properties":{"amount":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.4.window.amount","typeLabel":"integer"},"unit":{"type":"string","enum":["minutes","hours","days"],"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.4.window.unit","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"description":"Relative time window measured back from the evaluation instant (evaluatedAt).","uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.4.window","typeLabel":"object"},"where":{"type":"array","minItems":1,"maxItems":8,"items":{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01"},"description":"field nodes on event_property references, ANDed per occurrence.","uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.4.where","typeLabel":"array"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression.root","typeLabel":"object"}},"additionalProperties":false,"description":"Versioned, strictly validated audience rule. Example: `{ \"version\": 1, \"root\": { \"kind\": \"all\", \"children\": [ { \"kind\": \"field\", \"field\": { \"kind\": \"trait\", \"key\": \"plan\" }, \"op\": \"eq\", \"value\": \"free\" }, { \"kind\": \"not\", \"child\": { \"kind\": \"event\", \"event\": \"used_csv_export\" } } ] } }`","example":{"version":1,"root":{"kind":"all","children":[{"kind":"field","field":{"kind":"trait","key":"plan"},"op":"eq","value":"free"},{"kind":"not","child":{"kind":"event","event":"used_csv_export"}}]}},"isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.2.expression","typeLabel":"object"},"reason":{"type":"string","maxLength":500,"description":"Concise note on why this audience was chosen or revised; stored on the immutable audience version.","uniqueKey":"oneOf.1.audience.oneOf.2.reason","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.1.audience.oneOf.2","typeLabel":"object"},{"type":"object","description":"Canonical audience union. `null` or `{ \"kind\": \"all\" }` targets everyone. `{ \"kind\": \"expression\", \"expression\": { … }, \"reason\": \"…\" }` authors an inline audience stored as an immutable audience version. `{ \"kind\": \"segment\", \"segment\": \"id-or-key\", \"version\": n? }` pins a saved segment version (omitted version = current, resolved atomically; archived segments are refused). Check expressions first with POST /api/v1/audiences/check. Mutually exclusive with the deprecated `targeting` field.","required":["kind","segment"],"properties":{"kind":{"const":"segment","isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.3.kind","typeLabel":"any"},"segment":{"type":"string","description":"Segment id (seg_…) or machine key.","isRequired":true,"uniqueKey":"oneOf.1.audience.oneOf.3.segment","typeLabel":"string"},"version":{"type":"integer","minimum":1,"description":"Pin a specific immutable version; omitted = the segment's current version, resolved atomically at write time.","uniqueKey":"oneOf.1.audience.oneOf.3.version","typeLabel":"integer"}},"additionalProperties":false,"uniqueKey":"oneOf.1.audience.oneOf.3","typeLabel":"object"}],"uniqueKey":"oneOf.1.audience","typeLabel":"null · object · object · object"},"targeting":{"oneOf":[{"type":"object","description":"Deprecated shorthand for the same audience semantics (strict trait equality + events seen/not_seen, ANDed). Still accepted; normalized into an immutable audience version. Prefer `audience`.","deprecated":true,"properties":{"traits":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"oneOf.1.targeting.oneOf.0.traits.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"oneOf.1.targeting.oneOf.0.traits.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"oneOf.1.targeting.oneOf.0.traits.additionalProperties.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"oneOf.1.targeting.oneOf.0.traits.additionalProperties","typeLabel":"string | number | boolean"},"description":"Trait values the user must match by strict equality.","example":{"plan":"free"},"uniqueKey":"oneOf.1.targeting.oneOf.0.traits","typeLabel":"object"},"events":{"type":"object","properties":{"seen":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.targeting.oneOf.0.events.seen.items.[INDEX]","typeLabel":"string"},"description":"Events the user must have fired at least once.","example":["activated_workspace"],"uniqueKey":"oneOf.1.targeting.oneOf.0.events.seen","typeLabel":"string[]"},"not_seen":{"type":"array","items":{"type":"string","uniqueKey":"oneOf.1.targeting.oneOf.0.events.not_seen.items.[INDEX]","typeLabel":"string"},"description":"Events the user must NOT have fired.","example":["used_csv_export"],"uniqueKey":"oneOf.1.targeting.oneOf.0.events.not_seen","typeLabel":"string[]"}},"uniqueKey":"oneOf.1.targeting.oneOf.0.events","typeLabel":"object"}},"uniqueKey":"oneOf.1.targeting.oneOf.0","typeLabel":"object"},{"type":"null","description":"Deprecated shorthand for the same audience semantics (strict trait equality + events seen/not_seen, ANDed). Still accepted; normalized into an immutable audience version. Prefer `audience`.","deprecated":true,"uniqueKey":"oneOf.1.targeting.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.targeting","typeLabel":"object | null"},"pages":{"type":"array","maxItems":20,"items":{"type":"string","maxLength":256,"example":"/settings/*","uniqueKey":"oneOf.1.pages.items.[INDEX]","typeLabel":"string"},"description":"Web in-app only. Path patterns limiting where the message may render. Email campaigns reject this field.","uniqueKey":"oneOf.1.pages","typeLabel":"string[]"},"goalId":{"oneOf":[{"type":"string","minLength":1,"description":"Link the campaign to a goal in this project (400 if the goal doesn't exist here). Tracked events matching the linked goal's targetEvent automatically resolve the campaign's deliveries to converted once shown. Omit or pass null for no goal — direct communications never need one.","uniqueKey":"oneOf.1.goalId.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"description":"Link the campaign to a goal in this project (400 if the goal doesn't exist here). Tracked events matching the linked goal's targetEvent automatically resolve the campaign's deliveries to converted once shown. Omit or pass null for no goal — direct communications never need one.","uniqueKey":"oneOf.1.goalId.oneOf.1","typeLabel":"null"}],"uniqueKey":"oneOf.1.goalId","typeLabel":"string | null"},"launch":{"type":"boolean","default":false,"description":"Start the campaign instead of creating a draft. Email returns 409 until the project's sending domain is verified and its from address matches.","uniqueKey":"oneOf.1.launch","typeLabel":"boolean"},"deliverFrom":{"oneOf":[{"type":"integer","description":"Requested delivery-window start: epoch milliseconds or ISO-8601 with an explicit timezone offset (e.g. 2026-08-01T09:00:00Z). Nothing is delivered before this instant; combine with `launch: true` to schedule a future start. Must be earlier than `deliverUntil`.","uniqueKey":"oneOf.1.deliverFrom.oneOf.0","typeLabel":"integer"},{"type":"string","description":"Requested delivery-window start: epoch milliseconds or ISO-8601 with an explicit timezone offset (e.g. 2026-08-01T09:00:00Z). Nothing is delivered before this instant; combine with `launch: true` to schedule a future start. Must be earlier than `deliverUntil`.","format":"date-time","uniqueKey":"oneOf.1.deliverFrom.oneOf.1","typeLabel":"string\u003cdate-time>"}],"uniqueKey":"oneOf.1.deliverFrom","typeLabel":"integer | string\u003cdate-time>"},"deliverUntil":{"oneOf":[{"type":"integer","description":"Requested delivery-window end: epoch milliseconds or ISO-8601 with an explicit timezone offset. Must be in the future; delivery stops automatically at exactly this instant.","uniqueKey":"oneOf.1.deliverUntil.oneOf.0","typeLabel":"integer"},{"type":"string","description":"Requested delivery-window end: epoch milliseconds or ISO-8601 with an explicit timezone offset. Must be in the future; delivery stops automatically at exactly this instant.","format":"date-time","uniqueKey":"oneOf.1.deliverUntil.oneOf.1","typeLabel":"string\u003cdate-time>"}],"uniqueKey":"oneOf.1.deliverUntil","typeLabel":"integer | string\u003cdate-time>"},"push":{"type":"object","properties":{"appId":{"type":"string","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"oneOf.1.push.appId","typeLabel":"string"},"selection":{"oneOf":[{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","enum":["last_active","all"],"isRequired":true,"uniqueKey":"oneOf.1.push.selection.oneOf.0.kind","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.push.selection.oneOf.0","typeLabel":"object"},{"type":"object","required":["kind","installationId"],"properties":{"kind":{"type":"string","enum":["specific"],"isRequired":true,"uniqueKey":"oneOf.1.push.selection.oneOf.1.kind","typeLabel":"enum\u003cstring>"},"installationId":{"type":"string","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"oneOf.1.push.selection.oneOf.1.installationId","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"oneOf.1.push.selection.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"oneOf.1.push.selection","typeLabel":"object"},"ttlSeconds":{"type":"integer","minimum":1,"maximum":2419200,"uniqueKey":"oneOf.1.push.ttlSeconds","typeLabel":"integer"},"replacementKey":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"oneOf.1.push.replacementKey","typeLabel":"string"}},"required":["appId","selection"],"additionalProperties":false,"uniqueKey":"oneOf.1.push","typeLabel":"object"},"sourceChanges":{"type":"object","additionalProperties":false,"required":["changes"],"properties":{"changes":{"type":"array","maxItems":100,"items":{"oneOf":[{"type":"object","description":"A writable source change. Inherits the strict source change fields and types; PR input is limited to 250 original SHAs.","required":["sourceId","kind","sha"],"properties":{"sourceId":{"type":"string","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"oneOf.1.sourceChanges.changes.items.[INDEX].oneOf.0.sourceId","typeLabel":"string"},"kind":{"type":"string","const":"commit","isRequired":true,"uniqueKey":"oneOf.1.sourceChanges.changes.items.[INDEX].oneOf.0.kind","typeLabel":"string"},"sha":{"type":"string","pattern":"^[a-f0-9]{40}$","isRequired":true,"uniqueKey":"oneOf.1.sourceChanges.changes.items.[INDEX].oneOf.0.sha","typeLabel":"string"},"shas":{"type":"array","maxItems":250,"uniqueKey":"oneOf.1.sourceChanges.changes.items.[INDEX].oneOf.0.shas","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"oneOf.1.sourceChanges.changes.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"A writable source change. Inherits the strict source change fields and types; PR input is limited to 250 original SHAs.","required":["sourceId","kind","number","shas"],"properties":{"sourceId":{"type":"string","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"oneOf.1.sourceChanges.changes.items.[INDEX].oneOf.1.sourceId","typeLabel":"string"},"kind":{"type":"string","const":"pull_request","isRequired":true,"uniqueKey":"oneOf.1.sourceChanges.changes.items.[INDEX].oneOf.1.kind","typeLabel":"string"},"number":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"oneOf.1.sourceChanges.changes.items.[INDEX].oneOf.1.number","typeLabel":"integer"},"shas":{"type":"array","items":{"type":"string","pattern":"^[a-f0-9]{40}$","uniqueKey":"oneOf.1.sourceChanges.changes.items.[INDEX].oneOf.1.shas.items.[INDEX]","typeLabel":"string"},"maxItems":250,"minItems":1,"isRequired":true,"uniqueKey":"oneOf.1.sourceChanges.changes.items.[INDEX].oneOf.1.shas","typeLabel":"string[]"}},"additionalProperties":false,"uniqueKey":"oneOf.1.sourceChanges.changes.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"oneOf.1.sourceChanges.changes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.sourceChanges.changes","typeLabel":"object[]"}},"description":"Optional prepared source declaration, committed atomically with campaign content. No expectedRevision on create. Empty changes cannot qualify for automatic activation.","uniqueKey":"oneOf.1.sourceChanges","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"Launch: CSV export","message":{"presentation":"toast","title":"CSV export is here 📊","body":"Export any table to CSV from the toolbar.","media":{"url":"https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png","alt":"Screenshot of the new analytics dashboard","decorative":false}},"channel":"web_inapp","variants":[{"message":{"presentation":"toast","title":"CSV export is here 📊","body":"Export any table to CSV from the toolbar.","media":{"url":"https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png","alt":"Screenshot of the new analytics dashboard","decorative":false}},"name":"A","weight":1,"isControl":true}],"audience":{"kind":"all","reason":"\u003cstring>"},"targeting":{"traits":{"plan":"free"},"events":{"seen":["activated_workspace"],"not_seen":["used_csv_export"]}},"pages":["/settings/*"],"goalId":"\u003cstring>","launch":false,"deliverFrom":123,"deliverUntil":123}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"b9e05573-2933-4bde-8afe-c484029263ec":{"description":"The created campaign, including its variant.","content":{"application/json":{"schema":{"type":"object","required":["campaign"],"properties":{"campaign":{"type":"object","required":["variants","sourceChanges","id","name","status","effectiveStatus","channel","goalId","createdBy","createdAt","startedAt","endedAt","deliverFrom","deliverUntil","audience","targeting","pages","stats"],"properties":{"id":{"type":"string","example":"cmp_3ce6dba5-7f36-41f5-9327-d5cc3099ab77","isRequired":true,"uniqueKey":"campaign.id","typeLabel":"string"},"name":{"type":"string","example":"Launch: CSV export","isRequired":true,"uniqueKey":"campaign.name","typeLabel":"string"},"status":{"type":"string","enum":["draft","running","paused","ended"],"description":"Stored lifecycle status.","isRequired":true,"uniqueKey":"campaign.status","typeLabel":"enum\u003cstring>"},"effectiveStatus":{"type":"string","enum":["draft","scheduled","running","paused","expired","ended"],"description":"Lifecycle status refined by the delivery window, always current: `scheduled` = running before `deliverFrom`, `expired` = running/paused at or after `deliverUntil` (expiry outranks paused).","isRequired":true,"uniqueKey":"campaign.effectiveStatus","typeLabel":"enum\u003cstring>"},"channel":{"type":"string","enum":["web_inapp","email","push"],"example":"web_inapp","isRequired":true,"uniqueKey":"campaign.channel","typeLabel":"enum\u003cstring>"},"goalId":{"oneOf":[{"type":"string","description":"The goal this campaign serves, or null. When set, tracked events matching the goal's targetEvent automatically resolve exposed deliveries to converted. Exposure is shownAt for web in-app and deliveredAt for email.","isRequired":true,"uniqueKey":"campaign.goalId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The goal this campaign serves, or null. When set, tracked events matching the goal's targetEvent automatically resolve exposed deliveries to converted. Exposure is shownAt for web in-app and deliveredAt for email.","isRequired":true,"uniqueKey":"campaign.goalId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"campaign.goalId","typeLabel":"string | null"},"createdBy":{"type":"string","description":"Who created the campaign: a dashboard user (`human`), this API (`api`), or the Galinum agent (`agent`).","example":"api","isRequired":true,"uniqueKey":"campaign.createdBy","typeLabel":"string"},"createdAt":{"type":"integer","description":"Epoch milliseconds.","example":1784067764978,"isRequired":true,"uniqueKey":"campaign.createdAt","typeLabel":"integer"},"startedAt":{"oneOf":[{"type":"integer","description":"Epoch milliseconds.","isRequired":true,"uniqueKey":"campaign.startedAt.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Epoch milliseconds.","isRequired":true,"uniqueKey":"campaign.startedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"campaign.startedAt","typeLabel":"integer | null"},"endedAt":{"oneOf":[{"type":"integer","description":"Epoch milliseconds.","isRequired":true,"uniqueKey":"campaign.endedAt.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Epoch milliseconds.","isRequired":true,"uniqueKey":"campaign.endedAt.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"campaign.endedAt","typeLabel":"integer | null"},"deliverFrom":{"oneOf":[{"type":"integer","description":"Requested delivery-window start, epoch milliseconds (null = starts when launched).","isRequired":true,"uniqueKey":"campaign.deliverFrom.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Requested delivery-window start, epoch milliseconds (null = starts when launched).","isRequired":true,"uniqueKey":"campaign.deliverFrom.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"campaign.deliverFrom","typeLabel":"integer | null"},"deliverUntil":{"oneOf":[{"type":"integer","description":"Requested delivery-window end, epoch milliseconds (null = delivers until ended).","isRequired":true,"uniqueKey":"campaign.deliverUntil.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Requested delivery-window end, epoch milliseconds (null = delivers until ended).","isRequired":true,"uniqueKey":"campaign.deliverUntil.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"campaign.deliverUntil","typeLabel":"integer | null"},"audience":{"oneOf":[{"type":"object","description":"The campaign's effective audience: everyone (`all`), a pinned inline expression, a pinned saved segment version (`segment`), or `invalid` (fail-closed).","required":["kind"],"properties":{"kind":{"const":"all","isRequired":true,"uniqueKey":"campaign.audience.oneOf.0.kind","typeLabel":"any"}},"isRequired":true,"uniqueKey":"campaign.audience.oneOf.0","typeLabel":"object"},{"type":"object","description":"The campaign's effective audience: everyone (`all`), a pinned inline expression, a pinned saved segment version (`segment`), or `invalid` (fail-closed).","required":["kind","audienceVersionId","schemaVersion","expression","expressionHash","summary","reason","legacy"],"properties":{"kind":{"const":"expression","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.kind","typeLabel":"any"},"audienceVersionId":{"oneOf":[{"type":"string","description":"The pinned immutable audience version (aud_…). Null only for campaigns still stored with the deprecated legacy targeting shape.","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.audienceVersionId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The pinned immutable audience version (aud_…). Null only for campaigns still stored with the deprecated legacy targeting shape.","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.audienceVersionId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.audienceVersionId","typeLabel":"string | null"},"schemaVersion":{"type":"integer","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.schemaVersion","typeLabel":"integer"},"expression":{"type":"object","required":["version","root"],"properties":{"version":{"type":"integer","enum":[1],"description":"Audience expression schema version.","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.version","typeLabel":"enum\u003cinteger>"},"root":{"oneOf":[{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","children"],"properties":{"kind":{"const":"all","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.0.kind","typeLabel":"any"},"children":{"type":"array","minItems":1,"maxItems":16,"items":{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01"},"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.0.children","typeLabel":"array"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.0","typeLabel":"object"},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","children"],"properties":{"kind":{"const":"any","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.1.kind","typeLabel":"any"},"children":{"type":"array","minItems":1,"maxItems":16,"items":{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01"},"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.1.children","typeLabel":"array"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.1","typeLabel":"object"},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","child"],"properties":{"kind":{"const":"not","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.2.kind","typeLabel":"any"},"child":{"oneOf":[{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01","isRequired":true}],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.2.child","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.2","typeLabel":"object"},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","field","op"],"properties":{"kind":{"const":"field","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.3.kind","typeLabel":"any"},"field":{"oneOf":[{"type":"object","description":"Structured, unambiguous field reference.","required":["kind","key"],"properties":{"kind":{"const":"trait","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.3.field.oneOf.0.kind","typeLabel":"any"},"key":{"type":"string","maxLength":128,"description":"Literal top-level trait key.","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.3.field.oneOf.0.key","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.3.field.oneOf.0","typeLabel":"object"},{"type":"object","description":"Structured, unambiguous field reference.","required":["kind","field"],"properties":{"kind":{"const":"user","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.3.field.oneOf.1.kind","typeLabel":"any"},"field":{"type":"string","enum":["firstSeenAt","lastSeenAt"],"description":"Lifecycle field (datetime).","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.3.field.oneOf.1.field","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.3.field.oneOf.1","typeLabel":"object"},{"type":"object","description":"Structured, unambiguous field reference.","required":["kind","key"],"properties":{"kind":{"const":"event_property","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.3.field.oneOf.2.kind","typeLabel":"any"},"key":{"type":"string","maxLength":128,"description":"Literal top-level event property key. Only valid inside an event node's where conditions.","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.3.field.oneOf.2.key","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.3.field.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.3.field","typeLabel":"object"},"op":{"type":"string","enum":["eq","neq","in","not_in","contains","starts_with","ends_with","gt","gte","lt","lte","exists","not_exists","before","after","within_last","not_within_last"],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.3.op","typeLabel":"enum\u003cstring>"},"value":{"description":"Required for every operator except exists/not_exists (which reject it). Typed per operator: eq/neq take a string/number/boolean; in/not_in a non-empty array (≤ 50) of all strings or all numbers; contains/starts_with/ends_with a string; gt/gte/lt/lte a number; before/after an ISO-8601 date-time with explicit offset; within_last/not_within_last an AudienceWindow.","uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.3.value","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.3","typeLabel":"object"},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","event"],"properties":{"kind":{"const":"event","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.4.kind","typeLabel":"any"},"event":{"type":"string","maxLength":80,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.4.event","typeLabel":"string"},"count":{"type":"object","required":["op","value"],"additionalProperties":false,"properties":{"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.4.count.op","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","minimum":0,"maximum":10000,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.4.count.value","typeLabel":"integer"}},"description":"Occurrence-count comparison; defaults to at-least-once ({ op: gte, value: 1 }).","uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.4.count","typeLabel":"object"},"window":{"type":"object","required":["amount","unit"],"properties":{"amount":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.4.window.amount","typeLabel":"integer"},"unit":{"type":"string","enum":["minutes","hours","days"],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.4.window.unit","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"description":"Relative time window measured back from the evaluation instant (evaluatedAt).","uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.4.window","typeLabel":"object"},"where":{"type":"array","minItems":1,"maxItems":8,"items":{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01"},"description":"field nodes on event_property references, ANDed per occurrence.","uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.4.where","typeLabel":"array"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression.root","typeLabel":"object"}},"additionalProperties":false,"description":"The exact canonical expression used.","example":{"version":1,"root":{"kind":"all","children":[{"kind":"field","field":{"kind":"trait","key":"plan"},"op":"eq","value":"free"},{"kind":"not","child":{"kind":"event","event":"used_csv_export"}}]}},"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expression","typeLabel":"object"},"expressionHash":{"type":"string","description":"sha256 of the canonical expression.","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.expressionHash","typeLabel":"string"},"summary":{"type":"string","description":"Deterministically derived readable summary.","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.summary","typeLabel":"string"},"reason":{"oneOf":[{"type":"string","description":"Why this audience version was created.","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.reason.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why this audience version was created.","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.reason","typeLabel":"string | null"},"legacy":{"type":"boolean","description":"True when derived from a stored legacy targeting shape rather than a pinned audience version.","isRequired":true,"uniqueKey":"campaign.audience.oneOf.1.legacy","typeLabel":"boolean"}},"isRequired":true,"uniqueKey":"campaign.audience.oneOf.1","typeLabel":"object"},{"type":"object","description":"The campaign's effective audience: everyone (`all`), a pinned inline expression, a pinned saved segment version (`segment`), or `invalid` (fail-closed).","required":["kind","audienceVersionId"],"properties":{"kind":{"const":"invalid","isRequired":true,"uniqueKey":"campaign.audience.oneOf.2.kind","typeLabel":"any"},"audienceVersionId":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"campaign.audience.oneOf.2.audienceVersionId.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"campaign.audience.oneOf.2.audienceVersionId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.2.audienceVersionId","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"campaign.audience.oneOf.2","typeLabel":"object"},{"type":"object","description":"The campaign's effective audience: everyone (`all`), a pinned inline expression, a pinned saved segment version (`segment`), or `invalid` (fail-closed).","required":["kind","audienceVersionId","segmentId","segmentKey","segmentVersion","schemaVersion","expression","expressionHash","summary","reason"],"properties":{"kind":{"const":"segment","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.kind","typeLabel":"any"},"audienceVersionId":{"type":"string","description":"The pinned immutable audience version.","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.audienceVersionId","typeLabel":"string"},"segmentId":{"type":"string","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.segmentId","typeLabel":"string"},"segmentKey":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.segmentKey.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.segmentKey.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.segmentKey","typeLabel":"string | null"},"segmentVersion":{"type":"integer","description":"The exact pinned version — later segment revisions never change it.","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.segmentVersion","typeLabel":"integer"},"schemaVersion":{"type":"integer","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.schemaVersion","typeLabel":"integer"},"expression":{"type":"object","required":["version","root"],"properties":{"version":{"type":"integer","enum":[1],"description":"Audience expression schema version.","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.version","typeLabel":"enum\u003cinteger>"},"root":{"oneOf":[{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","children"],"properties":{"kind":{"const":"all","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.0.kind","typeLabel":"any"},"children":{"type":"array","minItems":1,"maxItems":16,"items":{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01"},"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.0.children","typeLabel":"array"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.0","typeLabel":"object"},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","children"],"properties":{"kind":{"const":"any","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.1.kind","typeLabel":"any"},"children":{"type":"array","minItems":1,"maxItems":16,"items":{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01"},"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.1.children","typeLabel":"array"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.1","typeLabel":"object"},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","child"],"properties":{"kind":{"const":"not","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.2.kind","typeLabel":"any"},"child":{"oneOf":[{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01","isRequired":true}],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.2.child","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.2","typeLabel":"object"},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","field","op"],"properties":{"kind":{"const":"field","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.3.kind","typeLabel":"any"},"field":{"oneOf":[{"type":"object","description":"Structured, unambiguous field reference.","required":["kind","key"],"properties":{"kind":{"const":"trait","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.3.field.oneOf.0.kind","typeLabel":"any"},"key":{"type":"string","maxLength":128,"description":"Literal top-level trait key.","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.3.field.oneOf.0.key","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.3.field.oneOf.0","typeLabel":"object"},{"type":"object","description":"Structured, unambiguous field reference.","required":["kind","field"],"properties":{"kind":{"const":"user","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.3.field.oneOf.1.kind","typeLabel":"any"},"field":{"type":"string","enum":["firstSeenAt","lastSeenAt"],"description":"Lifecycle field (datetime).","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.3.field.oneOf.1.field","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.3.field.oneOf.1","typeLabel":"object"},{"type":"object","description":"Structured, unambiguous field reference.","required":["kind","key"],"properties":{"kind":{"const":"event_property","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.3.field.oneOf.2.kind","typeLabel":"any"},"key":{"type":"string","maxLength":128,"description":"Literal top-level event property key. Only valid inside an event node's where conditions.","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.3.field.oneOf.2.key","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.3.field.oneOf.2","typeLabel":"object"}],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.3.field","typeLabel":"object"},"op":{"type":"string","enum":["eq","neq","in","not_in","contains","starts_with","ends_with","gt","gte","lt","lte","exists","not_exists","before","after","within_last","not_within_last"],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.3.op","typeLabel":"enum\u003cstring>"},"value":{"description":"Required for every operator except exists/not_exists (which reject it). Typed per operator: eq/neq take a string/number/boolean; in/not_in a non-empty array (≤ 50) of all strings or all numbers; contains/starts_with/ends_with a string; gt/gte/lt/lte a number; before/after an ISO-8601 date-time with explicit offset; within_last/not_within_last an AudienceWindow.","uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.3.value","typeLabel":"any"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.3","typeLabel":"object"},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","event"],"properties":{"kind":{"const":"event","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.4.kind","typeLabel":"any"},"event":{"type":"string","maxLength":80,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.4.event","typeLabel":"string"},"count":{"type":"object","required":["op","value"],"additionalProperties":false,"properties":{"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.4.count.op","typeLabel":"enum\u003cstring>"},"value":{"type":"integer","minimum":0,"maximum":10000,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.4.count.value","typeLabel":"integer"}},"description":"Occurrence-count comparison; defaults to at-least-once ({ op: gte, value: 1 }).","uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.4.count","typeLabel":"object"},"window":{"type":"object","required":["amount","unit"],"properties":{"amount":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.4.window.amount","typeLabel":"integer"},"unit":{"type":"string","enum":["minutes","hours","days"],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.4.window.unit","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"description":"Relative time window measured back from the evaluation instant (evaluatedAt).","uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.4.window","typeLabel":"object"},"where":{"type":"array","minItems":1,"maxItems":8,"items":{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01"},"description":"field nodes on event_property references, ANDed per occurrence.","uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.4.where","typeLabel":"array"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root.oneOf.4","typeLabel":"object"}],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression.root","typeLabel":"object"}},"additionalProperties":false,"description":"The exact expression in effect.","example":{"version":1,"root":{"kind":"all","children":[{"kind":"field","field":{"kind":"trait","key":"plan"},"op":"eq","value":"free"},{"kind":"not","child":{"kind":"event","event":"used_csv_export"}}]}},"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expression","typeLabel":"object"},"expressionHash":{"type":"string","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.expressionHash","typeLabel":"string"},"summary":{"type":"string","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.summary","typeLabel":"string"},"reason":{"oneOf":[{"type":"string","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.reason.oneOf.0","typeLabel":"string"},{"type":"null","isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.reason.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3.reason","typeLabel":"string | null"}},"isRequired":true,"uniqueKey":"campaign.audience.oneOf.3","typeLabel":"object"}],"isRequired":true,"uniqueKey":"campaign.audience","typeLabel":"object"},"targeting":{"oneOf":[{"type":"object","description":"Deprecated legacy targeting shape, present only for campaigns still stored with it (null otherwise). Read `audience` instead.","deprecated":true,"properties":{"traits":{"type":"object","additionalProperties":{"oneOf":[{"type":"string","uniqueKey":"campaign.targeting.oneOf.0.traits.additionalProperties.oneOf.0","typeLabel":"string"},{"type":"number","uniqueKey":"campaign.targeting.oneOf.0.traits.additionalProperties.oneOf.1","typeLabel":"number"},{"type":"boolean","uniqueKey":"campaign.targeting.oneOf.0.traits.additionalProperties.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"campaign.targeting.oneOf.0.traits.additionalProperties","typeLabel":"string | number | boolean"},"description":"Trait values the user must match by strict equality.","example":{"plan":"free"},"uniqueKey":"campaign.targeting.oneOf.0.traits","typeLabel":"object"},"events":{"type":"object","properties":{"seen":{"type":"array","items":{"type":"string","uniqueKey":"campaign.targeting.oneOf.0.events.seen.items.[INDEX]","typeLabel":"string"},"description":"Events the user must have fired at least once.","example":["activated_workspace"],"uniqueKey":"campaign.targeting.oneOf.0.events.seen","typeLabel":"string[]"},"not_seen":{"type":"array","items":{"type":"string","uniqueKey":"campaign.targeting.oneOf.0.events.not_seen.items.[INDEX]","typeLabel":"string"},"description":"Events the user must NOT have fired.","example":["used_csv_export"],"uniqueKey":"campaign.targeting.oneOf.0.events.not_seen","typeLabel":"string[]"}},"uniqueKey":"campaign.targeting.oneOf.0.events","typeLabel":"object"}},"isRequired":true,"uniqueKey":"campaign.targeting.oneOf.0","typeLabel":"object"},{"type":"null","description":"Deprecated legacy targeting shape, present only for campaigns still stored with it (null otherwise). Read `audience` instead.","deprecated":true,"isRequired":true,"uniqueKey":"campaign.targeting.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"campaign.targeting","typeLabel":"object | null"},"pages":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"campaign.pages.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Web in-app path patterns, or null. Email campaigns always return null.","example":["/dashboard","/settings/*"],"isRequired":true,"uniqueKey":"campaign.pages.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Web in-app path patterns, or null. Email campaigns always return null.","example":["/dashboard","/settings/*"],"isRequired":true,"uniqueKey":"campaign.pages.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"campaign.pages","typeLabel":"string[] | null"},"stats":{"type":"object","required":["sent","frequencyCapped","delivered","shown","opened","clicked","dismissed","bounced","complained","unsubscribed","converted"],"properties":{"sent":{"type":"integer","isRequired":true,"uniqueKey":"campaign.stats.sent","typeLabel":"integer"},"frequencyCapped":{"type":"integer","description":"Campaign-email recipients skipped by the project-wide rolling 24-hour frequency limit.","isRequired":true,"uniqueKey":"campaign.stats.frequencyCapped","typeLabel":"integer"},"delivered":{"type":"integer","isRequired":true,"uniqueKey":"campaign.stats.delivered","typeLabel":"integer"},"shown":{"type":"integer","isRequired":true,"uniqueKey":"campaign.stats.shown","typeLabel":"integer"},"opened":{"type":"integer","isRequired":true,"uniqueKey":"campaign.stats.opened","typeLabel":"integer"},"clicked":{"type":"integer","isRequired":true,"uniqueKey":"campaign.stats.clicked","typeLabel":"integer"},"dismissed":{"type":"integer","isRequired":true,"uniqueKey":"campaign.stats.dismissed","typeLabel":"integer"},"bounced":{"type":"integer","isRequired":true,"uniqueKey":"campaign.stats.bounced","typeLabel":"integer"},"complained":{"type":"integer","isRequired":true,"uniqueKey":"campaign.stats.complained","typeLabel":"integer"},"unsubscribed":{"type":"integer","isRequired":true,"uniqueKey":"campaign.stats.unsubscribed","typeLabel":"integer"},"converted":{"type":"integer","isRequired":true,"uniqueKey":"campaign.stats.converted","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"campaign.stats","typeLabel":"object"},"variants":{"type":"array","items":{"type":"object","required":["id","name","weight","isControl","content","stats"],"properties":{"id":{"type":"string","example":"var_37705a49-52c6-4577-aeed-665099a1e13d","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","example":"A","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].name","typeLabel":"string"},"weight":{"type":"number","example":1,"isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].weight","typeLabel":"number"},"isControl":{"type":"boolean","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].isControl","typeLabel":"boolean"},"content":{"oneOf":[{"type":"object","description":"The variant's stored message content. Same shape as the write schema, except `presentation` is absent on campaigns authored before it existed — reads return stored content verbatim. Delivery resolves one for those (media → `modal`, no media → `toast`).","properties":{"presentation":{"type":"string","enum":["toast","modal"],"description":"How the built-in renderer presents the message; media is independent content. `toast` is the compact bottom-right card, `modal` the centered announcement over a full-screen backdrop.","example":"toast","uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.presentation","typeLabel":"enum\u003cstring>"},"title":{"type":"string","maxLength":120,"example":"CSV export is here 📊","uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.title","typeLabel":"string"},"body":{"type":"string","maxLength":600,"example":"Export any table to CSV from the toolbar.","uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.body","typeLabel":"string"},"cta":{"type":"object","required":["label"],"properties":{"label":{"type":"string","example":"Try it","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.cta.label","typeLabel":"string"},"destination":{"type":"object","required":["kind","url"],"additionalProperties":false,"properties":{"kind":{"type":"string","enum":["website","app"],"isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.cta.destination.kind","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"HTTPS website URL, or an app URL whose scheme is configured in the client.","example":"https://app.example.com/exports","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.cta.destination.url","typeLabel":"string"}},"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.cta.destination","typeLabel":"object"}},"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.cta","typeLabel":"object"},"media":{"oneOf":[{"type":"object","description":"Optional image for a message (PNG, JPEG, WebP, or animated GIF). Media is content, not presentation: a toast shows it as a compact thumbnail and a modal shows it as the immersive visual. Exactly one of `alt` or `decorative: true` is required.","required":["url","alt"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https?://","description":"A managed campaign media URL returned by POST /api/v1/campaign-media for this project. External, data:, and other projects' URLs are rejected.","example":"https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.media.oneOf.0.url","typeLabel":"string\u003curi>"},"alt":{"type":"string","maxLength":300,"description":"What the image shows, for assistive technology. Required unless `decorative` is true.","example":"Screenshot of the new analytics dashboard","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.media.oneOf.0.alt","typeLabel":"string"},"decorative":{"type":"boolean","description":"Mark the image as purely decorative instead of providing alt text. Mutually exclusive with `alt`.","const":false,"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.media.oneOf.0.decorative","typeLabel":"boolean"}},"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.media.oneOf.0","typeLabel":"object"},{"type":"object","description":"Optional image for a message (PNG, JPEG, WebP, or animated GIF). Media is content, not presentation: a toast shows it as a compact thumbnail and a modal shows it as the immersive visual. Exactly one of `alt` or `decorative: true` is required.","required":["url","decorative"],"properties":{"decorative":{"type":"boolean","description":"Mark the image as purely decorative instead of providing alt text. Mutually exclusive with `alt`.","const":true,"isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.media.oneOf.1.decorative","typeLabel":"boolean"},"url":{"type":"string","format":"uri","pattern":"^https?://","description":"A managed campaign media URL returned by POST /api/v1/campaign-media for this project. External, data:, and other projects' URLs are rejected.","example":"https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.media.oneOf.1.url","typeLabel":"string\u003curi>"},"alt":{"type":"string","maxLength":300,"description":"What the image shows, for assistive technology. Required unless `decorative` is true.","example":"Screenshot of the new analytics dashboard","uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.media.oneOf.1.alt","typeLabel":"string"}},"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.media.oneOf.1","typeLabel":"object"}],"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0.media","typeLabel":"object"}},"isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.0","typeLabel":"object"},{"type":"object","description":"Email campaign content. The body is Markdown and Galinum adds the project compliance footer.","required":["subject","body"],"properties":{"subject":{"type":"string","maxLength":200,"example":"CSV export is ready","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.1.subject","typeLabel":"string"},"body":{"type":"string","maxLength":50000,"description":"Markdown email body.","example":"# CSV export is here\\n\\nDownload any table from the toolbar.","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.1.body","typeLabel":"string"},"previewText":{"type":"string","maxLength":200,"example":"Download any table in one click","uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.1.previewText","typeLabel":"string"},"cta":{"type":"object","required":["label","url"],"properties":{"label":{"type":"string","example":"Try CSV export","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.1.cta.label","typeLabel":"string"},"url":{"type":"string","format":"uri","description":"Must use http:// or https://.","example":"https://app.example.com/exports","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.1.cta.url","typeLabel":"string\u003curi>"}},"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.1.cta","typeLabel":"object"}},"isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].content.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].content","typeLabel":"object"},"stats":{"type":"object","required":["sent","frequencyCapped","delivered","shown","opened","clicked","dismissed","bounced","complained","unsubscribed","converted"],"properties":{"sent":{"type":"integer","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].stats.sent","typeLabel":"integer"},"frequencyCapped":{"type":"integer","description":"Campaign-email recipients skipped by the project-wide rolling 24-hour frequency limit.","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].stats.frequencyCapped","typeLabel":"integer"},"delivered":{"type":"integer","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].stats.delivered","typeLabel":"integer"},"shown":{"type":"integer","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].stats.shown","typeLabel":"integer"},"opened":{"type":"integer","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].stats.opened","typeLabel":"integer"},"clicked":{"type":"integer","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].stats.clicked","typeLabel":"integer"},"dismissed":{"type":"integer","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].stats.dismissed","typeLabel":"integer"},"bounced":{"type":"integer","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].stats.bounced","typeLabel":"integer"},"complained":{"type":"integer","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].stats.complained","typeLabel":"integer"},"unsubscribed":{"type":"integer","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].stats.unsubscribed","typeLabel":"integer"},"converted":{"type":"integer","isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].stats.converted","typeLabel":"integer"}},"isRequired":true,"uniqueKey":"campaign.variants.items.[INDEX].stats","typeLabel":"object"}},"uniqueKey":"campaign.variants.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"campaign.variants","typeLabel":"object[]"},"sourceChanges":{"type":"object","additionalProperties":false,"required":["revision","changes"],"properties":{"revision":{"type":"string","isRequired":true,"uniqueKey":"campaign.sourceChanges.revision","typeLabel":"string"},"changes":{"type":"array","items":{"oneOf":[{"type":"object","description":"One current source association. PR shas include the complete original commit set; read projections do not apply input array-size limits.","required":["sourceId","kind","sha"],"properties":{"sourceId":{"type":"string","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"campaign.sourceChanges.changes.items.[INDEX].oneOf.0.sourceId","typeLabel":"string"},"kind":{"type":"string","const":"commit","isRequired":true,"uniqueKey":"campaign.sourceChanges.changes.items.[INDEX].oneOf.0.kind","typeLabel":"string"},"sha":{"type":"string","pattern":"^[a-f0-9]{40}$","isRequired":true,"uniqueKey":"campaign.sourceChanges.changes.items.[INDEX].oneOf.0.sha","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"campaign.sourceChanges.changes.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"object","description":"One current source association. PR shas include the complete original commit set; read projections do not apply input array-size limits.","required":["sourceId","kind","number","shas"],"properties":{"sourceId":{"type":"string","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"campaign.sourceChanges.changes.items.[INDEX].oneOf.1.sourceId","typeLabel":"string"},"kind":{"type":"string","const":"pull_request","isRequired":true,"uniqueKey":"campaign.sourceChanges.changes.items.[INDEX].oneOf.1.kind","typeLabel":"string"},"number":{"type":"integer","minimum":1,"isRequired":true,"uniqueKey":"campaign.sourceChanges.changes.items.[INDEX].oneOf.1.number","typeLabel":"integer"},"shas":{"type":"array","minItems":1,"items":{"type":"string","pattern":"^[a-f0-9]{40}$","uniqueKey":"campaign.sourceChanges.changes.items.[INDEX].oneOf.1.shas.items.[INDEX]","typeLabel":"string"},"isRequired":true,"uniqueKey":"campaign.sourceChanges.changes.items.[INDEX].oneOf.1.shas","typeLabel":"string[]"}},"additionalProperties":false,"uniqueKey":"campaign.sourceChanges.changes.items.[INDEX].oneOf.1","typeLabel":"object"}],"uniqueKey":"campaign.sourceChanges.changes.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"campaign.sourceChanges.changes","typeLabel":"object[]"}},"description":"Complete current associations and their revision. Read arrays are not truncated or restricted by ordinary write-size limits, including when deployment evidence is unknown or manual launch is required.","isRequired":true,"uniqueKey":"campaign.sourceChanges","typeLabel":"object"},"push":{"oneOf":[{"type":"object","required":["appId","selection"],"properties":{"appId":{"type":"string","minLength":1,"maxLength":256,"isRequired":true,"uniqueKey":"campaign.push.oneOf.0.appId","typeLabel":"string"},"selection":{"oneOf":[{"type":"object","required":["kind"],"properties":{"kind":{"type":"string","enum":["last_active","all"],"isRequired":true,"uniqueKey":"campaign.push.oneOf.0.selection.oneOf.0.kind","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.push.oneOf.0.selection.oneOf.0","typeLabel":"object"},{"type":"object","required":["kind","installationId"],"properties":{"kind":{"type":"string","enum":["specific"],"isRequired":true,"uniqueKey":"campaign.push.oneOf.0.selection.oneOf.1.kind","typeLabel":"enum\u003cstring>"},"installationId":{"type":"string","minLength":1,"maxLength":128,"isRequired":true,"uniqueKey":"campaign.push.oneOf.0.selection.oneOf.1.installationId","typeLabel":"string"}},"additionalProperties":false,"isRequired":true,"uniqueKey":"campaign.push.oneOf.0.selection.oneOf.1","typeLabel":"object"}],"isRequired":true,"uniqueKey":"campaign.push.oneOf.0.selection","typeLabel":"object"},"ttlSeconds":{"type":"integer","minimum":1,"maximum":2419200,"uniqueKey":"campaign.push.oneOf.0.ttlSeconds","typeLabel":"integer"},"replacementKey":{"type":"string","minLength":1,"maxLength":64,"uniqueKey":"campaign.push.oneOf.0.replacementKey","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"campaign.push.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"campaign.push.oneOf.1","typeLabel":"null"}],"uniqueKey":"campaign.push","typeLabel":"object | null"}},"isRequired":true,"uniqueKey":"campaign","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"campaign":{"id":"cmp_3ce6dba5-7f36-41f5-9327-d5cc3099ab77","name":"Launch: CSV export","status":"draft","effectiveStatus":"draft","channel":"web_inapp","goalId":"\u003cstring>","createdBy":"api","createdAt":1784067764978,"startedAt":123,"endedAt":123,"deliverFrom":123,"deliverUntil":123,"audience":{"kind":"all"},"targeting":{"traits":{"plan":"free"},"events":{"seen":["activated_workspace"],"not_seen":["used_csv_export"]}},"pages":["/dashboard","/settings/*"],"stats":{"sent":123,"frequencyCapped":123,"delivered":123,"shown":123,"opened":123,"clicked":123,"dismissed":123,"bounced":123,"complained":123,"unsubscribed":123,"converted":123},"variants":[{"id":"var_37705a49-52c6-4577-aeed-665099a1e13d","name":"A","weight":1,"isControl":true,"content":{"presentation":"toast","title":"CSV export is here 📊","body":"Export any table to CSV from the toolbar.","cta":{"label":"Try it","destination":{"kind":"website","url":"https://app.example.com/exports"}},"media":{"url":"https://galinum.example/media/projects/prj_123/media/9c2f0b7e-4d11-4c2a-a3d1-1c9a1a2b3c4d.png","alt":"Screenshot of the new analytics dashboard","decorative":false}},"stats":{"sent":123,"frequencyCapped":123,"delivered":123,"shown":123,"opened":123,"clicked":123,"dismissed":123,"bounced":123,"complained":123,"unsubscribed":123,"converted":123}}],"sourceChanges":{"revision":"\u003cstring>","changes":[{"sourceId":"\u003cstring>","kind":"commit","sha":"\u003cstring>"}]},"push":{"appId":"\u003cstring>","selection":{"kind":"last_active"},"ttlSeconds":1209600,"replacementKey":"\u003cstring>"}}}}},"exampleType":"generated"}},"exampleType":"generated"},"08cf76c4-260f-474b-a231-a72e15dae73c":{"description":"Invalid JSON, missing or invalid fields, or wrong content type.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"userId is required"},"examples":{"Example":{"title":"Example","value":{"error":"userId is required"}}},"exampleType":"examples"}},"exampleType":"examples"},"21a23aad-454b-4710-94a7-fd4b131866c6":{"description":"Missing or invalid API key. SDK endpoints take the publishable key; management endpoints (campaigns, media, users, events, goals, agent runs) take the secret key.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Unauthorized"},"examples":{"Example":{"title":"Example","value":{"error":"Unauthorized"}}},"exampleType":"examples"}},"exampleType":"examples"},"7932ac47-bbb1-4ced-bdae-7c366d24fc7f":{"description":"audience.kind segment referenced a segment or version that does not exist in this project.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"5b575a15-5bac-428d-8109-e231ac9d6297":{"description":"An audience segment is archived, or an email launch is blocked because the project domain is unverified or its from address does not match.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"4a6ba1c3-6ce8-4b49-9d62-5b91fc7f7eaa":{"description":"Request body exceeds the endpoint's size limit.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Invalid request"},"examples":{"Example":{"title":"Example","value":{"error":"Invalid request"}}},"exampleType":"examples"}},"exampleType":"examples"},"af0b933c-d694-4549-9695-82a6be944fb9":{"description":"Rate limit exceeded, counted per project (SDK endpoints: 120 requests/minute or 2,000/hour per endpoint; management endpoints: 60/minute or 1,000/hour per resource group — all campaign operations share one budget, as do goal operations and user reads). Retry after the `Retry-After` header.","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying."}},"content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Too many requests"},"examples":{"Example":{"title":"Example","value":{"error":"Too many requests"}}},"exampleType":"examples"}},"exampleType":"examples"},"a11f7d79-1fc3-4209-91ca-fcc7d72d3936":{"description":"Galinum could not complete the request.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Could not identify user"},"examples":{"Example":{"title":"Example","value":{"error":"Could not identify user"}}},"exampleType":"examples"}},"exampleType":"examples"},"6f5b00e6-cc5d-4187-b88c-eb5ef330ec61":{"description":"Message media could not be verified because storage was temporarily unavailable. Retry the same request.","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"Human-readable description of what went wrong.","isRequired":true,"uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"ee248952-b7d6-4785-8412-15676aa129bc":{"secretKey":{"type":"http","scheme":"bearer","description":"Your project's secret key (`pk_…`, without the `pub` segment). Server-side only — never ship it to a browser. Get it from Settings → Projects in the dashboard.","scopes":[]}}},"servers":{"d78851ce-f6b3-4284-acc2-dcf1797c4d16":{"url":"https://galinum.com","description":"Production"}},"schemas":{"f763706b-093a-4677-826f-149d1491dd01":{"oneOf":[{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","children"],"properties":{"kind":{"const":"all","isRequired":true},"children":{"type":"array","minItems":1,"maxItems":16,"items":{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01"},"isRequired":true}},"additionalProperties":false},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","children"],"properties":{"kind":{"const":"any","isRequired":true},"children":{"type":"array","minItems":1,"maxItems":16,"items":{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01"},"isRequired":true}},"additionalProperties":false},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","child"],"properties":{"kind":{"const":"not","isRequired":true},"child":{"oneOf":[{"isRequired":true}],"isRequired":true}},"additionalProperties":false},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","field","op"],"properties":{"kind":{"const":"field","isRequired":true},"field":{"oneOf":[{"type":"object","description":"Structured, unambiguous field reference.","required":["kind","key"],"properties":{"kind":{"const":"trait","isRequired":true},"key":{"type":"string","maxLength":128,"description":"Literal top-level trait key.","isRequired":true}},"additionalProperties":false,"isRequired":true},{"type":"object","description":"Structured, unambiguous field reference.","required":["kind","field"],"properties":{"kind":{"const":"user","isRequired":true},"field":{"type":"string","enum":["firstSeenAt","lastSeenAt"],"description":"Lifecycle field (datetime).","isRequired":true}},"additionalProperties":false,"isRequired":true},{"type":"object","description":"Structured, unambiguous field reference.","required":["kind","key"],"properties":{"kind":{"const":"event_property","isRequired":true},"key":{"type":"string","maxLength":128,"description":"Literal top-level event property key. Only valid inside an event node's where conditions.","isRequired":true}},"additionalProperties":false,"isRequired":true}],"isRequired":true},"op":{"type":"string","enum":["eq","neq","in","not_in","contains","starts_with","ends_with","gt","gte","lt","lte","exists","not_exists","before","after","within_last","not_within_last"],"isRequired":true},"value":{"description":"Required for every operator except exists/not_exists (which reject it). Typed per operator: eq/neq take a string/number/boolean; in/not_in a non-empty array (≤ 50) of all strings or all numbers; contains/starts_with/ends_with a string; gt/gte/lt/lte a number; before/after an ISO-8601 date-time with explicit offset; within_last/not_within_last an AudienceWindow."}},"additionalProperties":false},{"type":"object","description":"One audience expression node, discriminated by `kind`. Overall limits: nesting depth ≤ 8, total nodes ≤ 64. Unknown kinds, unknown operators, unknown keys, and empty groups are rejected with structured diagnostics.","required":["kind","event"],"properties":{"kind":{"const":"event","isRequired":true},"event":{"type":"string","maxLength":80,"isRequired":true},"count":{"type":"object","required":["op","value"],"additionalProperties":false,"properties":{"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"],"isRequired":true},"value":{"type":"integer","minimum":0,"maximum":10000,"isRequired":true}},"description":"Occurrence-count comparison; defaults to at-least-once ({ op: gte, value: 1 })."},"window":{"type":"object","required":["amount","unit"],"properties":{"amount":{"type":"integer","minimum":1,"isRequired":true},"unit":{"type":"string","enum":["minutes","hours","days"],"isRequired":true}},"additionalProperties":false,"description":"Relative time window measured back from the evaluation instant (evaluatedAt)."},"where":{"type":"array","minItems":1,"maxItems":8,"items":{"$circularRef":"f763706b-093a-4677-826f-149d1491dd01"},"description":"field nodes on event_property references, ANDed per occurrence."}},"additionalProperties":false}]}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Your project's secret key (`pk_…`, without the `pub` segment). Server-side only — never ship it to a browser. Get it from Settings → Projects in the dashboard.","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Your project's secret key (`pk_…`, without the `pub` segment). Server-side only — never ship it to a browser. Get it from Settings → Projects in the dashboard.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"secretKey","name":"Authorization"}],"title":"secretKey"}]},"originalFileLocation":"openapi.json"},"subdomain":"galinum","siteName":"Galinum","title":"Create a campaign - Galinum","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-10T23:31:20.292Z","originalFileLocation":"api-reference/campaigns/create-a-campaign.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creates a web in-app or email campaign behind the same campaign model. Use either one message (a direct communication, one variant named \u0026quot;A\u0026quot;) or an explicit weighted variants array. Pass launch: true to start delivery, or leave a draft. Email launch requires a verified project domain and a matching from address. Optional deliverFrom/deliverUntil schedule a future start and automatic expiry. Optional sourceChanges declares the changes for deployment-based activation. Content and declaration commit atomically. Declaring changes does not approve the campaign. Approval survives later edits, but launch requires coverage for the current declaration and current channel readiness.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Galinum\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/galinum/zUwsiXhqryBIytwX/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/galinum/zUwsiXhqryBIytwX/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/galinum/zUwsiXhqryBIytwX/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/galinum/zUwsiXhqryBIytwX/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/galinum/zUwsiXhqryBIytwX/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/galinum/zUwsiXhqryBIytwX/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/galinum/zUwsiXhqryBIytwX/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/galinum/zUwsiXhqryBIytwX/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/galinum/zUwsiXhqryBIytwX/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a campaign - Galinum\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creates a web in-app or email campaign behind the same campaign model. Use either one message (a direct communication, one variant named \u0026quot;A\u0026quot;) or an explicit weighted variants array. Pass launch: true to start delivery, or leave a draft. Email launch requires a verified project domain and a matching from address. Optional deliverFrom/deliverUntil schedule a future start and automatic expiry. Optional sourceChanges declares the changes for deployment-based activation. Content and declaration commit atomically. Declaring changes does not approve the campaign. Approval survives later edits, but launch requires coverage for the current declaration and current channel readiness.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Galinum\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.galinum.com/api-reference/campaigns/create-a-campaign\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://galinum.mintlify.site/_mintlify/api/og/v2?division=Campaigns\u0026amp;title=Create+a+campaign\u0026amp;description=Creates+a+web+in-app+or+email+campaign+behind+the+same+campaign+model.+Use+either+one+%60message%60+%28a+direct+communication%2C+one+variant+named+%22A%22%29+or+an+explicit+w\u0026amp;theme=a024d7b84beb9cc4902c7b19\u0026amp;signature=55cfd3b8b8da7573939240a643b03acf5ae6a69927decb5e7c7c43400e96c1bc\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a campaign - Galinum\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creates a web in-app or email campaign behind the same campaign model. Use either one message (a direct communication, one variant named \u0026quot;A\u0026quot;) or an explicit weighted variants array. Pass launch: true to start delivery, or leave a draft. Email launch requires a verified project domain and a matching from address. Optional deliverFrom/deliverUntil schedule a future start and automatic expiry. Optional sourceChanges declares the changes for deployment-based activation. Content and declaration commit atomically. Declaring changes does not approve the campaign. Approval survives later edits, but launch requires coverage for the current declaration and current channel readiness.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://galinum.mintlify.site/_mintlify/api/og/v2?division=Campaigns\u0026amp;title=Create+a+campaign\u0026amp;description=Creates+a+web+in-app+or+email+campaign+behind+the+same+campaign+model.+Use+either+one+%60message%60+%28a+direct+communication%2C+one+variant+named+%22A%22%29+or+an+explicit+w\u0026amp;theme=a024d7b84beb9cc4902c7b19\u0026amp;signature=55cfd3b8b8da7573939240a643b03acf5ae6a69927decb5e7c7c43400e96c1bc\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/galinum/zUwsiXhqryBIytwX/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Galinum\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1A3A2A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.galinum.com/api-reference/campaigns/create-a-campaign\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/campaigns/create-a-campaign.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.galinum.com/#organization\",\"name\":\"Galinum\",\"url\":\"https://docs.galinum.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/galinum/P8EaxFHlVOCBbMgl/logo/light.svg?fit=max\u0026auto=format\u0026n=P8EaxFHlVOCBbMgl\u0026q=85\u0026s=e13a9c002bb43cdf4e88cff30817d370\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.galinum.com#website\",\"name\":\"Galinum\",\"url\":\"https://docs.galinum.com\",\"publisher\":{\"@id\":\"https://docs.galinum.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.galinum.com/api-reference/campaigns/create-a-campaign#webpage\",\"url\":\"https://docs.galinum.com/api-reference/campaigns/create-a-campaign\",\"name\":\"Create a campaign\",\"description\":\"Creates a web in-app or email campaign behind the same campaign model. Use either one message (a direct communication, one variant named \\\"A\\\") or an explicit weighted variants array. Pass launch: true to start delivery, or leave a draft. Email launch requires a verified project domain and a matching from address. Optional deliverFrom/deliverUntil schedule a future start and automatic expiry. Optional sourceChanges declares the changes for deployment-based activation. Content and declaration commit atomically. Declaring changes does not approve the campaign. Approval survives later edits, but launch requires coverage for the current declaration and current channel readiness.\",\"dateModified\":\"2026-09-10T23:31:20.292Z\",\"isPartOf\":{\"@id\":\"https://docs.galinum.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.galinum.com/api-reference/campaigns/create-a-campaign#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.galinum.com/api-reference/campaigns/create-a-campaign#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Campaigns\",\"item\":\"https://docs.galinum.com/api-reference/campaigns/upload-campaign-media\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a campaign\",\"item\":\"https://docs.galinum.com/api-reference/campaigns/create-a-campaign\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.galinum.com/api-reference/campaigns/create-a-campaign#apireference\",\"headline\":\"Create a campaign\",\"name\":\"Create a campaign\",\"description\":\"Creates a web in-app or email campaign behind the same campaign model. Use either one message (a direct communication, one variant named \\\"A\\\") or an explicit weighted variants array. Pass launch: true to start delivery, or leave a draft. Email launch requires a verified project domain and a matching from address. Optional deliverFrom/deliverUntil schedule a future start and automatic expiry. Optional sourceChanges declares the changes for deployment-based activation. Content and declaration commit atomically. Declaring changes does not approve the campaign. Approval survives later edits, but launch requires coverage for the current declaration and current channel readiness.\",\"url\":\"https://docs.galinum.com/api-reference/campaigns/create-a-campaign\",\"mainEntityOfPage\":{\"@id\":\"https://docs.galinum.com/api-reference/campaigns/create-a-campaign#webpage\"},\"dateModified\":\"2026-09-10T23:31:20.292Z\",\"publisher\":{\"@id\":\"https://docs.galinum.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.galinum.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Galinum\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Galinum\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/campaigns/create-a-campaign.md","siteName":"Galinum","nav":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://galinum.com"},{"anchor":"GitHub","icon":"github","href":"https://github.com/Galinum"}]},"tabs":[{"tab":"Documentation","icon":"book-open","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","icon":"code","groups":[{"group":"API Reference","pages":[{"title":"Introduction","icon":"book-open","href":"/api/overview"},{"title":"Authentication","icon":"key","href":"/api/authentication"},{"title":"Errors","icon":"triangle-alert","href":"/api/errors"}]},{"group":"SDK endpoints","pages":[{"title":"Identify a user","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/identify","href":"/api-reference/users/identify-a-user"},{"title":"Track an event","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/track","href":"/api-reference/users/track-an-event"},{"title":"Get eligible in-app messages","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/messages","href":"/api-reference/messages/get-eligible-in-app-messages"},{"title":"Report delivery feedback","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/deliveries/{id}/event","href":"/api-reference/messages/report-delivery-feedback"}]},{"group":"Audiences","pages":[{"title":"Discover audience capabilities","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/audiences/capabilities","href":"/api-reference/audiences/discover-audience-capabilities"},{"title":"Check an audience expression","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/audiences/check","href":"/api-reference/audiences/check-an-audience-expression"},{"title":"Explain an audience for one user","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/audiences/explain","href":"/api-reference/audiences/explain-an-audience-for-one-user"},{"title":"Create a segment","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/segments","href":"/api-reference/segments/create-a-segment"},{"title":"List segments","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/segments","href":"/api-reference/segments/list-segments"},{"title":"Read a segment","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/segments/{id}","href":"/api-reference/segments/read-a-segment"},{"title":"Update a segment","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/segments/{id}","href":"/api-reference/segments/update-a-segment"},{"title":"Archive a segment","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/segments/{id}/archive","href":"/api-reference/segments/archive-a-segment"},{"title":"List segment versions","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/segments/{id}/versions","href":"/api-reference/segments/list-segment-versions"},{"title":"Read a segment version","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/segments/{id}/versions/{version}","href":"/api-reference/segments/read-a-segment-version"}]},{"group":"Campaigns","pages":[{"title":"Upload campaign media","description":"Uploads an image to attach to a campaign message. Send `multipart/form-data` with a single `file` field: PNG, JPEG, WebP, or GIF (animation is preserved), up to 4 MB and 4096×4096 pixels. File contents are verified — SVG and files whose bytes don't match their declared type are rejected. Returns an absolute HTTP(S) URL on the server's configured public origin; reference it as `media.url` when creating or editing a campaign. The image never changes the message's presentation — set `message.presentation` for that. Objects are immutable and retained; upload a new file to change an image.","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/campaign-media","href":"/api-reference/campaigns/upload-campaign-media"},{"title":"Create a campaign","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/campaigns","href":"/api-reference/campaigns/create-a-campaign"},{"title":"List campaigns","description":"Returns the project's newest campaigns first in deterministic createdAt-then-id descending order, with delivery stats. Defaults to the first 100 campaigns, matching the previous unpaginated maximum.","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/campaigns","href":"/api-reference/campaigns/list-campaigns"},{"title":"Get a campaign","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/campaigns/{id}","href":"/api-reference/campaigns/get-a-campaign"},{"title":"Update a campaign","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/campaigns/{id}","href":"/api-reference/campaigns/update-a-campaign"},{"title":"Launch, pause, or end a campaign","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/campaigns/{id}/status","href":"/api-reference/campaigns/launch-pause-or-end-a-campaign"},{"title":"List a campaign's deliveries","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/campaigns/{id}/deliveries","href":"/api-reference/campaigns/list-a-campaigns-deliveries"},{"title":"Get exact event conversions by variant","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/campaigns/{id}/conversions","href":"/api-reference/campaigns/get-exact-event-conversions-by-variant"}]},{"group":"Users \u0026 events","pages":[{"title":"List users","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/users","href":"/api-reference/users/list-users"},{"title":"Get a user","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/users/{id}","href":"/api-reference/users/get-a-user"},{"title":"List events","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/events","href":"/api-reference/users/list-events"}]},{"group":"Goals","pages":[{"title":"Create a goal","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/goals","href":"/api-reference/goals/create-a-goal"},{"title":"List goals","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/goals","href":"/api-reference/goals/list-goals"},{"title":"Get a goal","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/goals/{id}","href":"/api-reference/goals/get-a-goal"},{"title":"Update a goal","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/goals/{id}","href":"/api-reference/goals/update-a-goal"}]},{"group":"Agent runs","pages":[{"title":"Log an agent run","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/agent-runs","href":"/api-reference/agent-runs/log-an-agent-run"},{"title":"List agent runs","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/agent-runs","href":"/api-reference/agent-runs/list-agent-runs"}]},{"group":"Hosted agent","pages":[{"title":"Read hosted-loop safety controls","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/agent/settings","href":"/api-reference/hosted-agent/read-hosted-loop-safety-controls"},{"title":"Record hosted-agent usage","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/agent/usage-reports","href":"/api-reference/hosted-agent/record-hosted-agent-usage"},{"title":"List due campaign evaluations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/evaluations/due","href":"/api-reference/hosted-agent/list-due-campaign-evaluations"},{"title":"Schedule a campaign evaluation","deprecated":null,"version":null,"openapi":"/openapi.json put /api/v1/evaluations/{campaignId}","href":"/api-reference/hosted-agent/schedule-a-campaign-evaluation"},{"title":"Claim a due campaign evaluation","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/evaluations/{campaignId}/claim","href":"/api-reference/hosted-agent/claim-a-due-campaign-evaluation"},{"title":"Apply a lease-fenced campaign mutation","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/evaluations/{campaignId}/mutate","href":"/api-reference/hosted-agent/apply-a-lease-fenced-campaign-mutation"},{"title":"Release, reschedule, or conclude an evaluation","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/evaluations/{campaignId}/complete","href":"/api-reference/hosted-agent/release-reschedule-or-conclude-an-evaluation"},{"title":"Propose one exact campaign mutation","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/agent/proposals","href":"/api-reference/hosted-agent/propose-one-exact-campaign-mutation"},{"title":"List campaign mutation proposals","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/agent/proposals","href":"/api-reference/hosted-agent/list-campaign-mutation-proposals"}]},{"group":"Usage","pages":[{"title":"Get current usage and serving state","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/usage","href":"/api-reference/usage/get-current-usage-and-serving-state"}]},{"group":"GitHub sources","pages":[{"title":"List pending GitHub source work","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/github/refs/due","href":"/api-reference/github-sources/list-pending-github-source-work"},{"title":"Claim GitHub source work","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/github/refs/{refId}/claim","href":"/api-reference/github-sources/claim-github-source-work"},{"title":"Reconcile claimed GitHub changes","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/github/refs/{refId}/reconcile","href":"/api-reference/github-sources/reconcile-claimed-github-changes"}]},{"group":"Installations","pages":[{"title":"Register an installation","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/sdk/installations","href":"/api-reference/installations/register-an-installation"},{"title":"Read installation state","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/sdk/installations/{installationId}","href":"/api-reference/installations/read-installation-state"},{"title":"Bind or unbind an installation","deprecated":null,"version":null,"openapi":"/openapi.json put /api/v1/sdk/installations/{installationId}/binding","href":"/api-reference/installations/bind-or-unbind-an-installation"},{"title":"Update installation facts","deprecated":null,"version":null,"openapi":"/openapi.json put /api/v1/sdk/installations/{installationId}/facts","href":"/api-reference/installations/update-installation-facts"},{"title":"Update an installation token","deprecated":null,"version":null,"openapi":"/openapi.json put /api/v1/sdk/installations/{installationId}/token","href":"/api-reference/installations/update-an-installation-token"},{"title":"Record installation app activity","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/sdk/installations/{installationId}/activity","href":"/api-reference/installations/record-installation-app-activity"},{"title":"Inspect installations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/installations","href":"/api-reference/installations/inspect-installations"}]},{"group":"Push","pages":[{"title":"configurePushCredential","deprecated":null,"version":null,"openapi":"/openapi.json put /api/v1/push/credentials","href":"/api-reference/push/configurepushcredential"},{"title":"listPushCredentials","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/push/credentials","href":"/api-reference/push/listpushcredentials"},{"title":"validatePushCredential","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/push/credentials/validate","href":"/api-reference/push/validatepushcredential"},{"title":"dispatchPushCampaign","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/campaigns/{id}/push/dispatch","href":"/api-reference/push/dispatchpushcampaign"},{"title":"testPushCampaign","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/campaigns/{id}/push/test","href":"/api-reference/push/testpushcampaign"},{"title":"Read a correlated push test","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/campaigns/{id}/push/tests/{requestId}","href":"/api-reference/push/read-a-correlated-push-test"},{"title":"inspectPushCampaign","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/campaigns/{id}/push","href":"/api-reference/push/inspectpushcampaign"},{"title":"observeInstallationPush","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/sdk/installations/{installationId}/observations","href":"/api-reference/push/observeinstallationpush"}]}]}]},"basePath":"","title":"Create a campaign - Galinum","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-B8kPdtB2.js","snippetPresets-C-p1aFQ1.js","utils-B9NnUZSZ.js","style-to-object-BY3JEAdk.js","utils-DFxl7cW2.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-bSr9h7OB.js","conditional-requirements-CFM0id0Q.js","cloneDeep-Bw4Gcy_r.js","_Uint8Array-C68x8Gny.js","isObject-FP1Yky1u.js","ApiExamples-BXsp8PHs.js","usePlaygroundInputsStore-BlAOLmIF.js","shallow-C2F02mqa.js","isEqual-C8iG4q2G.js","CodeSnippets-45lHR04X.js","CodeSnippet-6Cemznl-.js","use-playground-group-access-Cyy8SXp5.js","Page-CeZ_ZB5X.js","api-description-markdown-DiOdv5rp.js","DynamicMarkdown-B_9ywLDq.js","SectionHeading-Cc2r-uqU.js","MethodPill-Df3Tcu4c.js","getPastedJson-B3vrV0wE.js","Check2Icon-YQhSFafd.js","axios-CsQoIw0U.js","Markdown-0RkHcMOI.js","AssistantPageLink-DeJZCj9t.js","dist-DVqS175j.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}