Meilisearch Documents API

The Documents API from Meilisearch — 3 operation(s) for documents.

Operations 7

GET /indexes/{indexUid}/documents List documents
POST /indexes/{indexUid}/documents Add or replace documents
PUT /indexes/{indexUid}/documents Add or update documents
DELETE /indexes/{indexUid}/documents Delete all documents
GET /indexes/{indexUid}/documents/{documentId} Get a document
DELETE /indexes/{indexUid}/documents/{documentId} Delete a document
POST /indexes/{indexUid}/documents/delete-batch Delete documents in batch

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-documents-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

meilisearch-documents-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Meilisearch Documents 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: Documents
paths:
  /indexes/{indexUid}/documents:
    parameters:
    - $ref: '#/components/parameters/IndexUid'
    get:
      tags:
      - Documents
      summary: List documents
      responses:
        '200':
          description: Paginated documents
    post:
      tags:
      - Documents
      summary: Add or replace documents
      responses:
        '202':
          description: Task enqueued
    put:
      tags:
      - Documents
      summary: Add or update documents
      responses:
        '202':
          description: Task enqueued
    delete:
      tags:
      - Documents
      summary: Delete all documents
      responses:
        '202':
          description: Task enqueued
  /indexes/{indexUid}/documents/{documentId}:
    parameters:
    - $ref: '#/components/parameters/IndexUid'
    - name: documentId
      in: path
      required: true
      schema:
        type: string
    get:
      tags:
      - Documents
      summary: Get a document
      responses:
        '200':
          description: Document
    delete:
      tags:
      - Documents
      summary: Delete a document
      responses:
        '202':
          description: Task enqueued
  /indexes/{indexUid}/documents/delete-batch:
    parameters:
    - $ref: '#/components/parameters/IndexUid'
    post:
      tags:
      - Documents
      summary: Delete documents in batch
      responses:
        '202':
          description: Task enqueued
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.

        '