Skip to main content
POST

Request Body

agent_id
string
required
The agent’s public ID (ag_*)
url
string
required
YouTube video URL
Supported URL formats:
  • https://www.youtube.com/watch?v=VIDEO_ID
  • https://youtu.be/VIDEO_ID

Response 201

The transcript is extracted and indexed asynchronously. Check status via List Sources.
Note: The video must have captions/subtitles available (auto-generated or manual).

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request to add a YouTube video to knowledge base.

user_id
string
required
url
string
required

Response

Successful Response