API References

    TIP

    Check out for answers to some common questions 💡

    This documentation only reflects the latest version of MeiliSearch. We do not provide multi-version documentation.
    The current version of MeiliSearch (opens new window) can be found on the left side of the upper navbar.

    Content Type

    All request and response body are in .

    It is not required to have Content-Type: application/json in the header. Any content-type is accepted.

    Authentication

    For almost all routes, you need to be recognized by the server to check your permissions. Add your API key to your headers.
    Please read the and how to manage them for more information.

    Success

    200 - Ok: Everything worked as expected.

    201 - Created: The resource has been created (synchronous)

    202 - Accepted: The update has been pushed in the update queue (asynchronous)

    204 - No Content: The resource has been deleted or no content has been returned

    205 - Reset Content: All the resources have been deleted

    Error

    400 - Bad Request: The request was unacceptable, often due to missing a required parameter.

    403 - Forbidden: The API key doesn’t have the permissions to perform the request.

    404 - Not Found: The requested resource doesn’t exist.

    All errors contain a body that explains the error.

    Response body:

    MeiliSearch is an asynchronous API. It means that, in a lot of cases, you will receive as server response a simple JSON with only an updateId attribute:

    1. {

    This kind of successful response indicates that the operation has been taken into account, but it may not have been executed yet.
    You can check the status of the operation via the updateId and the .