{"openapi":"3.1.0","info":{"title":"Islamify.ai Platform API & MCP","description":"Offizielle REST-API v1 und Remote-MCP-Schnittstelle der Islamify.ai Plattform (EMAD gUG) für geprüfte Koran-, Hadith- und Gelehrtenquellen.","version":"0.1.0-beta.2"},"paths":{"/health/ready":{"get":{"summary":"Health","operationId":"health_health_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/oauth-protected-resource":{"get":{"summary":"Well Known Protected Resource","operationId":"well_known_protected_resource__well_known_oauth_protected_resource_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/oauth-protected-resource/mcp":{"get":{"summary":"Well Known Protected Resource Mcp","operationId":"well_known_protected_resource_mcp__well_known_oauth_protected_resource_mcp_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/oauth-authorization-server":{"get":{"summary":"Well Known Auth Server","operationId":"well_known_auth_server__well_known_oauth_authorization_server_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/openid-configuration":{"get":{"summary":"Well Known Openid","operationId":"well_known_openid__well_known_openid_configuration_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/register":{"post":{"summary":"Oauth Register","operationId":"oauth_register_oauth_register_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/authorize":{"get":{"summary":"Oauth Authorize","operationId":"oauth_authorize_oauth_authorize_get","parameters":[{"name":"response_type","in":"query","required":false,"schema":{"type":"string","default":"","title":"Response Type"}},{"name":"client_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Client Id"}},{"name":"redirect_uri","in":"query","required":false,"schema":{"type":"string","default":"","title":"Redirect Uri"}},{"name":"code_challenge","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code Challenge"}},{"name":"code_challenge_method","in":"query","required":false,"schema":{"type":"string","default":"S256","title":"Code Challenge Method"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"mcp:tools offline_access","title":"Scope"}},{"name":"resource","in":"query","required":false,"schema":{"type":"string","default":"","title":"Resource"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/authorize/decision":{"post":{"summary":"Oauth Authorize Decision","operationId":"oauth_authorize_decision_oauth_authorize_decision_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_oauth_authorize_decision_oauth_authorize_decision_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/oauth/token":{"post":{"summary":"Oauth Token","operationId":"oauth_token_oauth_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/revoke":{"post":{"summary":"Oauth Revoke","operationId":"oauth_revoke_oauth_revoke_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/mcp":{"get":{"summary":"Mcp Get","operationId":"mcp_get_mcp_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Mcp Post","operationId":"mcp_post_mcp_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"delete":{"summary":"Mcp Delete","operationId":"mcp_delete_mcp_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"options":{"summary":"Mcp Options","operationId":"mcp_options_mcp_options","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/account":{"get":{"summary":"Api V1 Account","operationId":"api_v1_account_v1_account_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/quran/lookup":{"post":{"summary":"Api V1 Quran Lookup","operationId":"api_v1_quran_lookup_v1_quran_lookup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuranLookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/hadith/search":{"post":{"summary":"Api V1 Hadith Search","operationId":"api_v1_hadith_search_v1_hadith_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HadithSearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/search":{"post":{"summary":"Api V1 Sources Search","operationId":"api_v1_sources_search_v1_sources_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScholarlySearchRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sources/translate":{"post":{"summary":"Api V1 Sources Translate","operationId":"api_v1_sources_translate_v1_sources_translate_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScholarlyTranslateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/quotes/verify":{"post":{"summary":"Api V1 Quotes Verify","operationId":"api_v1_quotes_verify_v1_quotes_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/answer":{"post":{"summary":"Api V1 Verified Answer","operationId":"api_v1_verified_answer_v1_answer_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifiedAnswerRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/webhooks/stripe":{"post":{"summary":"Stripe Webhook","operationId":"stripe_webhook_api_webhooks_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/auth/login":{"get":{"summary":"Auth Login","operationId":"auth_login_auth_login_get","parameters":[{"name":"provider","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"}},{"name":"next","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next"}},{"name":"lang","in":"query","required":false,"schema":{"type":"string","default":"de","title":"Lang"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/callback":{"get":{"summary":"Auth Callback","operationId":"auth_callback_auth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/logout":{"post":{"summary":"Portal Logout","operationId":"portal_logout_api_portal_logout_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/portal/me":{"get":{"summary":"Portal Me","operationId":"portal_me_api_portal_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/portal/consent":{"post":{"summary":"Portal Consent","operationId":"portal_consent_api_portal_consent_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsentForm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/settings":{"post":{"summary":"Portal Update Settings","operationId":"portal_update_settings_api_portal_settings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountSettingsForm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/keys":{"get":{"summary":"Portal List Keys","operationId":"portal_list_keys_api_portal_keys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Portal Create Key","operationId":"portal_create_key_api_portal_keys_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateApiKeyForm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/keys/{key_id}":{"delete":{"summary":"Portal Revoke Key","operationId":"portal_revoke_key_api_portal_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/connections":{"get":{"summary":"Portal List Connections","operationId":"portal_list_connections_api_portal_connections_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/portal/connections/{conn_id}":{"delete":{"summary":"Portal Revoke Connection","operationId":"portal_revoke_connection_api_portal_connections__conn_id__delete","parameters":[{"name":"conn_id","in":"path","required":true,"schema":{"type":"string","title":"Conn Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/usage":{"get":{"summary":"Portal Usage History","operationId":"portal_usage_history_api_portal_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/portal/billing/checkout":{"post":{"summary":"Portal Billing Checkout","operationId":"portal_billing_checkout_api_portal_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TopupCheckoutForm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/billing/verify-session":{"post":{"summary":"Portal Verify Session","operationId":"portal_verify_session_api_portal_billing_verify_session_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/portal/playground":{"post":{"summary":"Portal Playground","operationId":"portal_playground_api_portal_playground_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PlaygroundForm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root Page","operationId":"root_page__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/mcp-setup":{"get":{"summary":"Mcp Setup Page","operationId":"mcp_setup_page_mcp_setup_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/docs":{"get":{"summary":"Docs Page","operationId":"docs_page_docs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/dashboard":{"get":{"summary":"Dashboard Page","operationId":"dashboard_page_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/billing":{"get":{"summary":"Billing Page","operationId":"billing_page_billing_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/terms":{"get":{"summary":"Terms Page","operationId":"terms_page_terms_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/privacy":{"get":{"summary":"Privacy Page","operationId":"privacy_page_privacy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"Body_oauth_authorize_decision_oauth_authorize_decision_post":{"properties":{"tx":{"type":"string","title":"Tx"},"decision":{"type":"string","title":"Decision"}},"type":"object","required":["tx","decision"],"title":"Body_oauth_authorize_decision_oauth_authorize_decision_post"},"ConsentForm":{"properties":{"accept_art9":{"type":"boolean","title":"Accept Art9"},"confirm_age16":{"type":"boolean","title":"Confirm Age16"},"accept_terms":{"type":"boolean","title":"Accept Terms"},"account_type":{"type":"string","pattern":"^(individual|organization)$","title":"Account Type","default":"individual"},"organization_name":{"type":"string","maxLength":200,"title":"Organization Name","default":""}},"type":"object","required":["accept_art9","confirm_age16","accept_terms"],"title":"ConsentForm"},"CreateApiKeyForm":{"properties":{"name":{"type":"string","maxLength":100,"minLength":2,"title":"Name"},"daily_cap_eur":{"anyOf":[{"type":"number","maximum":1000.0,"minimum":0.5},{"type":"null"}],"title":"Daily Cap Eur"},"monthly_cap_eur":{"anyOf":[{"type":"number","maximum":5000.0,"minimum":1.0},{"type":"null"}],"title":"Monthly Cap Eur"},"rpm_limit":{"type":"integer","maximum":120.0,"minimum":1.0,"title":"Rpm Limit","default":30},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["name"],"title":"CreateApiKeyForm"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HadithSearchRequest":{"properties":{"collection":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Collection"},"hadith_number":{"anyOf":[{"type":"integer","maximum":20000.0,"minimum":1.0},{"type":"null"}],"title":"Hadith Number"},"query":{"anyOf":[{"type":"string","maxLength":250},{"type":"null"}],"title":"Query"},"language":{"type":"string","maxLength":10,"title":"Language","default":"de"},"limit":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Limit","default":5}},"type":"object","title":"HadithSearchRequest"},"PlaygroundForm":{"properties":{"mode":{"type":"string","pattern":"^(quran|hadith)$","title":"Mode","default":"quran"},"surah":{"anyOf":[{"type":"integer","maximum":114.0,"minimum":1.0},{"type":"null"}],"title":"Surah","default":2},"ayah_start":{"anyOf":[{"type":"integer","maximum":286.0,"minimum":1.0},{"type":"null"}],"title":"Ayah Start","default":255},"query":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Query","default":""},"language":{"type":"string","maxLength":10,"title":"Language","default":"de"}},"type":"object","title":"PlaygroundForm"},"QuoteVerifyRequest":{"properties":{"text":{"type":"string","maxLength":8000,"minLength":3,"title":"Text"},"language":{"type":"string","maxLength":10,"title":"Language","default":"de"},"deep_check":{"type":"boolean","title":"Deep Check","default":false}},"type":"object","required":["text"],"title":"QuoteVerifyRequest"},"QuranLookupRequest":{"properties":{"surah":{"anyOf":[{"type":"integer","maximum":114.0,"minimum":1.0},{"type":"null"}],"title":"Surah"},"ayah_start":{"anyOf":[{"type":"integer","maximum":286.0,"minimum":1.0},{"type":"null"}],"title":"Ayah Start"},"ayah_end":{"anyOf":[{"type":"integer","maximum":286.0,"minimum":1.0},{"type":"null"}],"title":"Ayah End"},"query":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Query"},"language":{"type":"string","maxLength":10,"title":"Language","default":"de"}},"type":"object","title":"QuranLookupRequest"},"ScholarlySearchRequest":{"properties":{"query":{"type":"string","maxLength":1000,"title":"Query","default":""},"queries_ar":{"items":{"type":"string"},"type":"array","maxItems":4,"title":"Queries Ar"},"limit":{"type":"integer","maximum":5.0,"minimum":1.0,"title":"Limit","default":5},"public_domain_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public Domain Only"}},"type":"object","title":"ScholarlySearchRequest"},"ScholarlyTranslateRequest":{"properties":{"arabic_text":{"type":"string","maxLength":1500,"minLength":4,"title":"Arabic Text"},"target_language":{"type":"string","maxLength":10,"title":"Target Language","default":"de"},"context":{"type":"string","maxLength":300,"title":"Context","default":""}},"type":"object","required":["arabic_text"],"title":"ScholarlyTranslateRequest"},"TopupCheckoutForm":{"properties":{"amount_eur":{"type":"integer","maximum":250.0,"minimum":5.0,"title":"Amount Eur"},"widerruf_waiver_accepted":{"type":"boolean","title":"Widerruf Waiver Accepted"},"organization_name":{"type":"string","maxLength":200,"title":"Organization Name","default":""},"locale":{"type":"string","pattern":"^(de|en)$","title":"Locale","default":"de"}},"type":"object","required":["amount_eur","widerruf_waiver_accepted"],"title":"TopupCheckoutForm"},"UpdateAccountSettingsForm":{"properties":{"daily_cap_eur":{"type":"number","maximum":500.0,"minimum":1.0,"title":"Daily Cap Eur"},"monthly_cap_eur":{"type":"number","maximum":5000.0,"minimum":5.0,"title":"Monthly Cap Eur"},"public_domain_only":{"type":"boolean","title":"Public Domain Only","default":false},"account_type":{"type":"string","pattern":"^(individual|organization)$","title":"Account Type","default":"individual"},"organization_name":{"type":"string","maxLength":200,"title":"Organization Name","default":""}},"type":"object","required":["daily_cap_eur","monthly_cap_eur"],"title":"UpdateAccountSettingsForm"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifiedAnswerRequest":{"properties":{"question":{"type":"string","maxLength":3000,"minLength":3,"title":"Question"},"language":{"type":"string","maxLength":10,"title":"Language","default":"de"},"madhhab":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Madhhab"},"public_domain_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public Domain Only"}},"type":"object","required":["question"],"title":"VerifiedAnswerRequest"}}}}