Authentication API

get token

POST /api/rest/customer/v1/auth

Pass received token to each request to private API as 'token' parameter or 'Authorization' header.

Parameters

Name Description
auth[login] Login
auth[password] Password
auth[cookie_auth] Cookie Auth

Request

Headers

Accept: application/json
Content-Type: application/json
Host: example.org
Cookie: 

Route

POST /api/rest/customer/v1/auth

Body

{"auth":{"login":"login","password":"password"}}

Response

Headers

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/"1fc03da2842a8181c3e1ee2c6f2d5ba2"
cache-control: max-age=0, private, must-revalidate
x-request-id: b6b43bb1-977a-4117-a0f9-53d83f2a6483
x-runtime: 0.005621
content-length: 139

Status

201 Created

Body

{
  "jwt": "eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjo5LCJleHAiOjE3NzYzNjU3NDR9.mLSTQU0-vTy40sjUOKo8CC2326cXjnmg_6nboW1qgxw"
}