Meilisearch Indexes API

The Indexes API from Meilisearch — 4 operation(s) for indexes.

GitHub OpenAPI

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /indexes List all indexes · List indexes #
Ask an LLM
“Which indexes exist in my Meilisearch instance?”
“Can I see every index and its settings?”
Tell an agent
List all indexes.
Show every index in the instance.
POST /indexes Create an index · Create index #
Ask an LLM
“How do I create a new index to store my documents?”
“Can I set settings on an index when I create it?”
Tell an agent
Create a new index.
Create an index with these settings.
GET /indexes/{indexUid} Get an index · Get index #
Ask an LLM
“What are the settings of a specific index?”
“Can I fetch one index by its UID?”
Tell an agent
Get index {indexUid}.
Show the settings of index {indexUid}.
PATCH /indexes/{indexUid} Update an index · Update index #
Ask an LLM
“How do I change an existing index's settings?”
“Can I rename an index after creating it?”
Tell an agent
Update index {indexUid}.
Rename existing index {indexUid}.
DELETE /indexes/{indexUid} Delete an index · Delete index #
Ask an LLM
“How do I delete an index I no longer need?”
“Can I remove an index by its UID?”
Tell an agent destructive · confirm first
Delete index {indexUid}.
Remove the {indexUid} index.
GET /indexes/{indexUid}/stats Get statistics for one index · Get index stats #
Ask an LLM
“How many documents and bytes does a particular Meilisearch index have?”
“What are the stats for a single index?”
Tell an agent
Show the stats for index {indexUid}.
Get the document count and size stats for {indexUid}.
POST /swap-indexes Swap two indexes · Swap indexes #
Ask an LLM
“How do I swap two indexes so the new one takes the old one's name?”
“Can I swap indexes without downtime?”
Tell an agent
Swap the two indexes.
Swap the indexes so the new one takes the old one's name.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/meilisearch:meilisearch-indexes-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

meilisearch-indexes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Meilisearch Indexes API
  description: 'Meilisearch is an open-source, lightning-fast search engine API. This specification

    documents the core REST endpoints for managing indexes, documents, search, settings,

    API keys, and tasks. All protected routes require Bearer token authentication using

    a master key or regular API key.'
  version: '1.0'
  contact:
    name: Meilisearch
    url: https://www.meilisearch.com/docs
servers:
- url: http://localhost:7700
  description: Default local Meilisearch instance
- url: https://{cluster}.meilisearch.io
  description: Meilisearch Cloud instance
  variables:
    cluster:
      default: edge
security:
- bearerAuth: []
tags:
- name: Indexes
paths:
  /indexes:
    get:
      tags:
      - Indexes
      summary: List indexes
      responses:
        '200':
          description: Paginated list of indexes
      operationId: getIndexes
      x-operation-id-source: derived
    post:
      tags:
      - Indexes
      summary: Create index
      responses:
        '202':
          description: Task enqueued
      operationId: postIndexes
      x-operation-id-source: derived
  /indexes/{indexUid}:
    parameters:
    - $ref: '#/components/parameters/IndexUid'
    get:
      tags:
      - Indexes
      summary: Get index
      responses:
        '200':
          description: Index metadata
      operationId: getIndexesByIndexUid
      x-operation-id-source: derived
    patch:
      tags:
      - Indexes
      summary: Update index
      responses:
        '202':
          description: Task enqueued
      operationId: patchIndexesByIndexUid
      x-operation-id-source: derived
    delete:
      tags:
      - Indexes
      summary: Delete index
      responses:
        '202':
          description: Task enqueued
      operationId: deleteIndexesByIndexUid
      x-operation-id-source: derived
  /indexes/{indexUid}/stats:
    parameters:
    - $ref: '#/components/parameters/IndexUid'
    get:
      tags:
      - Indexes
      summary: Get index stats
      responses:
        '200':
          description: Stats payload
      operationId: getIndexesByIndexUidStats
      x-operation-id-source: derived
  /swap-indexes:
    post:
      tags:
      - Indexes
      summary: Swap indexes
      responses:
        '202':
          description: Task enqueued
      operationId: postSwapIndexes
      x-operation-id-source: derived
components:
  parameters:
    IndexUid:
      name: indexUid
      in: path
      required: true
      schema:
        type: string
      description: Unique identifier of the index.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: token
      description: 'Authorization header using "Authorization: Bearer {API_KEY}".

        The master key authorizes /keys management; regular API keys

        should be used for all other routes.

        '