Authentication
To call any ZhenHub API, include your API Key in the request header.
Generating an API Key
After registering as a developer, log in to the ZhenHub Developer Center and go to the API Keys page to generate your API Key:
The API Key is ready to use immediately after generation.
You can create multiple API Keys based on your needs. Each API Key can be configured with an expiration date:
- No expiration: The API Key remains valid until it is manually deleted or regenerated.
- 1 year: The API Key expires one year after creation.
You can delete or regenerate API Keys at any time from the Developer Center.
Using Your API Key
Include the X-API-Key header in every API request:
X-API-Key: YOUR_API_KEYExample
GET https://openapi.zhenhub.com/v1/orders HTTP/1.1
Host: openapi.zhenhub.com
X-API-Key: YOUR_API_KEYKeeping Your API Key Secure
Keep your API Key secure and do not share it publicly.
Do not store API Keys in public repositories or expose them in client-side code that can be accessed by others.
If you suspect that your API Key has been compromised, delete or regenerate it immediately from the Developer Center.
