Skip to main content
GET
Get Index Suggestions

Authorizations

Authorization
string
header
required

Mixpeek API key, sent as Authorization: Bearer mxp_sk_.... Create one in Studio under Settings → API Keys, or with an admin key via POST /v1/organizations/users/{user_email}/api-keys. A missing header returns 403; an invalid or revoked key returns 401.

X-Namespace
string
header
required

Namespace id (ns_...), not the namespace name. This scopes the request rather than authenticating it, and it is required on every operation marked x-mixpeek-namespace-scoped.

Query Parameters

hours
integer
default:24

Time window in hours to analyze (max 30 days)

Required range: 1 <= x <= 720
min_count
integer
default:100

Minimum query count threshold for suggestions

Required range: 1 <= x <= 10000

Response

Successful Response

Response containing index suggestions for a namespace.

namespace_id
string
required

Namespace being analyzed

analysis_period
string
required

Time period analyzed (e.g., '24h', '7d')

suggestions
IndexSuggestion · object[]
required

List of index suggestions

auto_create_enabled
boolean
required

Whether auto-indexing is enabled for this namespace

next_auto_create_run
string<date-time> | null

Next scheduled auto-creation run (if enabled)