Integration Guide
TIP
To learn more about the Heatmex V1 API, please read the Introduction.
Authentication
NOTE
Please visit Heatmex's website to generate an API key.
Mainnet
API Key Type
System-generated API Keys: The API key generated by the Heatmex system operates with HMAC encryption. You will be provided with a pair of public and private keys. Please treat this pair of keys as passwords and keep them safe.
Paramenters for Authenticated Endpoints
The following HTTP header keys must be used for authentication:
- X-HEATMEX-API-KEY - API key
- X-HEATMEX-SIGN - a signature derived from the request's parameters
Create A Request
- Basic steps: API key + (queryString | jsonBodyString)
- Use the HMAC_SHA256 algorithm to sign the string in step 1, and convert it to a hex string (HMAC_SHA256) to obtain the sign parameter.
- Append the
signparameter to request header, and send the HTTP request.
An example for how to generate plain text to encrypt
HTTP request examples
Common response parameters
| Paramenter | Type | Comments |
|---|---|---|
| statusCode | number | Success/Error Code |
| result | string | Success/Error String |
| message | string | Success/Error Message |