Authenticate a user

  • GET /_security/_authenticate
Auth

Authenticates a user and returns information about the authenticated user. Include the user information in a basic auth header. A successful call returns a JSON structure that shows user information such as their username, the roles that are assigned to the user, any assigned metadata, and information about the realms that authenticated and authorized the user. If the user cannot be authenticated, this API returns a 401 status code.

Response

application/json
api_key object
id string required
name string
managed_by enum required
Values: cloud elasticsearch
internal boolean
authentication_realm object required
name string required
type string required
email union string nullable
One of: string
full_name union string nullable
lookup_realm object required
name string required
type string required
metadata object required
roles string[] required
username string required
enabled boolean required
authentication_type string required
token object
name string
type string
managed_by enum
Values: cloud elasticsearch