---
title: "POST /ask"
method: POST
path: "/ask"
tags: ["Microsoft.KernelMemory.ServiceAssembly"]
---

# POST /ask

`POST /ask`

## Request body

- MemoryQuery
  - `index` string, nullable
  - `question` string, nullable
  - `filters` object[], nullable
  - `minRelevance` number, double
  - `args` object, nullable

## Response `200`

OK

- MemoryAnswer
  - `question` string, nullable
  - `noResult` boolean
  - `noResultReason` string, nullable
  - `text` string, nullable
  - `relevantSources` Citation[], nullable
    - `link` string, nullable
    - `index` string, nullable
    - `documentId` string, nullable
    - `fileId` string, nullable
    - `sourceContentType` string, nullable
    - `sourceName` string, nullable
    - `sourceUrl` string, nullable
    - `partitions` Partition[], nullable
      - `text` string, nullable
      - `relevance` number, float
      - `partitionNumber` integer
      - `sectionNumber` integer
      - `lastUpdate` string, date-time
      - `tags` object, nullable

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

## Changes

- **2024-10-19** `10e0db8acfa5` — 3 warning, 2 info
  - removed the request property `stream`
  - removed the optional property `streamState` from the response with the `200` status
  - removed the optional property `tokenUsage` from the response with the `200` status
  - api operation id `AnswerQuestion` removed and replaced with ``
  - …1 more

[Change history](https://skmtc.dev/azure/apis/microsoft-kernelmemory-serviceassembly/changes/ask/post.md)

---

[API](https://skmtc.dev/azure/apis/microsoft-kernelmemory-serviceassembly.md) · [All operations](https://skmtc.dev/azure/apis/microsoft-kernelmemory-serviceassembly/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/microsoft-kernelmemory-serviceassembly/revisions/10e0db8acfa5/schema)
