You're viewing version 3.8 of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.
Authorization Token API
Introduced 1.0
Returns an OK status with an empty message field. This endpoint accepts a POST request but does not issue a token.
To generate an authorization token for a service account, use the Generate User Token API.
Endpoints
POST /_plugins/_security/api/authtoken
Example request
POST _plugins/_security/api/authtoken
{}
Example response
{
"status": "OK",
"message": ""
}
Response body fields
The response body is a JSON object with the following fields.
| Field | Data type | Description |
|---|---|---|
status | String | The status of the request. Always OK. |
message | String | Always an empty string. |