Skip to main content
POST
/
knowledge
/
search
Search through all files in data folders shared with the API Key
curl --request POST \
  --url https://api.langdock.com/knowledge/search \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "API Documentation"
}
'
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.

Authorizations

Authorization
string
header
required

API key as Bearer token. Format "Bearer YOUR_API_KEY"

Headers

Authorization
string
required

API key as Bearer token. Format "Bearer YOUR_API_KEY"

Body

application/json
query
string
required

The search query

Example:

"API Documentation"

Response

200

Successfully found search result