Skip to main content
POST
/
projects
/
{project_id}
/
content
/
{id}
/
regenerate
Regenerate
curl --request POST \
  --url https://api.beyondwords.io/v1/projects/{project_id}/content/{id}/regenerate \
  --header 'X-Api-Key: <api-key>'
{
  "id": "<string>",
  "status": "draft",
  "type": "auto_segment",
  "title": "<string>",
  "summary": "<string>",
  "body": "<string>",
  "title_enabled": true,
  "body_enabled": true,
  "summary_enabled": true,
  "summary_title_enabled": true,
  "source_id": "<string>",
  "source_url": "<string>",
  "author": "<string>",
  "image_url": "<string>",
  "metadata": {},
  "audio": [
    {
      "id": 123,
      "variant": "article",
      "orientation": "16:9",
      "content_type": "audio/mpeg",
      "url": "<string>",
      "duration": 123,
      "base64_file": "<string>"
    }
  ],
  "video": [
    {
      "id": 123,
      "variant": "article",
      "orientation": "16:9",
      "content_type": "video/mp4",
      "url": "<string>",
      "duration": 123,
      "base64_file": "<string>"
    }
  ],
  "audio_with_intro_outro": [
    {
      "id": 123,
      "variant": "article",
      "orientation": "16:9",
      "content_type": "audio/mpeg",
      "url": "<string>",
      "duration": 123,
      "base64_file": "<string>"
    }
  ],
  "summarization": {
    "audio": [
      {
        "id": 123,
        "variant": "article",
        "orientation": "16:9",
        "content_type": "audio/mpeg",
        "url": "<string>",
        "duration": 123,
        "base64_file": "<string>"
      }
    ],
    "video": [
      {
        "id": 123,
        "variant": "article",
        "orientation": "16:9",
        "content_type": "video/mp4",
        "url": "<string>",
        "duration": 123,
        "base64_file": "<string>"
      }
    ]
  },
  "segments": [
    {
      "id": 123,
      "marker": "<string>",
      "xpath": "<string>",
      "md5": "<string>",
      "section": "title",
      "content_type": "text",
      "text": "<string>",
      "audio_url": "<string>",
      "image_url": "<string>",
      "preprocessing_settings": {
        "ai_preprocessing_enabled": true
      },
      "start_time": 1,
      "duration": 1,
      "created": "2023-11-07T05:31:56Z",
      "updated": "2023-11-07T05:31:56Z",
      "video_settings": {
        "enabled": true,
        "volume": 123,
        "crop_coordinates": {
          "16:9": [
            123
          ],
          "9:16": [
            123
          ]
        }
      }
    }
  ],
  "published": true,
  "video_published": true,
  "publish_date": "<string>",
  "ads_enabled": true,
  "ai_summary_prompt": "<string>",
  "ai_summary_updates_enabled": true,
  "auto_segment_updates_enabled": true,
  "background_track": {
    "enabled": true,
    "track": {
      "id": 123,
      "name": "<string>",
      "custom": true,
      "volume": 123,
      "url": "<string>"
    }
  },
  "feature_image": {
    "url": "<string>",
    "video_settings": {
      "enabled": true,
      "crop_coordinates": {
        "16:9": [
          123
        ],
        "9:16": [
          123
        ]
      }
    }
  },
  "feature_video": {
    "url": "<string>",
    "video_settings": {
      "enabled": true,
      "volume": 123,
      "crop_coordinates": {
        "16:9": [
          123
        ],
        "9:16": [
          123
        ]
      }
    }
  },
  "summarization_settings": {
    "enabled": true,
    "prompt": "<string>",
    "model": "gpt-3.5-turbo",
    "temperature": 1,
    "limit_token_usage": 1500,
    "template": [
      {
        "id": 123,
        "slug": "<string>",
        "name": "<string>",
        "model": "gpt-3.5-turbo",
        "prompt": "<string>",
        "temperature": 1,
        "limit_token_usage": 250
      }
    ]
  },
  "video_settings": {
    "enabled": true,
    "audio_and_waveform_enabled": true,
    "background_color": "<string>",
    "content_image_enabled": true,
    "image_extraction_enabled": true,
    "logo_image_position": "top-left",
    "logo_image_url": "<string>",
    "pan_and_zoom_enabled": true,
    "text_transform": "none",
    "text_background_color": "<string>",
    "text_captions_enabled": true,
    "text_color": "<string>",
    "text_secondary_color": "<string>",
    "text_highlight_color": "<string>",
    "text_highlight_secondary_color": "<string>",
    "text_highlight_background_color": "<string>",
    "text_shadow": "<string>",
    "text_highlight_shadow": "<string>",
    "text_stroke": "<string>",
    "text_highlight_stroke": "<string>",
    "text_fonts": [
      "<string>"
    ],
    "text_font_size": 60,
    "text_lines": 3,
    "text_words": 2,
    "text_horizontal_align": "start",
    "text_vertical_align": "start",
    "text_animation": "classic",
    "entrance_animation": "none",
    "exit_animation": "none",
    "waveform_color": "<string>",
    "playback_mode": "cycle",
    "cycle_time": 30500,
    "variants": [
      "<string>"
    ],
    "template": [
      {
        "id": 123,
        "slug": "<string>",
        "name": "<string>",
        "logo_image_url": "<string>",
        "logo_image_position": "top-left",
        "background_color": "<string>",
        "text_transform": "none",
        "text_background_color": "<string>",
        "text_color": "<string>",
        "text_secondary_color": "<string>",
        "text_highlight_color": "<string>",
        "text_highlight_secondary_color": "<string>",
        "text_highlight_background_color": "<string>",
        "text_shadow": "<string>",
        "text_highlight_shadow": "<string>",
        "text_stroke": "<string>",
        "text_highlight_stroke": "<string>",
        "text_fonts": [
          "<string>"
        ],
        "text_font_size": 60,
        "text_lines": 3,
        "text_words": 2,
        "text_horizontal_align": "start",
        "text_vertical_align": "start",
        "text_animation": "classic",
        "entrance_animation": "none",
        "exit_animation": "none",
        "waveform_color": "<string>",
        "content_image_enabled": true,
        "image_extraction_enabled": true,
        "pan_and_zoom_enabled": true,
        "audio_and_waveform_enabled": true,
        "text_captions_enabled": true,
        "playback_mode": "cycle",
        "cycle_time": 30500,
        "template": "<unknown>"
      }
    ]
  },
  "preprocessing_settings": {
    "ai_preprocessing_enabled": true
  },
  "language": "<string>",
  "created": "2023-11-07T05:31:56Z",
  "updated": "2023-11-07T05:31:56Z"
}

