curl --location 'https://us-prod.notte.cc/functions/d6daca1e-cc71-468a-8a89-335c332e6522/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
"function_id": "d6daca1e-cc71-468a-8a89-335c332e6522",
"variables": {
"query": "ما حكم صلاة الجماعة؟",
"max_sources": 5,
"include_full_passages": true,
"author_name": "",
"book_name": "",
"author_ids": null,
"book_ids": null,
"category_ids": null,
"century_ids": null,
"exact_query": false
}
}'
{
"query": "<string>",
"sources": [
{
"url": "<string>",
"index": 0,
"author": "<string>",
"book_id": 0,
"page_id": 0,
"passage": "<string>",
"snippet": "<string>",
"footnotes": "<string>",
"book_title": "<string>",
"volume_page": "<string>"
}
],
"short_answer": "<string>",
"answer_points": [
{
"url": "<string>",
"text": "<string>",
"author": "<string>",
"book_title": "<string>",
"volume_page": "<string>",
"source_index": 0
}
],
"century_filters": [
{
"id": "<string>",
"name": "<string>"
}
],
"category_filters": [
{
"id": "<string>",
"name": "<string>"
}
],
"has_more_results": true,
"search_term_used": "<string>",
"resolved_book_ids": [
"<string>"
],
"resolved_author_ids": [
"<string>"
],
"total_results_shown": 0
}