{"openapi":"3.1.0","info":{"title":"Islamify.ai Platform API & MCP","description":"Offizielle REST-API v1 (inkl. OpenAI-kompatiblem /v1/chat/completions, Medina-Mushaf-Seiten, Hifz/Mutashabihat & KI-Selbstverwaltung) und Remote-MCP-Schnittstelle der Islamify.ai Plattform (EMAD gUG). Komplette KI-Dokumentation: https://platform.islamify.ai/llms-full.txt","version":"1.0.1"},"servers":[{"url":"https://api.islamify.ai","description":"Islamify.ai REST API v1"}],"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":{}}}}}},"options":{"summary":"Oauth Options","operationId":"oauth_options__well_known_oauth_protected_resource_options","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":{}}}}}},"options":{"summary":"Oauth Options","operationId":"oauth_options__well_known_oauth_protected_resource_mcp_options","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":{}}}}}},"options":{"summary":"Oauth Options","operationId":"oauth_options_oauth_revoke_options","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/oauth/token":{"post":{"summary":"Oauth Token","operationId":"oauth_token_oauth_token_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"options":{"summary":"Oauth Options","operationId":"oauth_options_oauth_token_options","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":{}}}}}},"options":{"summary":"Oauth Options","operationId":"oauth_options_oauth_register_options","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":{}}}}}},"options":{"summary":"Oauth Options","operationId":"oauth_options__well_known_openid_configuration_options","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":{}}}}}},"options":{"summary":"Oauth Options","operationId":"oauth_options__well_known_oauth_authorization_server_options","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"}}}}}}},"/v1/account":{"get":{"summary":"Guthaben, Abo-Kontingent, Gratis-Abrufe & Limits abrufen","operationId":"getAccountStatus","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"x-openai-isConsequential":false}},"/v1/teams":{"get":{"summary":"Team-Arbeitsbereiche und (mit Verwaltungsrecht) Mitglieder abrufen","operationId":"getTeamWorkspaceInfo","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"x-openai-isConsequential":false}},"/v1/usage":{"get":{"summary":"Echtzeit-Verbrauch & Buchungsjournal abrufen","operationId":"getAccountUsage","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-openai-isConsequential":false}},"/v1/account/settings":{"patch":{"summary":"Konto-Kostenlimits und Quellenfilter anpassen","operationId":"updateAccountSettings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiUpdateSettingsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-openai-isConsequential":true}},"/v1/keys":{"get":{"summary":"Alle API-Schlüssel des Kontos auflisten","operationId":"listApiKeys","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"x-openai-isConsequential":false},"post":{"summary":"Neuen API-Schlüssel erstellen und benennen","operationId":"createApiKey","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiCreateKeyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-openai-isConsequential":true}},"/v1/keys/{key_id}":{"patch":{"summary":"API-Schlüssel umbenennen oder Limits / Abo-Nutzung ändern","operationId":"updateApiKey","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiUpdateKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-openai-isConsequential":true},"delete":{"summary":"API-Schlüssel sofort und dauerhaft widerrufen","operationId":"revokeApiKey","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"}}}}},"x-openai-isConsequential":true}},"/v1/billing/topup":{"post":{"summary":"Stripe- oder PayPal-Aufladelink für Prepaid-Guthaben erzeugen","operationId":"createTopupCheckoutLink","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiTopupLinkRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-openai-isConsequential":true}},"/v1/quran/lookup":{"post":{"summary":"Koranverse im unveränderten Uthmani-Wortlaut & geprüfte Übersetzung abrufen","operationId":"lookupQuranVerses","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"}}}}},"x-openai-isConsequential":false}},"/v1/quran/mushaf":{"post":{"summary":"Exakte Medina-Mushaf-Seite (1–604), Juz oder Viertel-Aufteilung (z. B. für Habit-Tracker)","operationId":"lookupMushafPage","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MushafLookupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-openai-isConsequential":false}},"/v1/quran/hifz":{"post":{"summary":"Koran-Hifz-Assistent: deterministische Mutashabihat-Zwillingsverse & strukturierte Lernkarten","operationId":"getHifzAssistance","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HifzAssistRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-openai-isConsequential":false}},"/v1/hadith/search":{"post":{"summary":"Hadithe aus 10 klassischen Sammlungen durchsuchen","operationId":"searchHadith","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"}}}}},"x-openai-isConsequential":false}},"/v1/sources/search":{"post":{"summary":"Unveränderte Originalbelege aus über 4.900 Gelehrtenwerken finden","operationId":"searchScholarlySources","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"}}}}},"x-openai-isConsequential":false}},"/v1/sources/translate":{"post":{"summary":"Arabische Gelehrten-Belegstelle sinngetreu übersetzen","operationId":"translateScholarlySource","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"}}}}},"x-openai-isConsequential":false}},"/v1/quotes/verify":{"post":{"summary":"Koran- und Hadith-Zitate deterministisch gegen den Originalkorpus prüfen","operationId":"verifyIslamicQuotes","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"}}}}},"x-openai-isConsequential":false}},"/v1/answer":{"post":{"summary":"Vollständige quellenbasierte Islamify.ai-Antwort mit Zitatprüfung & Mushaf-Verankerung","operationId":"askVerifiedIslamify","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"}}}}},"x-openai-isConsequential":false}},"/v1/chat/completions":{"post":{"summary":"OpenAI-kompatibler Chat-Endpunkt für Apps (wie im normalen Islamify.ai-Chat)","operationId":"createIslamifyChatCompletion","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-openai-isConsequential":false}},"/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":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"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}":{"patch":{"summary":"Portal Update Key","operationId":"portal_update_key_api_portal_keys__key_id__patch","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"string","title":"Key Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateApiKeyForm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"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/paypal/checkout":{"post":{"summary":"Portal Paypal Checkout","operationId":"portal_paypal_checkout_api_portal_billing_paypal_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/paypal/confirm":{"post":{"summary":"Portal Paypal Confirm","operationId":"portal_paypal_confirm_api_portal_billing_paypal_confirm_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/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/teams":{"get":{"summary":"Portal List Teams","operationId":"portal_list_teams_api_portal_teams_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"summary":"Portal Create Team","operationId":"portal_create_team_api_portal_teams_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTeamForm"}}},"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/teams/switch":{"post":{"summary":"Portal Switch Workspace","operationId":"portal_switch_workspace_api_portal_teams_switch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwitchWorkspaceForm"}}},"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/teams/{team_id}":{"get":{"summary":"Portal Get Team","operationId":"portal_get_team_api_portal_teams__team_id__get","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Portal Rename Team","operationId":"portal_rename_team_api_portal_teams__team_id__patch","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RenameTeamForm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Portal Delete Team","operationId":"portal_delete_team_api_portal_teams__team_id__delete","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/teams/{team_id}/invites":{"post":{"summary":"Portal Invite Member","operationId":"portal_invite_member_api_portal_teams__team_id__invites_post","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InviteTeamMemberForm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/teams/{team_id}/invites/{invite_id}":{"delete":{"summary":"Portal Revoke Invite","operationId":"portal_revoke_invite_api_portal_teams__team_id__invites__invite_id__delete","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"invite_id","in":"path","required":true,"schema":{"type":"string","title":"Invite Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/portal/teams/invites/accept":{"post":{"summary":"Portal Accept Invite","operationId":"portal_accept_invite_api_portal_teams_invites_accept_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptInviteForm"}}},"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/teams/invites/decline":{"post":{"summary":"Portal Decline Invite","operationId":"portal_decline_invite_api_portal_teams_invites_decline_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeclineInviteForm"}}},"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/teams/{team_id}/members/{member_id}":{"patch":{"summary":"Portal Update Member","operationId":"portal_update_member_api_portal_teams__team_id__members__member_id__patch","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"member_id","in":"path","required":true,"schema":{"type":"string","title":"Member Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTeamMemberForm"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Portal Remove Member","operationId":"portal_remove_member_api_portal_teams__team_id__members__member_id__delete","parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","title":"Team Id"}},{"name":"member_id","in":"path","required":true,"schema":{"type":"string","title":"Member Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/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"}}}}}}}},"components":{"schemas":{"AcceptInviteForm":{"properties":{"invite_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Invite Id"},"token":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Token"}},"type":"object","title":"AcceptInviteForm"},"ApiCreateKeyRequest":{"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},"allow_abo":{"type":"boolean","title":"Allow Abo","default":true},"allow_manage":{"type":"boolean","title":"Allow Manage","default":false}},"type":"object","required":["name"],"title":"ApiCreateKeyRequest"},"ApiTopupLinkRequest":{"properties":{"amount_eur":{"type":"integer","maximum":250.0,"minimum":5.0,"title":"Amount Eur","default":10},"provider":{"type":"string","pattern":"^(stripe|paypal)$","title":"Provider","default":"stripe"},"widerruf_waiver_accepted":{"type":"boolean","title":"Widerruf Waiver Accepted","default":false},"locale":{"type":"string","pattern":"^(de|en)$","title":"Locale","default":"de"}},"type":"object","title":"ApiTopupLinkRequest"},"ApiUpdateKeyRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":2},{"type":"null"}],"title":"Name"},"daily_cap_eur":{"anyOf":[{"type":"number","maximum":1000.0,"minimum":0.5},{"type":"null"}],"title":"Daily Cap Eur"},"clear_daily_cap":{"type":"boolean","title":"Clear Daily Cap","default":false},"monthly_cap_eur":{"anyOf":[{"type":"number","maximum":5000.0,"minimum":1.0},{"type":"null"}],"title":"Monthly Cap Eur"},"clear_monthly_cap":{"type":"boolean","title":"Clear Monthly Cap","default":false},"allow_abo":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Abo"}},"type":"object","title":"ApiUpdateKeyRequest"},"ApiUpdateSettingsRequest":{"properties":{"daily_cap_eur":{"anyOf":[{"type":"number","maximum":500.0,"minimum":1.0},{"type":"null"}],"title":"Daily Cap Eur"},"monthly_cap_eur":{"anyOf":[{"type":"number","maximum":5000.0,"minimum":5.0},{"type":"null"}],"title":"Monthly Cap Eur"},"public_domain_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Public Domain Only"}},"type":"object","title":"ApiUpdateSettingsRequest"},"Body_oauth_authorize_decision_oauth_authorize_decision_post":{"properties":{"tx":{"type":"string","title":"Tx"},"decision":{"type":"string","title":"Decision"},"allow_manage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Allow Manage"}},"type":"object","required":["tx","decision"],"title":"Body_oauth_authorize_decision_oauth_authorize_decision_post"},"ChatCompletionsRequest":{"properties":{"model":{"type":"string","title":"Model","description":"islamify-verified (12 ct, mit Gelehrtenquellen & Zitatprüfung) oder islamify-fast (4 ct, schneller strukturierter App-Chat).","default":"islamify-verified"},"messages":{"items":{"$ref":"#/components/schemas/ChatMessageItem"},"type":"array","maxItems":20,"minItems":1,"title":"Messages"},"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"},"max_tokens":{"type":"integer","maximum":3200.0,"minimum":128.0,"title":"Max Tokens","default":2200},"response_format":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Response Format"}},"type":"object","required":["messages"],"title":"ChatCompletionsRequest"},"ChatMessageItem":{"properties":{"role":{"type":"string","pattern":"^(system|user|assistant)$","title":"Role"},"content":{"type":"string","maxLength":4000,"minLength":1,"title":"Content"}},"type":"object","required":["role","content"],"title":"ChatMessageItem"},"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},"allow_abo":{"type":"boolean","title":"Allow Abo","default":true},"allow_manage":{"type":"boolean","title":"Allow Manage","default":false},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"}},"type":"object","required":["name"],"title":"CreateApiKeyForm"},"CreateTeamForm":{"properties":{"name":{"type":"string","maxLength":120,"minLength":2,"title":"Name"}},"type":"object","required":["name"],"title":"CreateTeamForm"},"DeclineInviteForm":{"properties":{"invite_id":{"type":"string","maxLength":64,"minLength":1,"title":"Invite Id"}},"type":"object","required":["invite_id"],"title":"DeclineInviteForm"},"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"},"HifzAssistRequest":{"properties":{"surah_number":{"type":"integer","maximum":114.0,"minimum":1.0,"title":"Surah Number","description":"Surennummer des markierten Verses (1–114)."},"ayah_number":{"type":"integer","maximum":286.0,"minimum":1.0,"title":"Ayah Number","description":"Versnummer innerhalb der Sure."},"selected_words":{"type":"string","maxLength":200,"title":"Selected Words","description":"Markierte arabische Wörter (z. B. 'لَهْوًا وَلَعِبًا').","default":""},"error_category":{"type":"string","maxLength":64,"title":"Error Category","description":"Fehlerkategorie: mutashabihat_word_order, mutashabihat_surah_jump, mutashabihat_wa_fa, blackout_next_ayah, blackout_mid_ayah, word_precision_synonym, word_precision_particle, fasilah_names_of_allah, fasilah_verb.","default":"mutashabihat_word_order"},"preferred_mnemonic_style":{"type":"string","pattern":"^(meaning|visual|both)$","title":"Preferred Mnemonic Style","description":"Merkhilfe-Stil: meaning (Tafsir-Logik), visual (Muster/Buchstaben) oder both.","default":"both"},"known_surahs":{"items":{"type":"integer"},"type":"array","maxItems":114,"title":"Known Surahs","description":"Bereits gelernte Suren (z. B. [1,2,3,4,5,6,7])."},"language":{"type":"string","maxLength":10,"title":"Language","default":"de"},"deterministic_only":{"type":"boolean","title":"Deterministic Only","description":"Wenn true: liefert nur deterministisch berechnete Zwillingsverse & Kontext (im 25/Tag-Gratis-Kontingent).","default":false}},"type":"object","required":["surah_number","ayah_number"],"title":"HifzAssistRequest"},"InviteTeamMemberForm":{"properties":{"email":{"type":"string","maxLength":320,"minLength":5,"title":"Email"},"role":{"type":"string","pattern":"^(owner|admin|developer|billing|viewer)$","title":"Role","default":"developer"},"permissions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Permissions"}},"type":"object","required":["email"],"title":"InviteTeamMemberForm"},"MushafLookupRequest":{"properties":{"page":{"anyOf":[{"type":"integer","maximum":604.0,"minimum":1.0},{"type":"null"}],"title":"Page","description":"Medina-Mushaf-Seite (1–604)."},"surah":{"anyOf":[{"type":"integer","maximum":114.0,"minimum":1.0},{"type":"null"}],"title":"Surah","description":"Alternativ: Surennummer (z. B. 41 für Fussilat)."},"page_offset":{"type":"integer","maximum":60.0,"minimum":1.0,"title":"Page Offset","description":"Welche Seite der Sure (1 = erste Seite der Sure).","default":1},"juz":{"anyOf":[{"type":"integer","maximum":30.0,"minimum":1.0},{"type":"null"}],"title":"Juz","description":"Alternativ: Juz (1–30)."},"hizb_quarter":{"anyOf":[{"type":"integer","maximum":240.0,"minimum":1.0},{"type":"null"}],"title":"Hizb Quarter","description":"Alternativ: Rub' al-Hizb (1–240)."},"divide_into":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":2.0},{"type":"null"}],"title":"Divide Into","description":"Optional: Seite in N gleiche Abschnitte teilen (z. B. 4 Viertel)."},"language":{"type":"string","maxLength":10,"title":"Language","default":"de"}},"type":"object","title":"MushafLookupRequest"},"PlaygroundForm":{"properties":{"mode":{"type":"string","pattern":"^(quran|mushaf|hifz|hadith|chat)$","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},"divide_into":{"anyOf":[{"type":"integer","maximum":8.0,"minimum":2.0},{"type":"null"}],"title":"Divide Into","default":4},"selected_words":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Selected Words","default":""},"error_category":{"type":"string","maxLength":64,"title":"Error Category","default":"mutashabihat_word_order"},"query":{"anyOf":[{"type":"string","maxLength":1000},{"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","description":"Surennummer (1–114)."},"ayah_start":{"anyOf":[{"type":"integer","maximum":286.0,"minimum":1.0},{"type":"null"}],"title":"Ayah Start","description":"Startvers."},"ayah_end":{"anyOf":[{"type":"integer","maximum":286.0,"minimum":1.0},{"type":"null"}],"title":"Ayah End","description":"Endvers (max. 8 Verse gesamt)."},"query":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Query","description":"Stichwortsuche auf Arabisch oder Zielsprache."},"language":{"type":"string","maxLength":10,"title":"Language","description":"Zielsprache (de, en, ar, tr, bs, fr, id, ur, bn, fa).","default":"de"}},"type":"object","title":"QuranLookupRequest"},"RenameTeamForm":{"properties":{"name":{"type":"string","maxLength":120,"minLength":2,"title":"Name"}},"type":"object","required":["name"],"title":"RenameTeamForm"},"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"},"SwitchWorkspaceForm":{"properties":{"workspace_id":{"type":"string","maxLength":64,"minLength":1,"title":"Workspace Id","default":"personal"}},"type":"object","title":"SwitchWorkspaceForm"},"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"},"provider":{"type":"string","pattern":"^(stripe|paypal)$","title":"Provider","default":"stripe"}},"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"},"UpdateApiKeyForm":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":2},{"type":"null"}],"title":"Name"},"daily_cap_eur":{"anyOf":[{"type":"number","maximum":1000.0,"minimum":0.5},{"type":"null"}],"title":"Daily Cap Eur"},"clear_daily_cap":{"type":"boolean","title":"Clear Daily Cap","default":false},"monthly_cap_eur":{"anyOf":[{"type":"number","maximum":5000.0,"minimum":1.0},{"type":"null"}],"title":"Monthly Cap Eur"},"clear_monthly_cap":{"type":"boolean","title":"Clear Monthly Cap","default":false},"allow_abo":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Abo"}},"type":"object","title":"UpdateApiKeyForm"},"UpdateTeamMemberForm":{"properties":{"role":{"anyOf":[{"type":"string","pattern":"^(owner|admin|developer|billing|viewer)$"},{"type":"null"}],"title":"Role"},"permissions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Permissions"}},"type":"object","title":"UpdateTeamMemberForm"},"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":3500,"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"},"output_instructions":{"anyOf":[{"type":"string","maxLength":1200},{"type":"null"}],"title":"Output Instructions"}},"type":"object","required":["question"],"title":"VerifiedAnswerRequest"}}}}