Skip to main content
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.
  1. Log in to your CreptaPay Dashboard.
  2. Click Developer in the sidebar.
  3. Click API Keys in the developer sub-menu.
  4. 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).
  5. 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:

Custom header

Provide your API key in the x-api-key header of your requests.

Authorization header

Provide your API key as a Bearer token in the Authorization header.