POST
/
upload
/
scrape_webpage
cURL
curl --request POST \
  --url https://api.usecortex.ai/upload/scrape_webpage \
  --header 'Authorization: Bearer <token>' \
  --header 'accept: <accept>'
{
  "success": true,
  "message": "Scrape webpage job uploaded to S3 and SQS.",
  "file_id": "ScrapeJobcfe5d09bf58047b8922908dc8ea967371753161944"
}

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'

Authorizations

Authorization
string
header
required

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

Headers

Authorization
string
required

Bearer token (Firebase token)

accept
string
default:application/json
required

Response content type

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
application/json

Webpage scraped successfully

The response is of type object.