Welcome to the CreptaPay API Reference. Here you can find details for integrating payment creation, wallet retrieval, and signature verification. The API supports two environments: Sandbox (for testing) and Production (for live transactions).
Get your API keys
You can retrieve your API keys directly from the CreptaPay Dashboard.
- Log in to your CreptaPay Dashboard.
- Click Developer in the sidebar.
- Click API Keys in the developer sub-menu.
- You will find two sections:
- Public Keys: These keys begin with
pk_ and are safe for client-side environments (such as checkouts).
- Secret Keys: These keys begin with
sk_ and must be kept secure on your server (used for payment management, customer management, and webhook verification).
- Click Copy next to the key you want to use.
Keep your secret keys secure. Never share them in public repositories or
client-side code.
Authenticate requests
You must pass your API key in every request to authenticated endpoints. The API supports two methods for sending your key:
Provide your API key in the x-api-key header of your requests.
Provide your API key as a Bearer token in the Authorization header.