---
title: "Answers a conversational question using SkyCofl knowledge and read-only API tools. At most the five most recent user/assistant rounds are accepted."
method: POST
path: "/api/data/ai"
tags: ["Info"]
---

# Answers a conversational question using SkyCofl knowledge and read-only API tools. At most the five most recent user/assistant rounds are accepted.

`POST /api/data/ai`

## Request

- Base URL: `https://sky.coflnet.com` (the document declares no server; this is the origin it was published from)
- URL: `https://sky.coflnet.com/api/data/ai`
- Auth: none declared

## Request body

- AiChatRequest: Represents an AI chat request.
  - `conversationId` string, nullable: Opaque server-issued conversation id. Omit it to start a new conversation.
  - `message` string, required: Gets or sets the message.
  - `page` string, nullable: The current site path, used only to keep answers relevant and linkable.

## Response `200`

OK

- AiChatResponse: Represents an AI chat response.
  - `answer` string, nullable: Gets or sets the answer.
  - `conversationId` string, nullable: Gets or sets the conversation id.
  - `traceId` string, nullable: Gets or sets the trace id.
  - `transcriptBytes` integer, required: Gets or sets the transcript bytes.
  - `transcriptLimit` integer, required: Gets or sets the transcript limit.
  - `requiresNewConversation` boolean, required: Gets or sets the requires new conversation.
  - `requiresBugReport` boolean, required: Gets or sets the requires bug report.
  - `error` string, nullable: Gets or sets the error.
  - `quota` AiQuota: Represents an AI usage quota.
    - `limit` integer, required: Gets or sets the limit.
    - `remaining` integer, required: Gets or sets the remaining.
    - `resetsAt` string, date-time, required: Gets or sets the resets at.
    - `tier` string, nullable: Gets or sets the tier.
  - `dataNotice` string, nullable: Gets or sets the data notice.

## Changes

- **2026-08-04** `41f7cdd4406b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/coflnet/apis/skyapi/changes/api/data/ai/post.md)

---

[API](https://skmtc.dev/coflnet/apis/skyapi.md) - [All operations](https://skmtc.dev/coflnet/apis/skyapi/llms.txt) - [OpenAPI document](https://skmtc.dev/coflnet/apis/skyapi/revisions/c787372dc7a2?raw)
