Creates a content item in your project
curl --request POST \
--url https://api.beyondwords.io/v1/projects/{project_id}/content \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"type": "auto_segment",
"title": "<h1 data-beyondwords-marker=\"h1-title\">Example title</h1>",
"summary": "<h2 data-beyondwords-marker=\"h2-summary\">This article is about TTS</h2>",
"body": "<p data-beyondwords-marker=\"paragraph-1\">Example body</p>",
"title_enabled": true,
"body_enabled": true,
"summary_enabled": true,
"source_id": "example-source-id",
"source_url": "https://example.com/some-article",
"author": "John Smith",
"image_url": "https://example.com/image.jpeg",
"metadata": {
"key": "value"
},
"published": true,
"publish_date": "2023-01-01 00:00:00 UTC",
"ads_enabled": true,
"auto_segment_updates_enabled": true,
"title_voice_id": 1,
"summary_voice_id": 1,
"body_voice_id": 1
}'
{
"id": "d7dfd636-098c-4b1b-83e5-15a3cba5a0bd",
"status": "queued",
"title": "<h1 data-beyondwords-marker=\"h1-title\">Example title</h1>",
"summary": "<h2 data-beyondwords-marker=\"h2-summary\">This article is about TTS</h2>",
"body": "<p data-beyondwords-marker=\"paragraph-1\">Example body</p>",
"title_enabled": true,
"body_enabled": true,
"summary_enabled": true,
"source_id": "example-source-id",
"source_url": "https://example.com/some-article",
"author": "John Smith",
"image_url": "https://example.com/image.jpeg",
"metadata": {
"key": "value"
},
"audio": [],
"video": [],
"segments": [],
"ads_enabled": true,
"auto_segment_updates_enabled": true,
"created": "2023-01-01 00:00:00 UTC",
"updated": "2023-01-01 00:00:05 UTC"
}
The numeric ID of your project
The level of detail to show for segments in the response: 'none', 'partial' or 'full'
partial
, full
Create content with auto segment type
successful
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.beyondwords.io/v1/projects/{project_id}/content \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '{
"type": "auto_segment",
"title": "<h1 data-beyondwords-marker=\"h1-title\">Example title</h1>",
"summary": "<h2 data-beyondwords-marker=\"h2-summary\">This article is about TTS</h2>",
"body": "<p data-beyondwords-marker=\"paragraph-1\">Example body</p>",
"title_enabled": true,
"body_enabled": true,
"summary_enabled": true,
"source_id": "example-source-id",
"source_url": "https://example.com/some-article",
"author": "John Smith",
"image_url": "https://example.com/image.jpeg",
"metadata": {
"key": "value"
},
"published": true,
"publish_date": "2023-01-01 00:00:00 UTC",
"ads_enabled": true,
"auto_segment_updates_enabled": true,
"title_voice_id": 1,
"summary_voice_id": 1,
"body_voice_id": 1
}'
{
"id": "d7dfd636-098c-4b1b-83e5-15a3cba5a0bd",
"status": "queued",
"title": "<h1 data-beyondwords-marker=\"h1-title\">Example title</h1>",
"summary": "<h2 data-beyondwords-marker=\"h2-summary\">This article is about TTS</h2>",
"body": "<p data-beyondwords-marker=\"paragraph-1\">Example body</p>",
"title_enabled": true,
"body_enabled": true,
"summary_enabled": true,
"source_id": "example-source-id",
"source_url": "https://example.com/some-article",
"author": "John Smith",
"image_url": "https://example.com/image.jpeg",
"metadata": {
"key": "value"
},
"audio": [],
"video": [],
"segments": [],
"ads_enabled": true,
"auto_segment_updates_enabled": true,
"created": "2023-01-01 00:00:00 UTC",
"updated": "2023-01-01 00:00:05 UTC"
}