curl -X POST "https://backend.botcadence.com/organizations/ORG_ID/projects/PROJECT_ID/sources/domains" \
-H "Authorization: Bearer bot_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "https://example.com",
"crawling_strategy": "deep_crawl",
"max_pages": 50,
"max_depth": 3,
"include_patterns": ["/docs/.*"],
"exclude_patterns": ["/blog/.*"],
"frequency_days": 30,
"crawler": "crawl4ai"
}'
const response = await fetch(
`https://backend.botcadence.com/organizations/${organizationId}/projects/${projectId}/sources/domains`,
{
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.BOTCADENCE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
domain: "https://example.com",
crawling_strategy: "deep_crawl",
max_pages: 50,
max_depth: 3,
include_patterns: ["/docs/.*"],
exclude_patterns: ["/blog/.*"],
frequency_days: 30,
crawler: "crawl4ai",
}),
}
);
import os
import requests
response = requests.post(
f"https://backend.botcadence.com/organizations/{organization_id}/projects/{project_id}/sources/domains",
headers={
"Authorization": f"Bearer {os.environ['BOTCADENCE_API_KEY']}",
"Content-Type": "application/json",
},
json={
"domain": "https://example.com",
"crawling_strategy": "deep_crawl",
"max_pages": 50,
"max_depth": 3,
"include_patterns": ["/docs/.*"],
"exclude_patterns": ["/blog/.*"],
"frequency_days": 30,
"crawler": "crawl4ai",
},
)
{
"status": "success",
"message": "Domain added successfully",
"data": null,
"status_code": 201
}
Sources
Upload domains
Crawl a domain into the project knowledge base
POST
/
organizations
/
{organization_id}
/
projects
/
{project_id}
/
sources
/
domains
curl -X POST "https://backend.botcadence.com/organizations/ORG_ID/projects/PROJECT_ID/sources/domains" \
-H "Authorization: Bearer bot_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "https://example.com",
"crawling_strategy": "deep_crawl",
"max_pages": 50,
"max_depth": 3,
"include_patterns": ["/docs/.*"],
"exclude_patterns": ["/blog/.*"],
"frequency_days": 30,
"crawler": "crawl4ai"
}'
const response = await fetch(
`https://backend.botcadence.com/organizations/${organizationId}/projects/${projectId}/sources/domains`,
{
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.BOTCADENCE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
domain: "https://example.com",
crawling_strategy: "deep_crawl",
max_pages: 50,
max_depth: 3,
include_patterns: ["/docs/.*"],
exclude_patterns: ["/blog/.*"],
frequency_days: 30,
crawler: "crawl4ai",
}),
}
);
import os
import requests
response = requests.post(
f"https://backend.botcadence.com/organizations/{organization_id}/projects/{project_id}/sources/domains",
headers={
"Authorization": f"Bearer {os.environ['BOTCADENCE_API_KEY']}",
"Content-Type": "application/json",
},
json={
"domain": "https://example.com",
"crawling_strategy": "deep_crawl",
"max_pages": 50,
"max_depth": 3,
"include_patterns": ["/docs/.*"],
"exclude_patterns": ["/blog/.*"],
"frequency_days": 30,
"crawler": "crawl4ai",
},
)
{
"status": "success",
"message": "Domain added successfully",
"data": null,
"status_code": 201
}
Adds a domain crawl source and queues discovery/indexing. Returns
201 Created.
Authentication
Path parameters
Body
Response
Success message confirming the domain crawl was queued.data is typically null.
Errors
curl -X POST "https://backend.botcadence.com/organizations/ORG_ID/projects/PROJECT_ID/sources/domains" \
-H "Authorization: Bearer bot_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "https://example.com",
"crawling_strategy": "deep_crawl",
"max_pages": 50,
"max_depth": 3,
"include_patterns": ["/docs/.*"],
"exclude_patterns": ["/blog/.*"],
"frequency_days": 30,
"crawler": "crawl4ai"
}'
const response = await fetch(
`https://backend.botcadence.com/organizations/${organizationId}/projects/${projectId}/sources/domains`,
{
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.BOTCADENCE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
domain: "https://example.com",
crawling_strategy: "deep_crawl",
max_pages: 50,
max_depth: 3,
include_patterns: ["/docs/.*"],
exclude_patterns: ["/blog/.*"],
frequency_days: 30,
crawler: "crawl4ai",
}),
}
);
import os
import requests
response = requests.post(
f"https://backend.botcadence.com/organizations/{organization_id}/projects/{project_id}/sources/domains",
headers={
"Authorization": f"Bearer {os.environ['BOTCADENCE_API_KEY']}",
"Content-Type": "application/json",
},
json={
"domain": "https://example.com",
"crawling_strategy": "deep_crawl",
"max_pages": 50,
"max_depth": 3,
"include_patterns": ["/docs/.*"],
"exclude_patterns": ["/blog/.*"],
"frequency_days": 30,
"crawler": "crawl4ai",
},
)
{
"status": "success",
"message": "Domain added successfully",
"data": null,
"status_code": 201
}

