Strategy / REST API
Preview campaign revision
Deterministically preview a prelaunch campaign revision. Returns changed fields, exact impact, row cohort, and a proposal fingerprint. Does not invoke AI or write data.
POST /api/v1/campaign-revisions/previewDeterministic operationParameters
workspaceIdRequired · string- See the input schema for this field.
briefIdRequired · string- See the input schema for this field.
segmentIdRequired · string- See the input schema for this field.
expectedVersionRequired · integer- See the input schema for this field.
proposedPlanRequired · object- See the input schema for this field.
expectedSegmentUpdatedAtOptional · string- See the input schema for this field.
segmentPatchOptional · object- See the input schema for this field.
reasonOptional · string- See the input schema for this field.
curl -X POST "https://app.pipeline.help/api/v1/campaign-revisions/preview" \
-H "Authorization: Bearer $PIPELINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"workspaceId":"00000000-0000-4000-8000-000000000000","briefId":"00000000-0000-4000-8000-000000000000","segmentId":"00000000-0000-4000-8000-000000000000","expectedVersion":1,"proposedPlan":{}}'Full input schema
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string"
},
"briefId": {
"type": "string"
},
"segmentId": {
"type": "string"
},
"expectedVersion": {
"type": "integer",
"minimum": 1
},
"proposedPlan": {
"type": "object",
"additionalProperties": true
},
"expectedSegmentUpdatedAt": {
"type": "string"
},
"segmentPatch": {
"type": "object",
"additionalProperties": true
},
"reason": {
"type": "string",
"maxLength": 2000
}
},
"required": [
"workspaceId",
"briefId",
"segmentId",
"expectedVersion",
"proposedPlan"
],
"additionalProperties": false
}