Authentication endpoint
Overview
Authenticate and retrieve AAM login response data. Routes use /wp-json/aam/v2 on a standard WordPress installation.
Endpoints
| Method | Route | Input | Purpose |
|---|---|---|---|
| POST | /authenticate |
username, password, remember, return_auth_cookies, fields |
Authenticate. |
The Input column lists route-specific parameters. A path parameter in {braces} is required. WordPress validates body and query parameters against the registered route schema.
Parameter guide
The route table shows which operation uses each parameter. Path parameters are required; other requirements depend on the operation.
| Parameter | Type | Meaning |
|---|---|---|
fields |
string |
List of additional fields to return. |
password |
string |
Valid password. |
remember |
boolean |
Prolong the user session. |
return_auth_cookies |
boolean |
Return auth cookies. |
username |
string |
Valid username. |
Access level and authorization
This endpoint group does not use the shared access-level selector unless a row explicitly names it.
This route is available to logged-out clients and does not require an AAM management capability. See Authentication and Error handling.
This route accepts login credentials in the request body; see Authentication for the supported flow.
Example
POST /wp-json/aam/v2/authenticate
Content-Type: application/json
{"username":"editor","password":"<password>"}
This starts a login request. Send username and password in the POST body; it is available only to a logged-out client.