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.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjoxMiwiZXhwIjoxNzkyNjE5Mjc1fQ.IpItetWHQECCCLUFVEccUS61V1WM2pPMHP3Xvns2TdA
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/"2a4c9348be7d2a94148d5308c6dfc75e"
cache-control: max-age=0, private, must-revalidate
x-request-id: cd90cb98-51b8-4fa0-a744-44063ebad91c
x-runtime: 0.011583
content-length: 225

Status

201 Created

Body

{
  "jwt": "eyJhbGciOiJFUzI1NiJ9.eyJnaWQiOiJlZjg1NjkxMi05ZWNiLTQ5MmYtYjIwNy1hYWYyODljMTMyZDkiLCJpYXQiOjE3OTI2MTkyMTUsImV4cCI6MTc5MjYxOTgxNX0.ozE0wJuxN-N4Gyo_94J64xJp0uBvCbLnrEruMztF4nenFXuans25_WskOmhHqkq1SxgZzhEUyu9aoD-vMUhHjQ"
}