Authorizations

X-Api-Key
string
header
required

Path Parameters

project_id
string
required

project_id

id
string
required

id

Response

200 - application/json

successful

id
string | null

Unique identifier for the content. Can be either a UUID or an externally provided source_id

status
enum<string>

The current status of the content processing operation. This value will change as the content is processed.

Available options:
draft,
queued,
processing,
processed,
skipped,
error
type
enum<string>

The content type. Possible values are auto_segment, manual_segment or audio_upload

Available options:
auto_segment,
manual_segment,
audio_upload
title
string | null

The content title

Required string length: 1 - 500
summary
string | null

The content summary

Maximum string length: 2000
body
string | null

The content body

Maximum string length: 100000
title_enabled
boolean

The flag to enable title segments in audio

body_enabled
boolean

The flag to enable body segments in audio

summary_enabled
boolean

The flag to enable summary audio

summary_title_enabled
boolean

The flag to include title text and audio segments in summaries

source_id
string | null

The externally-provided source identifier of the content

source_url
string | null

The URL that contains the source content

author
string | null

The author of the content

image_url
string | null
deprecated

The feature image URL of the content

metadata
object

The arbitrary metadata associated with content

audio
object[]

The array of audio files for the entire content

video
object[]

The array of video files for the entire content

audio_with_intro_outro
object[]
summarization
object
segments
object[] | null

The array of segments in the content

published
boolean

Whether the content will appear in the BeyondWords players and podcast feeds

video_published
boolean

Whether the content will appear in the BeyondWords video players and podcast video feeds

publish_date
string | null

Time at which the content was published or is scheduled to be published (ISO 8601)

ads_enabled
boolean

Whether adverts will play for this content in the BeyondWords players

ai_summary_prompt
string | null

The last used AI prompt for summary generation

Maximum string length: 1000
ai_summary_updates_enabled
boolean

Whether the summary segments will be regenerated when the text content is updated

auto_segment_updates_enabled
boolean

Whether the media files will be regenerated when the text content is updated with auto_segment

background_track
object
feature_image
object
feature_video
object
summarization_settings
object
video_settings
object
preprocessing_settings
object
language
string | null

The default language of the content

created
string<date-time>

Time at which the object was created (ISO 8601)

updated
string<date-time>

Time at which the object was updated (ISO 8601)