POST
/
upload
/
scrape_webpage
curl --request POST \
  --url https://api.usecortex.ai/upload/scrape_webpage \
  --header 'Authorization: Bearer <token>'

Scrapes and processes content from a public webpage.

Sample Request

curl --location 'https://api.usecortex.ai/upload/scrape_webpage?web_url={WEB_URL}&tenant_id={TENANT_ID}&sub_tenant_id={SUB_TENANT_ID}' \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'accept: application/json'

🔐 Headers

  • Authorization: Bearer token
  • accept: application/json

🧾 Parameters

  • web_url (string, required): The public URL to scrape (query parameter)
  • tenant_id (string, required): Tenant identifier (query parameter)
  • sub_tenant_id (string, optional): Sub-tenant identifier (query parameter)

Authorizations

Authorization
string
header
required

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

Query Parameters

web_url
string
required

The public URL to scrape

tenant_id
string
required

Tenant identifier

sub_tenant_id
string

Sub-tenant identifier

Response

200

Webpage scraped successfully

POST
/
upload
/
scrape_webpage
curl --request POST \
  --url https://api.usecortex.ai/upload/scrape_webpage \
  --header 'Authorization: Bearer <token>'

Scrapes and processes content from a public webpage.

Sample Request

curl --location 'https://api.usecortex.ai/upload/scrape_webpage?web_url={WEB_URL}&tenant_id={TENANT_ID}&sub_tenant_id={SUB_TENANT_ID}' \
  --header 'Authorization: Bearer {API_KEY}' \
  --header 'accept: application/json'

🔐 Headers

  • Authorization: Bearer token
  • accept: application/json

🧾 Parameters

  • web_url (string, required): The public URL to scrape (query parameter)
  • tenant_id (string, required): Tenant identifier (query parameter)
  • sub_tenant_id (string, optional): Sub-tenant identifier (query parameter)

Authorizations

Authorization
string
header
required

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

Query Parameters

web_url
string
required

The public URL to scrape

tenant_id
string
required

Tenant identifier

sub_tenant_id
string

Sub-tenant identifier

Response

200

Webpage scraped successfully