Publications

Build publication copy from an idea

Creates canonical and destination-specific copy for review. It does not save, schedule, or publish anything.

post/post-builder/generate

Request

  • Base URL: https://app.openpo.st/api/v1
  • URL: https://app.openpo.st/api/v1/post-builder/generate
  • Auth: one of:
    • HTTP bearer
    • API key in cookie openpost_session

Request body

$schemastring uri

A URL to the JSON Schema for this object.

ideastring required

Rough idea to turn into post copy

social_account_idsstring[] nullable required

Destinations to write for

workspace_idstring required

Workspace ID

Example request

{
  "$schema": "https://example.com/api/v1/schemas/GeneratePostInputBody.json"
}

Response

OK

$schemastring uri

A URL to the JSON Schema for this object.

modelstring required

Model that generated the copy

source_textstring required

Canonical publication copy

Example response

{
  "$schema": "https://example.com/api/v1/schemas/GeneratePostOutputBody.json"
}

Changes

No recorded changes to this operation across all 1 revision of this API.