---
title: "Ask AI"
method: POST
path: "/rag"
---

# Ask AI

`POST /rag`

## Query parameters

- `newerThan` string
- `olderThan` string
- `stream` boolean

## Request body

- object
  - `query` string, json, required — The search query
  - `source` string, json — Prioritize articles from the selected sources.
  - `entityIds` string, json — A list empty or of one element containing eg. cve id, malware id, cyber attack id, meme id
  - `agentQueries` string, json — A list of agent queries
  - `layers` string, json — Prioritize articles from the selected layers and ai models.

## Response `200`

200

- object

## Other responses

- `400` — 400

---

[API](https://skmtc.net/feedly/apis/streams-api.md) · [All operations](https://skmtc.net/feedly/apis/streams-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/feedly/streams-api/versions/d38216a6d069/schema)
