Skip to main content

Embed URL content

POST 
/ai/embeddings/url

Embed website content from a specified URL, including child pages up to 5 levels deep within the same domain. The process crawls and loads content from the main URL and its linked pages into a Telnyx Cloud Storage bucket. As soon as each webpage is added to the bucket, its content is immediately processed for embeddings, that can be used for similarity search and clustering.

Request

Body

required

    url URL (string)required

    The URL of the webpage to embed

    bucket_name Bucket Name (string)required

    Name of the bucket to store the embeddings. This bucket must already exist.

Responses

200: Successful Response

422: Validation Error

Request samples


curl -L 'https://api.telnyx.com/v2/ai/embeddings/url' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"url": "string",
"bucket_name": "string"
}'

Response samples


{
"data": {
"task_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"task_name": "string",
"status": "string",
"created_at": "string",
"finished_at": "string",
"user_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}