Authentication
All API requests require an API token for authorization.
How to use the token
You can provide your API token in one of two ways:
1. HTTP Header
Include your token in the X-API-Key header.
bash
curl -H "X-API-Key: YOUR_API_TOKEN" https://api.sunnah.now/api/early-access/books2. Query Parameter
Include your token as a query parameter named api_key.
bash
curl https://api.sunnah.now/api/early-access/books?api_key=YOUR_API_TOKENSecurity
Keep your API token secret. Do not share it or include it in client-side code that is publicly accessible.