Token

Token Generation

To ensure the security of API requests, you can generate a token using the user's credentials combined with a salt key. This token can then be used for authentication in subsequent API requests.

Token Generation Example

The token is created by concatenating the userName, password, and a saltKey, and then hashing this concatenated string using the MD5 algorithm.

Generate Token

CryptoJS.MD5(userName + password + secretKey).toString();

X-Api-Key

Description:

The X-Api-Key header is used to authenticate requests to the application by providing a unique API key. This key is a string that identifies the client making the request and verifies that the client is authorized to access the requested resources. Including the X-Api-Key in the request header ensures secure and controlled access to the application's API.

Usage:

The X-Api-Key should be included in the header of every API request. The key is typically generated by the application and provided to the client during the registration or setup process. It must be kept confidential and should not be shared or exposed in public repositories or logs.

X-Api-Key Usage

curl -H "X-Api-Key: your-api-key" -X GET https://sandbox.paybin.io/{RequestedPath}

Was this page helpful?