AI search
curl --request POST \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/search/ai \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"q": "<string>"
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({q: '<string>'})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/search/ai', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/search/ai"
payload = { "q": "<string>" }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"payload": {}
}{
"error": "<string>"
}{}{
"error": "<string>"
}Search
AI search
Semantic AI search. Requires the ai_search feature. Rate limited per user and account.
POST
/
api
/
v1
/
accounts
/
{account_id}
/
search
/
ai
AI search
curl --request POST \
--url https://app.yampi.ai/api/v1/accounts/{account_id}/search/ai \
--header 'Content-Type: application/json' \
--header 'api_access_token: <api-key>' \
--data '
{
"q": "<string>"
}
'const options = {
method: 'POST',
headers: {api_access_token: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({q: '<string>'})
};
fetch('https://app.yampi.ai/api/v1/accounts/{account_id}/search/ai', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.yampi.ai/api/v1/accounts/{account_id}/search/ai"
payload = { "q": "<string>" }
headers = {
"api_access_token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"payload": {}
}{
"error": "<string>"
}{}{
"error": "<string>"
}