GET
/
v0
/
fetch-links
curl --request GET \
  --url https://sitegpt.ai/api/v0/fetch-links \
  --header 'Authorization: Bearer <token>'
{
  "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
headerrequired

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

Query Parameters

sourceUrl
string
required

URL from which all the internal links to be fetched

sourceType
enum<string>
default: WEBSITErequired

Type 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