Visit Klefki Keys Dashoboard to get started!
Klefki Keys is a platform that allows developers to monetize their applications on a pay-per-use model, while enabling users to easily discover, onboard, and pay for tools using secure, unique klefki keys.
This documentation contains two sections:
As a developer, you can monetize your application or service on a usage basis. Klefki handles user credits, payments, logs, and monthly payouts.
Visit https://klefkikeys.netlify.app/ and log in using your Google account.
Navigate to Owned Apps → Create an App and fill the following:
Once you submit the form, the Klefki team will verify your app and respond within 24 hours. Verification includes checking if you have received a sample payment to the payment details your have shared while creating the App on Kleki. Every "Launched" app is visible on Explore page and once its verified by the Klefki team, it becomes available for users to onboard.
After approval, integrate Klefki into your application using two APIs:
Should get triggered when a user uses your tool.
POST https://klefki-backend-fra.onrender.com/klefki-api
{
"expense_UKK": "<user's klefki key> (to be added by user)",
"expense_value": <credits deducted per usage>,
"tool_ID_byDev": "<your tool ID>"
}
Go to:
Owned Apps → Click your app → Download Expenses (against any user)
A PDF will open showing logs and the Tool ID at the top.
Before performing an operation, user can check if a their Klefki Key is valid. This also prepares Klefki backend for the upcoming transaction. A response with status code 200 means that the klefki key user has shared is valid.
GET https://klefki-backend-fra.onrender.com/api/validate/ukk
{
"key": "<user's klefki key>"
}
import requests
def validate_klefki_key(klefki_key):
try:
response = requests.get(
"https://klefki-backend-fra.onrender.com/api/validate/ukk",
json={"key": klefki_key},
timeout=10
)
return response.json()
except Exception as e:
return {"error": str(e)}
import requests
def send_usage_event(user_ukk, credits, tool_id):
payload = {
"expense_UKK": user_ukk,
"expense_value": credits,
"tool_ID_byDev": tool_id,
}
try:
response = requests.post(
"https://klefki-backend-fra.onrender.com/klefki-api",
json=payload,
timeout=10
)
return response.json()
except Exception as e:
return {"error": str(e)}
Visit https://klefkikeys.netlify.app/ and login using Google.
All users get 10 credits by default.
1 credit = 1 INR.
Go to the Explore section to browse apps created by developers. All the apps you can see on this page are in "Launched" state. If any app is faded (not clickable) that means it is under verification and should be available to onboard within 24 hours. Click Onboard to start using any tool. Click on an onboarded app's name to get its klefki key. (Can't see klefki key? Try logout and re-login.)
Once you onboard a tool:
Go to Balance History to track: