---
title: "Get spelling corrections, query expansion and task suggestions."
method: GET
path: "/api/suggest"
tags: ["Agent Docs"]
---

# Get spelling corrections, query expansion and task suggestions.

`GET /api/suggest`

## Request

- Base URL: `https://huggingbay.xyz`
- URL: `https://huggingbay.xyz/api/suggest`
- Auth: none required

Get spelling corrections, query expansion and task suggestions. This handler uses the production Postgres backend. The local JSON fixture backend may not serve this route.

**Inputs.** Path, query and header fields are listed below. No request body is required.

**Outputs.** See each status below for its media type, schema and headers. A missing record or unavailable capability is not a successful empty result.

**Errors.** API JSON failures use the documented response schema. Read code, message and next; retry only when the response allows it. Auth, invalid input and missing records need a caller change.

**Rate limits.** Public read budgets apply by client IP and route group. This operation can have a smaller route-specific budget. Read Retry-After on 429 or retryable 503 responses.

## Query parameters

- `q` string

## Response `200`

Get spelling corrections, query expansion and task suggestions.

- object
  - `schemaVersion` string
  - `query` string, required
  - `correctedQuery` string, nullable
  - `corrections` object[]
    - `token` string
    - `corrected` string
  - `expandedTokens` string[]
  - `intent` object, nullable, required
  - `suggestions` object[], required
    - `kind` string
    - `query` string
    - `href` string

## Other responses

- `429`: Request budget exceeded. Wait for Retry-After.

---

[API](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api.md) · [All operations](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingbay/apis/hugging-bay-public-api/revisions/63c474bf0fe4?raw)
