---
title: "Ask Knowledge Base"
method: POST
path: "/kb/ask"
tags: ["knowledge"]
---

# Ask Knowledge Base

`POST /kb/ask`

## Request

- Base URL: `https://api.xeorank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xeorank.com/kb/ask`
- Auth: API key in header `X-Agent-Key`

Expert Q&A — returns a grounded answer from Xyle's internal knowledge.

## Query parameters

- `email` string, nullable

## Headers

- `X-Org-Id` string, nullable

## Request body

- KBQueryRequest
  - `question` string, required
  - `context_url` string, nullable
  - `topic` string, nullable
  - `n_sources` integer

## Response `200`

Successful Response

- KBAnswerResponse
  - `answer` string, required
  - `grounded` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xeorank/apis/seo-intelligence-engine.md) · [All operations](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/xeorank/apis/seo-intelligence-engine/revisions/449a3fd73454?raw)
