CallAuth API

Receive Gayeway JWT token

POST /api/rest/customer/v1/call-auth

Example of decoded JWT payload: gid: gateway.uuid, iat: current timestamp(in UTC timezone), exp: current timestamp(in UTC timezone) + call_jwt_lifetime seconds

Request

Headers

Accept: application/json
Content-Type: application/json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjoxMiwiZXhwIjoxNzc2MzY1MjA0fQ.3scD29yMSo9hYSooPYqznA6SddQLvcWJGceMc8oOuCk
Host: example.org
Cookie: 

Route

POST /api/rest/customer/v1/call-auth

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/"e24d954e059570b4a754517ef146b217"
cache-control: max-age=0, private, must-revalidate
x-request-id: 2a0fa896-61ca-4a22-8201-c530d94e1770
x-runtime: 0.006523
content-length: 225

Status

201 Created

Body

{
  "jwt": "eyJhbGciOiJFUzI1NiJ9.eyJnaWQiOiIxZGQ3ZGRmMC0xOTg1LTRkZTAtODI4My1lMzc1Njc0NTk5YTQiLCJpYXQiOjE3NzYzNjUxNDQsImV4cCI6MTc3NjM2NTc0NH0.CgNBRlq6N3kgz_SBiQXQT1I31bTT1f_BKtuYQ68wx7lCK2RhiUZ0N4VtWbUUJLY-XEj2YGn812Kols4Z-7lRXQ"
}