Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Project-scoped API key, e.g. nohead_sk_k7fz0a9c3m2q_<secret>, or nohead_pk_… for a published-only key. Used by servers, CI, the CLI and coding agents.

Headers

Idempotency-Key
string

A unique value (1-255 printable ASCII characters) that makes retrying this request safe. The first response (below 500) is stored for 24 hours per user or API key; retries with the same key and the same request get it again with an Idempotent-Replayed: true header. The same key with a different request is refused with 400; a retry while the first request is still running gets 409.

Required string length: 1 - 255
Nohead-Client
string

First-party client identifier recorded in history (e.g. cli/0.3.1). Informational only.

Path Parameters

collection_id
string
required

Collection ID, or the collection slug when authenticating with an API key.

Response

The rebuild was queued.

object
any
required
collection_id
string
required
index
string
required

The index's name in the search engine, which search tokens search (indexUid in Meilisearch's search API). Opaque; it never changes.

status
enum<string>
required

building until first built; stale from the change that queues a rebuild until it has run; failed if the last rebuild failed (it is retried).

Available options:
building,
ready,
stale,
failed
documents
integer
required
last_built_at
string<date-time> | null
required
rebuild_requested_at
string<date-time> | null
required