Quickstart
Make a source-backed request. Then inspect the citations and retrieved sources.
What This Does
Madeenan retrieves Islamic sources, grounds the answer in those sources, and returns citation-ready payloads.
First, Search Sources
Create an API key in your dashboard and set MADEENAN_API_KEY in your server environment. Search does not need a model provider key. A result group can be empty.
For typed clients, use SDK Examples. To connect an assistant host, use MCP Setup.
Then Generate an Answer
Hosted chat uses Madeenan's model configuration and your plan's quota. For your own model, retrieve sources and generate on your backend. See the Model Key Policy. Do not send provider keys in a chat prompt.
Example Chat Response
This is an abbreviated illustration, not a guaranteed answer. Source availability and model output can differ.
Fields Explained
message
Request field. The user prompt, in natural-language English or Arabic.
indexes
Optional request field. The source families to search: Qur'an, Hadith, Tafsir, and dua.
citations
Response field. Sources you can render beside the answer: label, Arabic, translation, and metadata.
retrieved_sources
Response field. The source set used for grounding. Show it when users need more context.
Real Examples
Use search when you want source cards to render directly. For generated answers, call your own model provider from your backend with the returned source blocks.
Common Mistakes
- Sending model provider keys from the browser.
- Hiding required attribution on generated answers.
- Treating citations as optional UI metadata.
- Using chat when a direct Search API result is enough.
Security note