---
title: "Classify Search Intent"
method: POST
path: "/api/search/intent"
tags: ["Search"]
---

# Classify Search Intent

`POST /api/search/intent`

## Request

- Base URL: `https://api.kolens.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kolens.ai/api/search/intent`
- Auth: HTTP bearer

Read a query's shape and say whether it needs a choice first.

Deterministic and free — regex, no model call, no I/O. Safe to call
on every keystroke if a client wants to; safe to skip entirely.

## Request body

- IntentRequest
  - `query` string, required
  - `platform` string

## Response `200`

Successful Response

- IntentResponse
  - `query` string, required
  - `platform` string, required
  - `intent` string, required
  - `needs_disambiguation` boolean, required
  - `options` IntentOption[]
    - `action` 'lookup_account' | 'keyword_search', required
    - `label` string, required
    - `detail` string, required
    - `endpoint` string, required
  - `prompt` string, nullable

## Other responses

- `422`: Validation Error

---

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