Skip to main content

Request

curl -X POST https://api.docfiy.com/api/sites/acme-docs/search \
  -H "Content-Type: application/json" \
  -d '{ "query": "custom domain", "semantic": true }'

Set "semantic": true to use vector search when embeddings are indexed for the site. Otherwise keyword search is used.

Response

{
  "mode": "semantic",
  "results": [
    {
      "title": "Custom domains",
      "url": "/customize/custom-domain",
      "snippet": "Custom domains",
      "score": 0.89
    }
  ]
}