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.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjoxMiwiZXhwIjoxNzY3MzU4MDMzfQ.psWdCe4_USdayfjYOjlvwzHjF6wT3z4eGw_qSH5gaR8
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/"6cbb5e983e9e7689439703e1006cf292"
cache-control: max-age=0, private, must-revalidate
x-request-id: 0b5c0271-ddaf-4f09-aaad-73a115497443
x-runtime: 0.006839
content-length: 225

Status

201 Created

Body

{
  "jwt": "eyJhbGciOiJFUzI1NiJ9.eyJnaWQiOiI1NmYwYzRjYS01NDRiLTQzYjYtYWYwNi01YzdjMTBhNjIzMmQiLCJpYXQiOjE3NjczNTc5NzMsImV4cCI6MTc2NzM1ODU3M30.KbTYl2ehA0O9UYsyBaRD9NmvrMjkYOOTWvqd4GBx3Isi05MR6LlI_0sfmwts8yMnzo0r3QSuLCUm12m9uk_zXg"
}