Autocomplete
Fast typeahead suggestions for a partial query.
GET/api/v1/search/suggest
A lightweight typeahead endpoint tuned for latency — it returns a flat, ranked list of suggestions across entity types for a partial query, without the per-group structure or counts of full search.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
q | query | string | Partial query (minimum 2 characters). |
types | query | csv | Restrict to a subset: cve, cwe, capec, vendor, product, cna. |
limit | query | integer | Maximum suggestions, 1–15. Default: 8. |
Example request
curl "https://radicalnotion.ai/api/v1/search/suggest?q=react" \
-H "Authorization: Bearer $RN_TOKEN"Example response
{
"suggestions": [
{
"type": "vendor",
"id": "reactor",
"label": "reactor",
"href": "/vendor/reactor"
},
{
"type": "vendor",
"id": "react",
"label": "react",
"href": "/vendor/react"
},
{
"type": "vendor",
"id": "reactrouter",
"label": "react-router",
"href": "/vendor/reactrouter"
},
{
"type": "vendor",
"id": "reactphp",
"label": "reactphp",
"href": "/vendor/reactphp"
},
{
"type": "vendor",
"id": "reactflow",
"label": "reactflow",
"href": "/vendor/reactflow"
},
{
"type": "vendor",
"id": "reactbootstraptableproject",
"label": "react-bootstrap-table project",
"href": "/vendor/reactbootstraptableproject"
},
{
"type": "product",
"id": "remixrun/react-router",
"label": "react-router",
"href": "/vendor/remixrun/react-router"
},
{
"type": "product",
"id": "shopify/react-router",
"label": "react-router",
"href": "/vendor/shopify/react-router"
}
]
}Response schema
| Field | Type | Description |
|---|---|---|
suggestions[].type | string | Entity type of the suggestion. |
suggestions[].id / label | string | Entity id and display label. |
suggestions[].href | string | Relative link to the entity in the app. |
Responses
| Status | Meaning |
|---|---|
200 | Success. |
400 | A path or query parameter failed validation. |
401 | Missing or invalid access token. |
429 | Rate limit exceeded. |