Generate a tenant token with an official SDK
First, import the SDK. Then create a set of search rules:uid field to obtain your API key’s UID:
Make a search request using a tenant token
After creating a token, you must send it your application’s front end. Exactly how to do that depends on your specific setup. Once the tenant token is available, use it to authenticate search requests as if it were an API key:Next steps
Generate a token with a third-party library
Create tenant tokens using JWT libraries instead of Meilisearch SDKs.
Generate a token without any library
Build tenant tokens manually by assembling the JWT header, payload, and signature.
Tenant token payload reference
Learn about all available fields in the tenant token payload.
Manage API keys
Create, update, and delete API keys for your Meilisearch instance.