---
title: "Detailed answer"
method: POST
path: "/v0/aice/{orgid}/{projectid}/answer"
tags: ["Answers"]
---

# Detailed answer

`POST /v0/aice/{orgid}/{projectid}/answer`

Answer the given natural language question. Returns details used to arrive at the answer. Please note, it only has the capability to answer questions on structured data.

The payload should contain the question, and optionally, any supplemental context that could be beneficial, such as additional information from a second query attempt after the user has provided further context.

## Path parameters

- `orgid` string, required
- `projectid` string, required

## Query parameters

- `demo` boolean

## Request body

- QuestionPayload
  - `chatContext` string — The context of the chat so far (optional).
  - `question` string — A question that can be answered by structured data, written in English.

## Response `200`

default response

- DetailedAnswerResponse
  - `answer` string, required
  - `evidence` ThoughtEvidence[]
    - `content` string
    - `timestamp` string, date-time
    - `type` string
  - `ontologyUsed` string
  - `questionUrl` string
  - `result` ResultTable
    - `data` object[]
    - `schema` Schema, required
      - `fields` Field[], required
        - `name` string, required
        - `type` string, required
  - `sparql` string
  - `sql` FederatedQuery
    - `dialect` string — The dialect of the query, e.g. dwSQL.
    - `query` string — The query to be executed.
  - `targetSql` FederatedQuery[] — The SQL queries executed on the specified, federated sources.
    - `dialect` string — The dialect of the query, e.g. dwSQL.
    - `query` string — The query to be executed.
  - `terms` Term[]
    - `definition` string
    - `term` string
    - `url` string

---

[API](https://skmtc.dev/data/apis/data-world-public-api.md) · [All operations](https://skmtc.dev/data/apis/data-world-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/data/data-world-public-api/revisions/0a0cb1f94dad/schema)
