Skip to main content
Before calling any API, you must sign requests and validate response signatures to ensure message security and integrity.

Request Signing Process

Step 1: Prepare Your Private Key

Ensure your private key is ready. It must be a 2048-bit RSA key.

Step 2: Construct Content to Sign

Build a string combining the HTTP method, URI, client identifier, timestamp, and request body:
Components: Example content to sign:

Step 3: Generate Signature

Apply RSA with SHA-256 algorithm to generate the signature:

Step 4: Add Signature to Header

Format and add the signature header to your request:

Complete Request Example

Response Signature Validation

Always verify the response signature before processing the data.

Construct Content to Validate

Mirror the request signing process using response data:

Verify Signature

Key Points

Security Alert: Never log or expose the full signature content or private key. If you need to debug signature issues, log only non-sensitive parts like the method and URI.