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.eyJhdWQiOlsiY3VzdG9tZXItdjEiXSwic3ViIjoxMiwiZXhwIjoxNzg2MzU5NzU5fQ.l4FToZp_O9g5PyV46plfR2Nx2PGIUQR3ivdFWLrGpcM
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/"b8a0aeff792096a83789c37808a746da"
cache-control: max-age=0, private, must-revalidate
x-request-id: 60d6dad0-9449-4613-b41e-0d3e6c65ba22
x-runtime: 0.007865
content-length: 225

Status

201 Created

Body

{
  "jwt": "eyJhbGciOiJFUzI1NiJ9.eyJnaWQiOiI3MTlkOTMxNi00MWEwLTQ2MTctYjU4NC03YzA2Nzk3MmJkMmIiLCJpYXQiOjE3ODYzNTk2OTksImV4cCI6MTc4NjM2MDI5OX0.OsNrT0bB3jxuEyTZCZTg9xXJ3wzEQZYZQQtCiLUpcRzNkQ9b8jOJ6P4S30km-rnLhjm8AFy3gryr20TzL4EFTw"
}