HTTP request
curl \
-X GET 'https://api.meilisearch.com/api/v2/me' \
-H 'Authorization: Bearer MANAGEMENT_API_TOKEN'{
"id": "3f1c8a2e-5b7d-4e9a-9c1f-2a6b8d4e0f13",
"name": "Jane Doe",
"email": "jane@example.com"
}{
"message": "The provided token is invalid.",
"code": "invalid_token",
"type": "auth",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#invalid_token"
}{
"message": "Too many requests. Retry after the number of seconds in the `Retry-After` header.",
"code": "rate_limited",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#rate_limited"
}Authentication
Get current user
Returns the user the token authenticates as. Use it to check that a token is valid.
GET
/
api
/
v2
/
me
HTTP request
curl \
-X GET 'https://api.meilisearch.com/api/v2/me' \
-H 'Authorization: Bearer MANAGEMENT_API_TOKEN'{
"id": "3f1c8a2e-5b7d-4e9a-9c1f-2a6b8d4e0f13",
"name": "Jane Doe",
"email": "jane@example.com"
}{
"message": "The provided token is invalid.",
"code": "invalid_token",
"type": "auth",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#invalid_token"
}{
"message": "Too many requests. Retry after the number of seconds in the `Retry-After` header.",
"code": "rate_limited",
"type": "invalid_request",
"link": "https://www.meilisearch.com/docs/reference/management-api-errors#rate_limited"
}Authorizations
personal_access_tokenoauth2
Send Authorization: Bearer <token>, where <token> is a personal access token (PAT) or an OAuth2 access token. A PAT authenticates as the user who owns it. See Authentication.