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

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.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjoxMCwiZXhwIjoxNzY3MzU4NTczfQ.-SW7ChtztKtYYUOyMCaIH2-zynYVbihCpYfRMcxgUiA; path=/; expires=Fri, 02 Jan 2026 12:56:13 GMT; httponly; samesite=lax
x-request-id: 3123d1bc-1e6e-4c5f-a1db-c13806af2ab3
x-runtime: 0.005844
content-length: 0

Status

201 Created