Search Space Pages
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/spaces/search \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"query": "<string>",
"address": "<string>",
"limit": 10
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/spaces/search"
payload = {
"query": "<string>",
"address": "<string>",
"limit": 10
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', address: '<string>', limit: 10})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/spaces/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"address": "<string>",
"id": "<string>",
"title": "<string>",
"excerpt": "<string>",
"score": 123,
"updated_at": "<string>"
}
],
"has_more": true,
"object": "search_result"
}Spaces
Search Space Pages
Find the pages closest in meaning to a question, within your spaces.
POST
/
api
/
v1
/
spaces
/
search
Search Space Pages
curl --request POST \
--url https://{tenant_id}.api.useago.com/api/v1/spaces/search \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"query": "<string>",
"address": "<string>",
"limit": 10
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/spaces/search"
payload = {
"query": "<string>",
"address": "<string>",
"limit": 10
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: '<string>', address: '<string>', limit: 10})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/spaces/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"address": "<string>",
"id": "<string>",
"title": "<string>",
"excerpt": "<string>",
"score": 123,
"updated_at": "<string>"
}
],
"has_more": true,
"object": "search_result"
}Body
application/json
