TrainingProject URLs

Add Training URL

Add a new webpage URL to your chatbot's knowledge base. The content is crawled and indexed automatically. You can provide multiple URLs separated by commas. **Permission required:** Training > Write

Add a new webpage URL to your chatbot's knowledge base. The content is crawled and indexed automatically. You can provide multiple URLs separated by commas.

Permission required: Training > Write

POST
/createProjectUrl

Authorization

bearerToken

AuthorizationBearer <token>

API token for YourGPT Public APIs. Create tokens in Settings > API Tokens in your YourGPT dashboard.

In: header

Request Body

application/json

project_uid*string

Project identifier.

url*string

URL to add. Multiple URLs can be comma-separated.

tags?string

Comma-separated tags to assign.

reindex_period?string

Auto re-crawl schedule.

Value in"weekly" | "monthly"

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://api.yourgpt.ai/chatbot/v1/createProjectUrl" \  -H "Content-Type: application/json" \  -d '{    "project_uid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",    "url": "https://example.com/docs"  }'
{
  "type": "RXSUCCESS",
  "message": "Data Created Successfully!",
  "data": [
    {
      "id": 1001,
      "project_id": 12345,
      "url": "https://example.com",
      "status": "pending",
      "tags": null,
      "createdAt": "2025-01-15T10:30:00.000Z",
      "updatedAt": "2025-01-15T10:30:00.000Z"
    }
  ]
}
{
  "type": "RXERROR",
  "message": "Please provide a valid Project Uid"
}
{
  "type": "RXERROR",
  "message": "Invalid or expired API token"
}
{
  "type": "RXERROR",
  "message": "You have already reached the webpage limit"
}