---
title: "Add Webpage"
method: POST
path: "/chatbots/{chatbot_id}/webpages"
tags: ["Chatbot Webpages"]
---

# Add Webpage

`POST /chatbots/{chatbot_id}/webpages`

## Request

- Base URL: `https://app.boei.help/api/v1`
- URL: `https://app.boei.help/api/v1/chatbots/{chatbot_id}/webpages`
- Auth: HTTP bearer

Add a URL to the chatbot's training sources. The page will be automatically crawled and trained.
If the URL already exists, it will be retrained.

NOTE: Crawling runs in the background. Poll webpages.get until status is completed. Re-adding an existing URL retrains it.

## Request body

- object
  - `url` string, required: The URL to crawl and train.

## Response `200`

URL already exists

- object
  - `id` string
  - `url` string
  - `status` string
  - `already_exists` boolean

## Other responses

- `201`
- `403`

---

[API](https://skmtc.dev/boei/apis/boei-api.md) - [All operations](https://skmtc.dev/boei/apis/boei-api/llms.txt) - [OpenAPI document](https://skmtc.dev/boei/apis/boei-api/revisions/fc439667d2d4?raw)
