Signature algorithm
1 min
Taking a partner's request for institution list information as an example, this section introduces the calculation process of signature step by step. In the example, when you actually call the API, the parameters of each API are different according to the actual situation. Do not copy the parameters and values of this example.
Suppose that the partner's Access Key and Secret key are as follows:
- AccessKey:AKIDz8krbsJ5yKBZQpn74WFkmLPx3*******
- SecretKey: Gu5t9xGARNpq86cd98joQYCN3*******
The partner wants to get institution list information. The request may be:
curl GET https://api-testing.klavi.ai/link/external/v2/getInstitutionList \
-H "Authorization: K1-HMAC-SHA256 Credential=AKIDz8krbsJ5yKBZQpn74WFkmLPx3*******/2019-02-25/cbms/k1_request,SignedHeaders=content-type;host,Signature=2230eefd229f582d8b1b891af7107b91597240707d778ab3738f756258d7652c" \
-H "Host:api-testing.klavi.ai" \
-H "Content-Type: application/json; charset=utf-8" \
-H "X-Timestamp: 1551113065" \
-H "X-Region: ap-brazil" The detailed process of signature calculation is subsequent chapters.