---
title: "Ask the knowledge base"
method: POST
path: "/v1/knowledge-base/ask"
tags: ["Knowledge Center"]
---

# Ask the knowledge base

`POST /v1/knowledge-base/ask`

## Request

- Base URL: `https://api.vidocu.ai`
- URL: `https://api.vidocu.ai/v1/knowledge-base/ask`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://vidocu.ai/oauth/authorize`, token URL `https://api.vidocu.ai/oauth/token`)

Retrieval-grounded answer with citations, for support-bot integrations.

**Scope:** `knowledge_base:read`

## Request body

- object
  - `question` string, required
  - `locale` string
  - `history` object[]
    - `role` 'user' | 'assistant', required
    - `content` string, required

## Response `200`

Success

## Other responses

- `400`: Validation error
- `401`: Invalid or missing credentials
- `403`: Missing scope (`insufficient_scope`) or quota exhausted (`limit_exceeded`)
- `429`: Rate limit exceeded (60 req/min)
- `500`: Server error

---

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