Atlas
Admin — Suggestions

List query suggestions

Returns a paginated list of query suggestions for the admin's active organization. Supports filtering by table name and minimum frequency.

GET
/api/v1/admin/suggestions

Query Parameters

table?string

Filter by primary table name

min_frequency?string

Minimum frequency threshold

limit?string

Maximum results (default 50, max 200)

offset?string

Pagination offset (default 0)

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:3001/api/v1/admin/suggestions"
{
  "suggestions": [
    {
      "id": "string",
      "orgId": "string",
      "description": "string",
      "patternSql": "string",
      "normalizedHash": "string",
      "tablesInvolved": [
        "string"
      ],
      "primaryTable": "string",
      "frequency": 0,
      "clickedCount": 0,
      "score": 0,
      "lastSeenAt": "string",
      "createdAt": "string",
      "updatedAt": "string"
    }
  ],
  "total": 0,
  "limit": 0,
  "offset": 0
}
{
  "property1": null,
  "property2": null
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}
{
  "property1": null,
  "property2": null
}
{
  "error": "string",
  "message": "string",
  "requestId": "string"
}