Skip to main content
Performs a key exchange operation to establish a secure session and obtain an authentication token. This endpoint is used after client registration to set up secure communication.

Endpoint

GET /isw/auth/keyExchange

Authentication

May require authentication depending on system configuration.

Response

Returns a system response containing key exchange details wrapped in a standard response structure.
responseCode
string
required
Status code of the response
responseMessage
string
required
Human-readable message describing the response
response
object
required
Key exchange response data
response.authToken
string
required
Authentication token for subsequent API requests
response.serverSessionPublicKey
string
required
Server’s session public key for encrypting requests
response.expireTime
string
required
Token expiration timestamp
response.requiresOtp
boolean
required
Indicates whether OTP verification is required
response.terminalKey
string
Terminal-specific key for additional security

Example request

cURL
curl --request GET \
  --url http://localhost:8081/isw/auth/keyExchange

Example response

{
  "responseCode": "00",
  "responseMessage": "Successful",
  "response": {
    "authToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "serverSessionPublicKey": "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...",
    "expireTime": "2026-03-03T12:00:00Z",
    "requiresOtp": false,
    "terminalKey": "TERM_KEY_12345"
  }
}

Build docs developers (and LLMs) love