Skip to content
Proud to collaborate with Microsoft for Startups

linkedin.post.publish-with-approval ​

Draft LinkedIn organic content and open a staff inbox review envelope. Does not publish — after approve, call linkedin.post.create with the approval_envelope_uuid (SOCIAL-004 hard gate).

Overview ​

PropertyValue
Workflow typeDag
LibraryApp-linkedin
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
connection_uuidstringYes——
actor_uuidstringYes——
author_refstringYes——
commentarystringNo——
textstringNo——
visibilitystringNo——
media_urnstringNo——
storage_object_uuidstringNo——
image_urlstringNo——
kindstringNo——
review_titlestringNo——
review_reasonstringNo——
connector_uuidstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
connection_uuidstringYes——
actor_uuidstringYes——
author_refstringYes——
commentarystringNo——
textstringNo——
visibilitystringNo——
media_urnstringNo——
storage_object_uuidstringNo——
image_urlstringNo——
kindstringNo——
review_titlestringNo——
review_reasonstringNo——
connector_uuidstringNo——
failure_reasonstringNo—Engine-stamped human-readable failure reason
failed_atstringNo—ISO timestamp when the workflow failed
failed_at_statestringNo—Engine-stamped state when the workflow failed
failed_stepstringNo—Engine-stamped step name (DAG path)
failed_layerintegerNo—Engine-stamped layer index (DAG path)
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name
draft_idstringNo——
approval_envelope_uuidstringNo——
statusstringNo——
draftjsonNo——
request_reviewjsonNo——
completed_atstringNo——

DAG Layers ​

#LayerStepsCompensation
1draftlinkedin.content.draftlinkedin.compensation.noop
2request_reviewlinkedin.content.request-reviewlinkedin.compensation.noop

Execution Flow ​

Compensation ​

When any layer fails, its compensation steps run in reverse order to roll back the work completed so far.

Sub-workflows ​

Sub-workflowStep name
linkedin.content.draftdraft
linkedin.content.request-reviewrequest_review
linkedin.compensation.noopabandon_draft

Outcomes ​

OutcomeTypeDescriptionState Data Keys
review_requestedSUCCESSDraft stamped and inbox review envelope openeddraft_id, approval_envelope_uuid
failedFAILURELinkedIn publish-with-approval DAG failedfailure_reason

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "linkedin.post.publish-with-approval",
  "initial_data": {
    "organization_uuid": "value",
    "connection_uuid": "value",
    "actor_uuid": "value",
    "author_ref": "value"
  }
}