Authentication
The Mumin API uses API Keys to authenticate requests. You can view and manage your API keys in the Developer Dashboard (opens in a new tab).
Getting an API Key
- Log in to your Dashboard (opens in a new tab).
- Navigate to the API Keys section.
- Click Create New Key.
- Copy the key immediately. It looks like
sk_mumin_....
⚠️
Your API key carries many privileges, so be sure to keep it secure! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
Authentication Header
Authenticate your API calls by including your API key in the Authorization header of every request:
Authorization: Bearer sk_mumin_YOUR_API_KEYExample
curl https://api.hadith.mumin.ink/v1/hadiths/random \
-H "Authorization: Bearer sk_mumin_123456789"🚫
Requests without a valid API key will return a 401 Unauthorized error.