Building a webhook integration? Read the webhook guide for signatures, retries, event schemas, and troubleshooting.
apiDeterministic

Publish sop draft

POST /api/agents/sop

Publish the exact reviewed SOP draft after explicit user approval. Does not enable Autopilot, change runtime cadence or send messages. Preserve workspace HITL.

Parameters

workspaceId
string
No description.
skillNamerequired
string
No description.
expectedDraftCreatedAtrequired
string
Exact pending draft createdAt, null only when no draft exists.

Example

REST requestbash
curl -X POST "https://app.pipeline.help/api/agents/sop" \
-H "Authorization: Bearer $PIPELINE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"skillName":"example","expectedDraftCreatedAt":"2026-01-01T00:00:00.000Z"}'

Response

Success response schemajson schema
{
"type": "object",
"properties": {
"overlay": {
"type": "object"
},
"version": {
"type": "object"
}
},
"required": [
"overlay",
"version"
]
}

HTTP errors

401
Missing or invalid API key.
403
Authenticated but not permitted for the workspace or resource.
404
The requested resource was not found.
Pipeline REST API reference | Pipeline