Pass received token to each request to private API as 'token' parameter or 'Authorization' header.
| Name | Description |
|---|---|
| auth[username] | Login |
| auth[password] | Password |
Accept: application/json Content-Type: application/json Host: example.org Cookie:
POST /api/rest/admin/auth
{"auth":{"username":"test-admin","password":"password"}}
x-frame-options: SAMEORIGIN x-xss-protection: 0 x-content-type-options: nosniff x-permitted-cross-domain-policies: none referrer-policy: strict-origin-when-cross-origin content-type: application/json; charset=utf-8 vary: Accept etag: W/"4c7913c9ec4fc3f1645163e0d10bbbd7" cache-control: max-age=0, private, must-revalidate x-request-id: b3e322b0-1fc5-4b2a-bb99-2e8d0357e21f x-runtime: 0.005429 content-length: 133
201 Created
{
"jwt": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjQ1LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzgxMjc5Mzk0fQ.NuK6Eb67luxDrw0xiBBdULV7dzC69d0ZC_dfXeJBQRQ"
}