Every API here is available over the APIs.io API and to AI agents over MCP.
{"openapi":"3.1.0","info":{"title":"OEC.sh","description":"Platform for deploying Odoo Community Edition","version":"1.88.14"},"paths":{"/health":{"get":{"summary":"Health Check","description":"Health check with actual DB and Redis connectivity checks.","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Health Check Health Get"}}}}}}},"/ready":{"get":{"summary":"Readiness Probe","description":"Lightweight readiness probe — no DB/Redis calls.\n\nUse this for load balancer health checks and high-frequency polling.\nReserve /health for deep diagnostics.","operationId":"readiness_probe_ready_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"null"}]},"type":"object","title":"Response Readiness Probe Ready Get"}}}}}}},"/":{"get":{"summary":"Root","description":"Root endpoint","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/auth/providers":{"get":{"tags":["Authentication"],"summary":"Get Auth Providers","description":"Get list of enabled authentication providers.\n\nReturns which OAuth providers and email/password auth are enabled\nfor this deployment. Frontend uses this to show/hide login options.","operationId":"get_auth_providers_api_v1_auth_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthProvidersResponse"}}}}}}},"/api/v1/auth/register":{"post":{"tags":["Authentication"],"summary":"Register","description":"Register a new user with email and password.\n\nCreates a new user account. The user will need to verify their email\nto access all features.","operationId":"register_api_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login":{"post":{"tags":["Authentication"],"summary":"Login","description":"Login with email and password.\n\nReturns JWT tokens on successful authentication.\nIf 2FA is enabled, returns a temporary token that must be verified.\n\nQuery param ``fallback=password`` (committee S5): allows an SSO-only org\nOWNER to bypass the IdP. The owner-membership check runs BEFORE password\nverification to avoid leaking a timing oracle on user existence /\npassword correctness for non-owners. Spec §5.11.","operationId":"login_api_v1_auth_login_post","parameters":[{"name":"fallback","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fallback"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserLogin"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/TokenResponse"},{"$ref":"#/components/schemas/TwoFactorRequiredResponse"},{"$ref":"#/components/schemas/TokenResponse"},{"$ref":"#/components/schemas/TwoFactorRequiredResponse"}],"title":"Response 200 Login Api V1 Auth Login Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/refresh":{"post":{"tags":["Authentication"],"summary":"Refresh Token","description":"Refresh access token using refresh token.\n\nThe refresh token can be provided either:\n1. In the request body (for backward compatibility with localStorage-based auth)\n2. In an httpOnly cookie (preferred, more secure)\n\nSecurity: Validates that the refresh token was issued after the user's last password change.\n\nArgs:\n request: FastAPI request object (for reading cookies)\n response: FastAPI response object (for setting new cookies)\n refresh_token: Valid refresh token (optional if using cookies)\n\nReturns:\n New access and refresh tokens (also sets httpOnly cookies)","operationId":"refresh_token_api_v1_auth_refresh_post","parameters":[{"name":"refresh_token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refresh Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me":{"get":{"tags":["Authentication"],"summary":"Get Current User Info","description":"Get current authenticated user's information.\n\nReachable by a staff session that is not yet MFA-verified, so the frontend\ncan show the forced \"Set up two-factor authentication\" step\n(``staff_mfa_required``).","operationId":"get_current_user_info_api_v1_auth_me_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me/sign-ins":{"get":{"tags":["Authentication"],"summary":"List My Sign Ins","description":"#1431 (DPA): the caller's last 50 sign-in, failed sign-in, two-factor and\npassword events. Self-service: only rows whose user_id is the caller, so\nno org permission applies (these rows are written without an org).","operationId":"list_my_sign_ins_api_v1_auth_me_sign_ins_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignInListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/logout":{"post":{"tags":["Authentication"],"summary":"Logout","description":"Logout current user.\n\nOWASP A07:2021 - Proper session invalidation:\n1. Adds the access token to Redis blacklist (prevents reuse)\n2. Clears httpOnly authentication cookies from the browser\n\nThe token remains in the blacklist until its natural expiration time.","operationId":"logout_api_v1_auth_logout_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Logout Api V1 Auth Logout Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/onboarding-status":{"get":{"tags":["Authentication"],"summary":"Get Onboarding Status","description":"Get the current user's onboarding status.\n\nReturns information about:\n- Whether user needs to complete onboarding (no organizations)\n- List of user's organizations\n- Pending invitations for the user's email","operationId":"get_onboarding_status_api_v1_auth_onboarding_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OnboardingStatus"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/change-password":{"post":{"tags":["Authentication"],"summary":"Change Password","description":"Change password for the current user.\n\nRequires the current password for verification.","operationId":"change_password_api_v1_auth_change_password_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChange"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Change Password Api V1 Auth Change Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/set-password":{"post":{"tags":["Authentication"],"summary":"Set Password","description":"Set a password for a social login user.\n\nAllows users who signed up via OAuth to set a password\nfor email/password login as an alternative.","operationId":"set_password_api_v1_auth_set_password_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Set Password Api V1 Auth Set Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/forgot-password":{"post":{"tags":["Authentication"],"summary":"Forgot Password","description":"Request a password reset email.\n\nAlways returns success to prevent email enumeration.\nGenerates a JWT token valid for 60 minutes and sends it via email.","operationId":"forgot_password_api_v1_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordReset"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Forgot Password Api V1 Auth Forgot Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/reset-password":{"post":{"tags":["Authentication"],"summary":"Reset Password","description":"Reset password using reset token.\n\nThe token is a JWT received via email after requesting password reset.","operationId":"reset_password_api_v1_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordResetConfirm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Reset Password Api V1 Auth Reset Password Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/verify-email":{"post":{"tags":["Authentication"],"summary":"Verify Email","description":"Verify user email using verification token.\n\nMarks the user as verified and invalidates the token.","operationId":"verify_email_api_v1_auth_verify_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailVerificationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Verify Email Api V1 Auth Verify Email Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login-email-change/preview":{"post":{"tags":["Authentication"],"summary":"Preview Login Email Change","description":"Read-only: the masked new address and whether a 2FA code is needed.","operationId":"preview_login_email_change_api_v1_auth_login_email_change_preview_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginEmailChangePreviewRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"boolean"}]},"title":"Response Preview Login Email Change Api V1 Auth Login Email Change Preview Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login-email-change/confirm":{"post":{"tags":["Authentication"],"summary":"Confirm Login Email Change","description":"Apply a login email change started by support (#1175). Step-up as\n/auth/change-password (current password), plus the 2FA code when 2FA is on.\nSigns the user out everywhere.","operationId":"confirm_login_email_change_api_v1_auth_login_email_change_confirm_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginEmailChangeConfirmRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Confirm Login Email Change Api V1 Auth Login Email Change Confirm Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/resend-verification":{"post":{"tags":["Authentication"],"summary":"Resend Verification Email","description":"Resend verification email to user.\n\nRate-limited to prevent spam. Always returns success to prevent email enumeration.","operationId":"resend_verification_email_api_v1_auth_resend_verification_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendVerificationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Resend Verification Email Api V1 Auth Resend Verification Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/verify-2fa":{"post":{"tags":["Authentication"],"summary":"Verify 2Fa","description":"Verify 2FA code and complete login.\n\nAfter successful email/password login when 2FA is enabled,\nthis endpoint verifies the TOTP code and returns final tokens.\nAlso sets httpOnly cookies for XSS protection.","operationId":"verify_2fa_api_v1_auth_verify_2fa_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TwoFactorVerify"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/2fa/step-up":{"post":{"tags":["Authentication"],"summary":"Step Up 2Fa","description":"Upgrade the current session to MFA-verified with a TOTP or backup code.\n\nUsed when a staff member signed in without the second factor (GitHub /\nGoogle / SSO login, or a session from before staff MFA enforcement):\nplatform staff capabilities need an MFA-verified session (core.staff_mfa).\nIssues new tokens (httpOnly cookies) carrying the MFA claim.","operationId":"step_up_2fa_api_v1_auth_2fa_step_up_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TOTPEnableRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/2fa/setup":{"post":{"tags":["Authentication"],"summary":"Setup 2Fa","description":"Generate a new TOTP secret for 2FA setup.\n\nReturns the secret, QR code URI, and backup codes.\nThe user must verify with /2fa/enable to actually enable 2FA.","operationId":"setup_2fa_api_v1_auth_2fa_setup_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TOTPSetupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/2fa/enable":{"post":{"tags":["Authentication"],"summary":"Enable 2Fa","description":"Enable 2FA by verifying a TOTP code.\n\nMust be called after /2fa/setup with a valid code from the authenticator app.\nThe code just proved possession of the factor, so the current session is\nupgraded to MFA-verified (new httpOnly cookies); a staff member completing\nthe forced setup step can continue without signing in again.","operationId":"enable_2fa_api_v1_auth_2fa_enable_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TOTPEnableRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Enable 2Fa Api V1 Auth 2Fa Enable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/2fa/disable":{"post":{"tags":["Authentication"],"summary":"Disable 2Fa","description":"Disable 2FA.\n\nRequires both a valid TOTP code and the account password for security.","operationId":"disable_2fa_api_v1_auth_2fa_disable_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TOTPDisableRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Disable 2Fa Api V1 Auth 2Fa Disable Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/2fa/backup-codes":{"get":{"tags":["Authentication"],"summary":"Get Backup Codes","description":"Get remaining backup codes.\n\nReturns the current backup codes and how many are remaining.","operationId":"get_backup_codes_api_v1_auth_2fa_backup_codes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"integer"}]},"title":"Response Get Backup Codes Api V1 Auth 2Fa Backup Codes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/2fa/regenerate-backup-codes":{"post":{"tags":["Authentication"],"summary":"Regenerate Backup Codes","description":"Regenerate backup codes.\n\nRequires a valid TOTP code. Previous backup codes will be invalidated.","operationId":"regenerate_backup_codes_api_v1_auth_2fa_regenerate_backup_codes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TOTPEnableRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"title":"Response Regenerate Backup Codes Api V1 Auth 2Fa Regenerate Backup Codes Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/2fa/status":{"get":{"tags":["Authentication"],"summary":"Get 2Fa Status","description":"Get 2FA status for current user.","operationId":"get_2fa_status_api_v1_auth_2fa_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"integer"}]},"title":"Response Get 2Fa Status Api V1 Auth 2Fa Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/setup":{"post":{"tags":["Authentication","MFA"],"summary":"Setup Mfa","description":"Generate a new TOTP secret for MFA setup.\n\nThis endpoint initiates the MFA setup process by:\n1. Generating a new TOTP secret key\n2. Creating a QR code URI for authenticator apps\n3. Storing the secret temporarily (not enabled yet)\n\nThe secret will only be activated after verification via /mfa/verify.\n\nReturns:\n MFASetupResponse: Contains secret, QR URI (backup codes only after verification)","operationId":"setup_mfa_api_v1_auth_mfa_setup_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFASetupResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/verify":{"post":{"tags":["Authentication","MFA"],"summary":"Verify Mfa","description":"Verify MFA code during login or for MFA operations.\n\nThis endpoint can be used for:\n1. Verifying TOTP code during login (when MFA is enabled)\n2. Verifying backup code as fallback\n3. Testing MFA setup before enabling\n\nArgs:\n data: Contains the TOTP code or backup code\n\nReturns:\n MFAVerifyResponse: Verification result with success message","operationId":"verify_mfa_api_v1_auth_mfa_verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFAVerifyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFAVerifyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/enable":{"post":{"tags":["Authentication","MFA"],"summary":"Enable Mfa","description":"Enable MFA by verifying a TOTP code.\n\nThis endpoint:\n1. Verifies the provided TOTP code\n2. Enables MFA on the account\n3. Generates backup codes for recovery\n4. Returns backup codes (SAVE THESE SECURELY!)\n\nArgs:\n data: Contains the TOTP code for verification\n\nReturns:\n MFAEnableResponse: Success status, message, and backup codes","operationId":"enable_mfa_api_v1_auth_mfa_enable_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFAEnableRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFAEnableResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/disable":{"post":{"tags":["Authentication","MFA"],"summary":"Disable Mfa","description":"Disable MFA for the current user.\n\nThis endpoint:\n1. Disables MFA on the account\n2. Removes TOTP secret and backup codes\n3. Logs the security event\n\nArgs:\n data: Optional password for additional verification\n\nReturns:\n MFADisableResponse: Success status and message","operationId":"disable_mfa_api_v1_auth_mfa_disable_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFADisableRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFADisableResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/status":{"get":{"tags":["Authentication","MFA"],"summary":"Get Mfa Status","description":"Get MFA status for the current user.\n\nReturns:\n MFAStatusResponse: Whether MFA is enabled and backup codes remaining","operationId":"get_mfa_status_api_v1_auth_mfa_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFAStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/backup-codes/regenerate":{"post":{"tags":["Authentication","MFA"],"summary":"Regenerate Backup Codes","description":"Regenerate backup codes for MFA recovery.\n\nThis endpoint:\n1. Generates new backup codes\n2. Invalidates all previous backup codes\n3. Resets the used codes list\n\nReturns:\n RegenerateBackupCodesResponse: New backup codes (SAVE THESE!)","operationId":"regenerate_backup_codes_api_v1_auth_mfa_backup_codes_regenerate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegenerateBackupCodesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/mfa/backup-codes/remaining":{"get":{"tags":["Authentication","MFA"],"summary":"Get Backup Codes Remaining","description":"Get the number of remaining backup codes.\n\nReturns:\n dict: Number of unused backup codes remaining","operationId":"get_backup_codes_remaining_api_v1_auth_mfa_backup_codes_remaining_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"integer"},"title":"Response Get Backup Codes Remaining Api V1 Auth Mfa Backup Codes Remaining Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/github/login":{"get":{"tags":["Authentication"],"summary":"Github Login Url","description":"Get GitHub OAuth login URL.\n\nReturns:\n URL to redirect user to for GitHub authentication","operationId":"github_login_url_api_v1_auth_github_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Github Login Url Api V1 Auth Github Login Get"}}}}}}},"/api/v1/auth/gitlab/login":{"get":{"tags":["Authentication"],"summary":"Gitlab Login Url","description":"Get GitLab OAuth login URL.\n\nReturns:\n URL to redirect user to for GitLab authentication","operationId":"gitlab_login_url_api_v1_auth_gitlab_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Gitlab Login Url Api V1 Auth Gitlab Login Get"}}}}}}},"/api/v1/auth/google/login":{"get":{"tags":["Authentication"],"summary":"Google Login Url","description":"Get Google OAuth login URL.\n\nReturns:\n URL to redirect user to for Google authentication","operationId":"google_login_url_api_v1_auth_google_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Google Login Url Api V1 Auth Google Login Get"}}}}}}},"/api/v1/auth/microsoft/login":{"get":{"tags":["Authentication"],"summary":"Microsoft Login Url","description":"Get Microsoft OAuth login URL.\n\nReturns:\n URL to redirect user to for Microsoft authentication","operationId":"microsoft_login_url_api_v1_auth_microsoft_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Microsoft Login Url Api V1 Auth Microsoft Login Get"}}}}}}},"/api/v1/auth/bitbucket/login":{"get":{"tags":["Authentication"],"summary":"Bitbucket Login Url","description":"Get Bitbucket OAuth login URL.\n\nReturns:\n URL to redirect user to for Bitbucket authentication","operationId":"bitbucket_login_url_api_v1_auth_bitbucket_login_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Bitbucket Login Url Api V1 Auth Bitbucket Login Get"}}}}}}},"/api/v1/auth/github/connect":{"get":{"tags":["Authentication"],"summary":"Github Connect Url","description":"Get GitHub OAuth URL to connect account to existing user.\n\nRequires: User must be logged in.","operationId":"github_connect_url_api_v1_auth_github_connect_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"access_token","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object",
# --- truncated at 32 KB (1697 KB total) ---
# Full source: https://artifacts.apis.io/oec-sh/openapi/_original/oec-sh-api-openapi.json