JustFlows

Management API / Content

Create content

POST/api/manage/v1/content

Creates a draft entry. Publish it afterwards with Publish content, or by sending status: "published" to Update content.

Authorization

  • Authorizationheaderrequired

    Bearer jfk_…: an API key created in Admin → Settings → API.

  • Required capabilitycontent:create

    The key and its owner must both hold it. Content scopes on the key are applied to this request as well.

Body

application/json
  • titlestringrequired
  • typestringdefault: post

    Content type slug.

  • slugstring

    Generated from the title when omitted.

  • excerptstring
  • localestring

    The site default when omitted.

  • translationGroupIdstring (uuid)

    Create this entry as a translation of an existing one.

  • blocksobject

    { version: 1, blocks: [...] } using block types from the site's catalog.

  • fieldsobject

    Custom field values for the content type.

Response

  • 201Created
  • 400Invalid body or unknown content type.
  • 401Missing, unknown, revoked, expired, or out-of-scope key.
  • 403The key or its owner lacks the required capability or scope.
  • 409The slug collides with an existing permalink.
  • 429Per-key or per-IP rate limit exceeded. Wait for the seconds in Retry-After.