Query API
Use the Query API to create an integratation with your AI agent.
Last updated
Was this helpful?
Use the Query API to create an integratation with your AI agent.
Last updated
Was this helpful?
With our API you can build your own internal tools or workflows and harness the power of your AI agent wherever you want, however you want.
The API is powerful, but very simple. You input a question and get an answer back, along with the references/content used in the answer.
See full details of the API below. Alternatively, you can use our pre-built integrations with Slack, Microsoft Teams or Zapier.
AskAI ID
AskAI API Key
Question to AskAI
POST /api/1.1/wf/ask-ai-query HTTP/1.1
Host: myaskai.com
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"id": "text",
"api_key": "text",
"query": "text"
}
Successful response
{
"answer": "text",
"references": [
{
"content": "text",
"link": "https://example.com",
"score": 1,
"title": "text"
}
],
"suggestedQuestions": [
"text"
],
"unknown_answer": "no"
}