POST
/
v0
/
chatbots
/
{chatbotId}
/
links
curl --request POST \
  --url https://sitegpt.ai/api/v0/chatbots/{chatbotId}/links \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "links": [
    {
      "url": "https://sitegpt.ai",
      "urlType": "WEB"
    },
    {
      "url": "https://sitegpt.ai/pricing",
      "urlType": "WEB"
    },
    {
      "url": "https://sitegpt.ai/login",
      "urlType": "WEB"
    },
    {
      "url": "https://sitegpt.ai/contact-us",
      "urlType": "WEB"
    },
    {
      "url": "https://sitegpt.ai/terms",
      "urlType": "WEB"
    }
  ]
}'
{
  "success": true,
  "message": "Added links to the chatbot successfully",
  "data": {}
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

chatbotId
string
required

Id of the chatbot

Body

application/json
links
object[]
required

Details of the links that needs to be added to the chatbot

Response

200 - application/json
success
boolean

Indicates whether this is success response or error response

message
string

Overall message regarding the operation performed

data
object

Data returned from the server