Generate Auth Token
API ExplorerExchanges your API key and secret key for a token.
Steps to Generate Keys on iPOSpays
- Log in to the iPOSpays portal using an Merchant account
This API works exclusively with merchant credentials and cannot be used with ISO credentials.
-
Go to: Settings → Generate API & Secret Key
-
Under the Generate Keys section:
-
Click Generate Keys
-
Click the Copy icon to copy the keys
-
Click Reset Secret Key if you wish to regenerate the Secret Key
-
-
Use the generated API and Secret Key for API authentication
Header Parameters
The apiKey can be generated from the iPOSpays portal using an Merchant account. These keys are required for authentication.
The secret key can be generated from the iPOSpays portal using an Merchant account. These keys are required for authentication.
Token expiry time in minutes. For this API the token expires after 10 minutes.
10Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com" \ -H "apiKey: your_api_key_here" \ -H "secretKey: your_secret_key_here" \ -H "TokenExpiryMinutes: 10"{
"responseCode": "00",
"responseMessage": "Success",
"createdDt": 1791465138566,
"tokenExpiresInMinutes": 10,
"token": "<JWT – masked in docs>"
}{
"errorCode": "AUTH_ERR_001",
"errorMessage": "API Key is required."
}{
"errorCode": "AUTH_ERR_004",
"errorMessage": "Invalid Credentials, Please Contact Support Team."
}{
"timestamp": 1791465141552,
"status": 405,
"error": "Method Not Allowed",
"path": "/v1/authenticate-token"
}