---
title: "Ask a question to AskAI"
method: POST
path: "/ask-ai-query"
---

# Ask a question to AskAI

`POST /ask-ai-query`

## Request body

- object
  - `id` string, required — AskAI ID
  - `api_key` string, required — AskAI API Key
  - `query` string, required — Question to AskAI

## Response `200`

Successful response

- object
  - `answer` string — Answer from AskAI
  - `references` object[]
    - `content` string — Content of the reference
    - `link` string, uri — Link to the reference
    - `score` number, float — Score of the reference
    - `title` string — Title of the reference
  - `suggestedQuestions` string[] — Array of suggested follow-up questions
  - `unknown_answer` 'no' | 'yes' — Indicates if the answer is known or not

---

[API](https://skmtc.net/myaskai/apis/askai-chat-api.md) · [All operations](https://skmtc.net/myaskai/apis/askai-chat-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaskai/askai-chat-api/versions/fc903e784d99/schema)
