---
title: "Chat with AskAI"
method: POST
path: "/ask-ai-chat"
---

# Chat with AskAI

`POST /ask-ai-chat`

## Request body

- object
  - `id` string, required — AskAI ID
  - `api_key` string, required — AskAI API Key
  - `messages` object[], required
    - `role` string — Role in the conversation (user or assistant)
    - `content` string — Content of the message

## 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

---

[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)
