Chatbot Links
Fetch Links
Fetch all the internal links of a source URL
GET
/
v0
/
fetch-links
Authorization
Query
curl --request GET \
--url https://sitegpt.ai/api/v0/fetch-links \
--header 'Authorization: <authorization>'
{
"success": true,
"message": "Fetched all the links successfully",
"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"
}
]
}
}
Authorizations
Authorization
string
headerrequiredBearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
sourceUrl
string
requiredURL from which all the internal links to be fetched
sourceType
enum<string>
default: WEBSITErequiredType of the source URL
Available options:
WEBSITE
, SITEMAP
, ZENDESK
, GITBOOK
, SINGLE_LINK
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
Was this page helpful?
curl --request GET \
--url https://sitegpt.ai/api/v0/fetch-links \
--header 'Authorization: <authorization>'
{
"success": true,
"message": "Fetched all the links successfully",
"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"
}
]
}
}