stet
API reference

Set content from Markdown

Requires `write` (`broadcast:compose`). Converts Markdown to blocks and reconciles them via the same doc-is-truth path as `PUT .../blocks`. Draft-only — `409` on any other status. A construct the converter can't represent (images, raw HTML, tables, nested list blocks) 400s with `UnsupportedMarkdownProblem` instead of silently dropping content.

POST/api/broadcasts/{id}/content
AuthorizationBearer <token>

A Stet API key (prefix bk_), created under Settings → API keys. The whole API requires the Growth plan or higher; keys are scoped read or write — composing and sending require write.

In: header

Path Parameters

idstring
markdownstring

Shorthand for one universal (no-audience) segment.

segmentsarray<ContentSegment>
Items1 <= items

Response Body

curl -X POST "https://app.stethq.com/api/broadcasts/string/content" \  -H "Content-Type: application/json" \  -d '{    "markdown": "string"  }'
{
  "blocks": [
    {
      "id": "string",
      "position": 0,
      "type": "string",
      "audienceIds": [
        "string"
      ]
    }
  ]
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string"
}