Ask a question about saved pages
curl --request POST \
--url https://api.webstashai.com/ask \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"history": [
{
"content": "<string>"
}
],
"conversation_id": "<string>",
"context_page_ids": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: '<string>',
history: [{content: '<string>'}],
conversation_id: '<string>',
context_page_ids: ['<string>']
})
};
fetch('https://api.webstashai.com/ask', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/ask"
payload = {
"query": "<string>",
"history": [{ "content": "<string>" }],
"conversation_id": "<string>",
"context_page_ids": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>"
}Ask a question about saved pages
POST
https://api.webstashai.com
/
ask
Ask a question about saved pages
curl --request POST \
--url https://api.webstashai.com/ask \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "<string>",
"history": [
{
"content": "<string>"
}
],
"conversation_id": "<string>",
"context_page_ids": [
"<string>"
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
query: '<string>',
history: [{content: '<string>'}],
conversation_id: '<string>',
context_page_ids: ['<string>']
})
};
fetch('https://api.webstashai.com/ask', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.webstashai.com/ask"
payload = {
"query": "<string>",
"history": [{ "content": "<string>" }],
"conversation_id": "<string>",
"context_page_ids": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Body
application/json
Response
Answer or stream response
