Content / TypeScript SDK

Submit content work

Persist caller-authored typed content outputs. Invokes no hosted inference and never publishes or sends.

pipeline.submitContentWorkDeterministic operation

Parameters

workspaceIdOptional · string
See the input schema for this field.
workIdRequired · string
See the input schema for this field.
expectedRevisionRequired · integer
See the input schema for this field.
operationKeyRequired · string
See the input schema for this field.
outputsRequired · array
See the input schema for this field.
Request example
await pipeline.submitContentWork({
  "workId": "00000000-0000-4000-8000-000000000000",
  "expectedRevision": 1,
  "operationKey": "example",
  "outputs": [
    {
      "kind": "linkedin_post",
      "title": "example",
      "body": "example"
    }
  ]
})
Full input schema
Input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "workspaceId": {
      "type": "string"
    },
    "workId": {
      "type": "string"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 1
    },
    "operationKey": {
      "type": "string"
    },
    "outputs": {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "linkedin_post",
              "x_post",
              "newsletter",
              "youtube_package",
              "carousel",
              "markdown_resource",
              "csv_resource",
              "diagnostic",
              "brief",
              "critique",
              "response"
            ]
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "body": {
            "type": "string",
            "maxLength": 100000
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "needs_review",
              "approved",
              "superseded"
            ]
          },
          "sourceIds": {
            "type": "array",
            "maxItems": 20,
            "items": {
              "type": "string"
            }
          },
          "idea": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "topic": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "angle": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              "reader": {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000
              },
              "buyerPurpose": {
                "type": "string",
                "enum": [
                  "reach_new_buyers",
                  "build_trust",
                  "help_buyers_decide"
                ]
              },
              "takeaway": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              "authorEvidenceIds": {
                "type": "array",
                "maxItems": 20,
                "items": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "missingEvidence": {
                "type": "array",
                "maxItems": 10,
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500
                }
              },
              "readiness": {
                "type": "string",
                "enum": [
                  "ready",
                  "needs_author_input"
                ]
              }
            },
            "required": [
              "topic",
              "angle",
              "reader",
              "buyerPurpose",
              "takeaway",
              "authorEvidenceIds",
              "missingEvidence",
              "readiness"
            ]
          },
          "plannedDate": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "hookCandidates": {
            "type": "array",
            "maxItems": 3,
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1000
            }
          },
          "selectedHook": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 1000
          },
          "patternId": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 200
          },
          "quality": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "passed": {
                "type": "boolean"
              },
              "normalizedPunctuation": {
                "type": "array",
                "maxItems": 50,
                "items": {
                  "type": "string",
                  "maxLength": 200
                }
              },
              "hardViolations": {
                "type": "array",
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string",
                      "maxLength": 100
                    },
                    "match": {
                      "type": "string",
                      "maxLength": 500
                    }
                  },
                  "required": [
                    "code",
                    "match"
                  ]
                }
              },
              "structuralWarnings": {
                "type": "array",
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "code": {
                      "type": "string",
                      "maxLength": 100
                    },
                    "detail": {
                      "type": "string",
                      "maxLength": 1000
                    }
                  },
                  "required": [
                    "code",
                    "detail"
                  ]
                }
              },
              "rewriteAttempted": {
                "type": "boolean"
              }
            },
            "required": [
              "passed"
            ]
          },
          "lineage": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": false,
            "properties": {
              "sourceWorkId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sourceOutputId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sourcePostId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sourceRevision": {
                "type": "integer",
                "minimum": 1
              },
              "sourceDigest": {
                "type": "string",
                "pattern": "^[a-f0-9]{64}$"
              },
              "stale": {
                "type": "boolean"
              }
            },
            "required": [
              "sourceRevision",
              "sourceDigest"
            ]
          }
        },
        "required": [
          "kind",
          "title",
          "body"
        ]
      }
    }
  },
  "required": [
    "workId",
    "expectedRevision",
    "operationKey",
    "outputs"
  ]
}
See this operation inCLI MCP REST API
TypeScript SDK | Pipeline v2 preview