Skip to main content

Generate Article

POST /v1/videos/:id/article

Generate a step-by-step help article from the video's transcript. This is a synchronous endpoint — the article is returned directly in the response.

Prerequisites

The video must be analyzed first (subtitles must exist).

Path parameters

ParameterTypeRequiredDescription
idstringYesVideo ID

Request body

ParameterTypeRequiredDefaultDescription
regeneratebooleanNofalseSet to true to generate a new article even if one exists

Example

curl -X POST https://api.vidocu.ai/v1/videos/vid_.../article \
-H "Authorization: Bearer vdo_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{}'

Response 200 OK

{
"videoId": "vid_1708300000000_abc1234",
"article": {
"title": "How to Configure Dashboard Settings",
"content": "## Step 1: Open the settings panel\n\nNavigate to the settings icon in the top-right corner...\n\n## Step 2: Configure your preferences\n\n..."
}
}

Article object fields

FieldTypeDescription
titlestringGenerated article title
contentstringArticle body in Markdown format

Caching

If regenerate is false (default) and an article already exists for this video, the cached article is returned immediately without making a new generation request.

Set regenerate: true to force a fresh article.

Errors

StatusCodeCause
400validation_errorVideo must be analyzed before generating an article
401authentication_errorInvalid or missing API key
404not_foundVideo not found
500internal_errorArticle generation not configured or generation failed