sdkDeterministic

Save content post

pipeline.saveContentPost

Save caller-authored LinkedIn content as a draft. This operation cannot schedule or publish.

Parameters

workspaceId
string
Optional with API key auth, inferred from the key.
linkedinAccountIdrequired
string
No description.
topic
string
No description.
postTyperequired
string
No description.
thought_leadership | lead_magnet | case_study | personal_story
hookrequired
string
No description.
bodyrequired
string
No description.
cta
string
No description.
fullPostrequired
string
No description.
pinComment
string
No description.
idempotencyKey
string
Caller-stable key for retry-safe draft creation.

Example

TypeScripttypescript
await pipeline.saveContentPost({
"linkedinAccountId": "00000000-0000-4000-8000-000000000000",
"postType": "thought_leadership",
"hook": "example",
"body": "example",
"fullPost": "example"
})

Response

Success response schemajson schema
{
"type": "object",
"properties": {
"success": {
"type": "boolean"
},
"data": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"workspaceId": {
"type": "string"
},
"linkedinAccountId": {
"type": "string"
},
"status": {
"type": "string",
"enum": [
"draft",
"approved",
"scheduled",
"publishing",
"published",
"failed",
"archived"
]
}
},
"required": [
"id",
"workspaceId",
"linkedinAccountId",
"status"
]
}
},
"required": [
"success",
"data"
]
}

Exceptions

PipelineError
Thrown for validation, authentication, JSON-RPC, HTTP, and network failures. Inspect code and data when present.
Pipeline TypeScript SDK documentation | Pipeline