Skip to main content
POST
/
api
/
v1
/
data
/
import
/
website
Import data from a website URL
curl --request POST \
  --url https://{subdomain}.mindhunters.ai/api/v1/data/import/website \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Website Content",
  "description": "Crawled content from company website",
  "url": "https://www.example.com/sitemap.xml",
  "depth": 1
}'
{
  "success": true,
  "message": "Website crawling initiated",
  "data": {
    "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "type": "<string>",
    "path_url": "<string>",
    "path_ext": "<string>",
    "status": 123,
    "process": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"

Body

application/json
name
string
required
Example:

"Website Content"

url
string
required
Example:

"https://www.example.com/sitemap.xml"

description
string | null
Example:

"Crawled content from company website"

depth
integer | null

Crawl depth (1-3)

Example:

1

Response

Website crawling initiated

success
boolean
Example:

true

message
string
Example:

"Website crawling initiated"

data
object