Authentication API

get Cookie

POST /api/rest/customer/v1/auth

Pass received Set-Cookie header to each request to private API as 'Cookie' header.

Parameters

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

Request

Headers

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

Route

POST /api/rest/customer/v1/auth

Body

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

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
Cache-Control: no-cache
Set-Cookie: _yeti_customer_v1_session=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEwLCJhdWQiOlsiY3VzdG9tZXItdjEiXSwiZXhwIjoxNzQwODUzMDQzfQ.a1UCN6tWsjB0PAPpBStrdjFwbfZft1Gpyg0BGg0-O7U; path=/; expires=Sat, 01 Mar 2025 18:17:23 GMT; HttpOnly; SameSite=Lax
X-Request-Id: ecc03b0d-1a0d-4ae7-b27e-90038df276f4
X-Runtime: 0.006147
Content-Length: 0

Status

201 Created