+254748651734
info@mekacash.com
PCI-aware secure payments
All API requests to MekaPayGroup must be authenticated using your API credentials. These credentials ensure secure communication between your application and our payment infrastructure.
MekaPayGroup provides two types of API keys that are required to authenticate your requests:
X-PUBLIC-KEY: YOUR_PUBLIC_API_KEY X-SECRET-KEY: YOUR_SECRET_API_KEY
You can generate and manage your API keys from the MekaPayGroup dashboard:
Include your API keys in the request headers when making API calls:
curl --location 'https://api.mekapaygroup.com/api/sessions/payments/create' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-PUBLIC-KEY: YOUR_PUBLIC_API_KEY' \
--header 'X-SECRET-KEY: YOUR_SECRET_API_KEY' \
--data-raw '{
"amount": 1000,
"currency": "KES"
}'If authentication fails, the API will return an error response. Common causes include missing or invalid API keys.
{
"status": "error",
"message": "Invalid API credentials"
}