StatsHub Docs
APIAPI v2V2 endpoint referenceSearch

/search/suggestions

Serves the search suggestion list.

POST
/search/suggestions

Serves the search suggestion list.

Authorization

AuthorizationBearer <token>

Supabase access token.

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/search/suggestions" \  -H "Content-Type: application/json" \  -d '{    "messages": [      {        "id": "string",        "parts": [          {            "input": null,            "output": null,            "result": null,            "state": "string",            "text": "string",            "toolCallId": "string",            "type": "string"          }        ],        "role": "string"      }    ],    "pageContext": null  }'
{  "suggestions": [    "string"  ]}