---
title: "Ask"
method: POST
path: "/v1/ask"
tags: ["Search"]
---

# Ask

`POST /v1/ask`

## Request

- Base URL: `https://mengram.io` (the document declares no server; this is the origin it was published from)
- URL: `https://mengram.io/v1/ask`
- Auth: none declared. Required headers: `authorization`

Ask your memory a question — get a synthesized answer with citations.

RAG flow: embed query → top-N facts via search → Cohere Chat with documents
→ answer text with native source attribution.

Premium: Pro / Growth / Business only. Counts as 1 search against quota.

## Query parameters

- `sub_user_id` string, nullable

## Headers

- `authorization` string, required

## Request body

- AskRequest: RAG-style ask: synthesize an answer from memory with citations. Premium feature (Pro+) — uses Cohere Chat API on top of vector search.
  - `user_id` string
  - `query` string, required
  - `max_facts` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/mengram/apis/mengram-api.md) · [All operations](https://skmtc.dev/mengram/apis/mengram-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mengram/apis/mengram-api/revisions/f871fd1fd3a8?raw)
