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.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjoxMiwiZXhwIjoxNzgxMjc4ODY1fQ.px6DqL2H37xKlFoHMzx18mcW7SstfSPSXRBzWZ81xmg
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/"53c64390b6e70ff527e833639d562721"
cache-control: max-age=0, private, must-revalidate
x-request-id: 84fd5de2-f8e4-4b9b-82c2-079197ffd244
x-runtime: 0.006720
content-length: 225

Status

201 Created

Body

{
  "jwt": "eyJhbGciOiJFUzI1NiJ9.eyJnaWQiOiIwNmU0YmQzNi05MmM5LTRmZjUtOTAzNC1mY2FlNzkxZDc1MTYiLCJpYXQiOjE3ODEyNzg4MDUsImV4cCI6MTc4MTI3OTQwNX0.ZZSWOglmnwvfhI0uO5RdgTB9kmC8galeerC-IfsA6B0zIAfQfP29SBUBZ8ULImrgIsllu05edDVcZH_kQtuy_A"
}