Skip to main content
POST
/
agent-websites
Add websites to agent knowledge base
curl --request POST \
  --url https://app.phonely.ai/api/agent-websites \
  --header 'Content-Type: application/json' \
  --header 'X-Authorization: <api-key>' \
  --data '{
  "uid": "<string>",
  "agentId": "<string>",
  "url": "<string>",
  "limit": 5,
  "maxDepth": 1,
  "excludePaths": [
    "<string>"
  ],
  "includePaths": [
    "<string>"
  ]
}'
{
  "message": "<string>"
}

Authorizations

X-Authorization
string
header
required

Body

application/json
uid
string
required

User ID

agentId
string
required

Agent ID

url
string<uri>
required

Base URL to crawl

limit
integer
default:5

Maximum number of pages to crawl (max 10)

Required range: 1 <= x <= 10
maxDepth
integer
default:1

Maximum crawling depth (max 10)

Required range: 1 <= x <= 10
excludePaths
string[]

Array of URL paths to exclude from crawling

includePaths
string[]

Array of URL paths to include in crawling (if specified, only these paths will be crawled)

Response

Websites added successfully

message
string
I