Raw schema
{
"type": "object",
"properties": {
"postId": {
"type": "number",
"description": "The published post to boost"
},
"platform": {
"type": "string",
"enum": [
"instagram",
"tiktok",
"linkedin",
"pinterest"
],
"description": "Platform to boost on when the post published to several; defaults to the post's own platform"
},
"mode": {
"type": "string",
"enum": [
"managed",
"own_account"
],
"default": "managed",
"description": "managed: paid from the prepaid wallet incl. service fee. own_account: billed to the user's own connected ad account, no fee (requires the ads add-on)"
},
"budgetCents": {
"type": "number",
"minimum": 5000,
"maximum": 2000000,
"description": "Total ad budget in cents (e.g. 30000 = 300 kr). The service fee is added on top of this."
},
"durationDays": {
"type": "number",
"minimum": 1,
"maximum": 30,
"description": "How many days the ad runs"
},
"goal": {
"type": "string",
"enum": [
"engagement",
"traffic",
"awareness",
"video_views"
],
"default": "engagement",
"description": "What the ad optimizes for"
},
"notPoliticalConfirmed": {
"type": "boolean",
"description": "Required for LinkedIn: true only after the user confirmed the ad is not political advertising (LinkedIn requires the confirmation and bans political ads)"
},
"targeting": {
"type": "object",
"properties": {
"ageMin": {
"type": "number",
"minimum": 18,
"maximum": 65
},
"ageMax": {
"type": "number",
"minimum": 18,
"maximum": 65
},
"countries": {
"type": "array",
"items": {
"type": "string",
"minLength": 2,
"maxLength": 2
},
"description": "ISO country codes"
},
"interests": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
"description": "Interest entities — pass through from get_boost_recommendations, do not invent ids"
},
"advantageAudience": {
"type": "boolean",
"description": "Let Meta's AI expand the audience (recommended)"
},
"professional": {
"type": "object",
"properties": {
"industries": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 200
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
"maxItems": 20
},
"seniorities": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 200
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
"maxItems": 20
},
"jobFunctions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 200
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
"maxItems": 20
},
"companySizes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"maxLength": 200
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
},
"maxItems": 20
}
},
"additionalProperties": false,
"description": "LinkedIn only: the professional audience (industries, seniorities, job functions, company sizes) — pass it through unchanged from get_boost_recommendations, never invent or edit ids"
}
},
"additionalProperties": false,
"description": "Audience targeting; omit to let the platform decide"
}
},
"required": [
"postId",
"budgetCents",
"durationDays"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}