Authentication
How to authenticate your API requests to Ivorypay.
Most merchant server-to-server endpoints accept your On/Off Ramp secret API key at https://ramp-api.ivorypay.io/api/v1. It identifies your business and TEST or LIVE environment. Get it from the On/Off Ramp dashboard, not the Ivorypay Business (IVB) dashboard. Check the authentication section on each endpoint; some routes require a session token instead.
Here, "merchant" means the business integrating On/Off Ramp. It does not mean the separate IVB Merchant API. Compare the products if you are unsure; IVB keys cannot be used for this API.
Choose the correct credential
Merchant initiation, rates and API-key routes
Raw secret API key in Authorization
Webhook configuration and wallet-balance route
Business-user JWT: Authorization: Bearer <jwt>
Hosted checkout confirmation and saved customer bank accounts
Customer JWT; a merchant key cannot act as the customer
Public transaction verification and supported webhook-event listing
No authentication
A JWT is a signed session token issued during sign-in. Do not create one yourself or substitute a secret API key after Bearer. Prefer hosted checkout when you do not implement the customer session flow.
Getting your API key
If you do not have an account, sign up for On/Off Ramp and verify your email first.
Log in to the On/Off Ramp Dashboard
Navigate to Settings → API Keys
You will see two keys for your active environment: a public key and a secret key. Use the Test / Live toggle on the dashboard to switch environments and view the corresponding key pair:
Test environment:
pk_test_(public) andsk_test_(secret)Live environment:
pk_live_(public) andsk_live_(secret)
Which key to use
Use the secret key (sk_test_ or sk_live_) for the server-to-server routes in this guide. Keep API credentials on your backend. The public-key label does not authorize exposing a credential through these routes; use the documented hosted-checkout/customer-session flow for browser interactions.
Authenticating requests
Include your API key as the raw value of the Authorization header (no Bearer prefix) on API-key-authenticated requests:
Header reference
Authorization
Yes
Your Ivorypay API key (raw, no Bearer prefix)
Content-Type
Yes
Must be application/json for POST/PATCH/PUT requests
Authentication errors
If your API key is missing, invalid, or expired, the API returns a 401 Unauthorized response. The message field wraps the underlying cause: common values include "No authorization header", "No API key provided", and "jwt malformed" (returned when a Bearer prefix was sent but the value isn't a valid JWT).
Environment detection
The API automatically determines the environment (TEST or LIVE) based on the API key you use. There is no need to pass an environment parameter: your key controls it.
sk_test_
TEST
No
sk_live_
LIVE
Yes
Webhook signature verification
Ivorypay signs every webhook payload using your secret API key (sk_test_ or sk_live_) for the relevant environment: there is no separate webhook secret. See Webhook Security for details.
Last updated