Skip to main content
Welcome to the Andoria API- The Andoria API is accessible through our main query endpoint at:
https://api.andoria.ai/query

Query Parameters

Andoria Takes in the following query parameters
query
string
required
The query you want to request Andoria with
messages
ChatMessage[]
The previous messages of the conversation. This is optional, and if not provided, the andoria API will be unable to recount previous elements of the conversation. The ChatMessage type is defined below.
type ChatMessage = {
  role : "user" | "asistant",
  content  : string // this is the content of the message
}
stream
boolean
Whether you want to stream the result. If not provided, will default to false.

Response Parameters

answer
string
The main Andoria response
source_excerpts
AndoriaSourceExcerpt[]
A list of all of the sources Andoria used to generate the answer. The AndoriaSourceExcerpt type is defined below.
type AndoriaSourceExcerpt = {
  source_path : string
  title  : string 
}

Sample Queries

curl -X POST https://api.andoria.ai/query \
  -H "Content-Type: application/json" \
  -d '{"query": "I can'\''t log in to my shifts", "stream": true}' \
  --no-buffer