Last updated: June 25, 2026
Use these endpoints to query indexed website content from your agents and backend services. All site-scoped routes use the site UUID from your dashboard.
Base URL
https://chatwithyoursite.comAuthentication
All API routes require an API key.
Sign in and open API keys to create keys. Send the key as a Bearer token:
Authorization: Bearer cwy_your_api_key_hereSearch indexed content
Semantic search over chunks from a ready site. Use this before generating a reply in your own agent or chat UI.
/api/sites/{site}/search
Request body
{
"query": "refund policy",
"limit": 10
}query— required, max 500 characterslimit— optional, 1–50, defaults to 20
Response
{
"data": [
{
"content": "Our refund policy allows returns within 30 days...",
"page_title": "Returns & refunds",
"page_url": "https://example.com/refunds",
"similarity": 0.82
}
]
}Example
curl -X POST https://chatwithyoursite.com/api/sites/550e8400-e29b-41d4-a716-446655440000/search \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Bearer cwy_your_api_key_here" \
-d '{"query":"refund policy","limit":5}'