Building a webhook integration? Read the webhook guide for signatures, retries, event schemas, and troubleshooting.
apiHosted AI, explicit consent

Generate content

POST /api/content/generate

Generate a LinkedIn post using the workspace voice config, content examples, and intelligence context. The route requires workspace_id as a query param (auto-injected from the API key when present). Returns hook + body + cta + alternatives + reasoning.

Parameters

workspaceId
string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
workspace_id
string
Workspace UUID (sent as ?workspace_id query param). Auto-injected with API key auth.
workspace_slug
string
Optional workspace slug for the agent context.
topicrequired
string
What the post should be about (10-5000 chars).
postType
string
No description.
thought_leadership | lead_magnet | case_study | personal_story
postLength
string
No description.
short | medium | long
linkedinAccountId
string
Optional - pin the post to a specific account voice.
hookStyle
string
No description.
question | contrarian | story | statistic | bold_claim | curiosity_gap
regenerateInstructions
string
User feedback when iterating on a previous draft.
previousPost
string
Previous post content for regeneration context.
strategyContext
object
No description.
allowHostedAi
boolean
Must be true when this operation uses Pipeline hosted inference.

Example

REST requestbash
curl -X POST "https://app.pipeline.help/api/content/generate" \
-H "Authorization: Bearer $PIPELINE_API_KEY" \
-H "X-Pipeline-Execution-Policy: hosted-enabled" \
-H "Content-Type: application/json" \
-d '{"topic":"example","allowHostedAi":true}'

Response

The operation is available, but its typed response schema has not been published yet.

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