To start working with the Rampnow API, all clients must authenticate with valid keys provided in the Rampnow partner dashboard.
Make requests
Authentication to Rampnow’s API is performed via the custom HTTP header| Property | Description |
|---|---|
| X-RAMPNOW-API-KEY | an API Key that you generate in the Dashboard |
| X-RAMPNOW-SIGN | a request signature in the HEX format. The signature is case insensitive. |
| X-RAMPNOW-TIMESTAMP | number of seconds since Unix Epoch in UTC. |
All API queries must be sent over HTTPS; plain HTTP will be refused. You must include your auth headers in all requests.
Sign requests
The value of the X-RAMPNOW-SIGN header is generated with the sha256 HMAC algorithm using a secret key (Secret key is generated in the merchant Dashboard as part of API key creation) on the bytes obtained by concatenating the following information:All API requests must be signed using HMAC-SHA256 with your secret key. The signature ensures request authenticity and prevents tampering.
How Request Signing Works
Every API request requires two headers:X-RAMPNOW-TIMESTAMP: Current Unix timestampX-RAMPNOW-SIGN: HMAC-SHA256 signature of your request
Signing Your Requests
1
Generate timestamp
Create a Unix timestamp value for the
X-RAMPNOW-TIMESTAMP header.2
Construct the message
Concatenate the following in order:
- Timestamp (as a string)
- HTTP method in uppercase (e.g.,
GET,POST) - URI path with query parameters (e.g.,
/api/partner/v1/ext/ramp_order/quote?srcCurrency=USD&dstCurrency=BTC) - Request body (if present, exactly as it will be sent)
3
Generate HMAC signature
Create an HMAC-SHA256 hash of the message using your secret key and set it as the
X-RAMPNOW-SIGN header value.Examples of how you can sign your requests:
Python
Code Examples
Quick Reference
| Component | Description |
|---|---|
| Secret Key | Generated in merchant Dashboard during API key creation |
| Timestamp | Unix timestamp, must be within 1 minute of server time |
| HTTP Method | Uppercase method name (GET, POST, etc.) |
| URI Path | Full path with query parameters, starting with / |
| Request Body | Exact body as sent (omit for GET requests) |