Skip to content

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/books

2. 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_TOKEN

Security

Keep your API token secret. Do not share it or include it in client-side code that is publicly accessible.

v0.1.0 - Everyone is welcome to contribute at github.com/sunnah-now. Released under the MIT License.