Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/Gururagavendra/gmail-cleaner
/ endpoints
Endpoints
83 in github.com/Gururagavendra/gmail-cleaner
⨍
Functions
345
◇
Types & classes
58
↳
Endpoints
83
Route
api_apply_label
router.post("/apply-label")
app/api/actions.py:None
Route
api_archive
router.post("/archive")
app/api/actions.py:None
Route
api_archive_status
router.get("/archive-status")
app/api/status.py:None
Route
api_auth_status
router.get("/auth-status")
app/api/status.py:None
Route
api_create_label
router.post("/labels")
app/api/actions.py:None
Route
api_delete_bulk_status
router.get("/delete-bulk-status")
app/api/status.py:None
Route
api_delete_emails
router.post("/delete-emails")
app/api/actions.py:None
Route
api_delete_emails_bulk
router.post("/delete-emails-bulk")
app/api/actions.py:None
Route
api_delete_label
router.delete("/labels/{label_id}")
app/api/actions.py:None
Route
api_delete_scan
router.post("/delete-scan")
app/api/actions.py:None
Route
api_delete_scan_results
router.get("/delete-scan-results")
app/api/status.py:None
Route
api_delete_scan_status
router.get("/delete-scan-status")
app/api/status.py:None
Route
api_download_csv
router.get("/download-csv")
app/api/status.py:None
Route
api_download_emails
router.post("/download-emails")
app/api/actions.py:None
Route
api_download_status
router.get("/download-status")
app/api/status.py:None
Route
api_get_labels
router.get("/labels")
app/api/status.py:None
Route
api_important_status
router.get("/important-status")
app/api/status.py:None
Route
api_label_operation_status
router.get("/label-operation-status")
app/api/status.py:None
Route
api_mark_important
router.post("/mark-important")
app/api/actions.py:None
Route
api_mark_read
router.post("/mark-read")
app/api/actions.py:None
Route
api_mark_read_status
router.get("/mark-read-status")
app/api/status.py:None
Route
api_remove_label
router.post("/remove-label")
app/api/actions.py:None
Route
api_results
router.get("/results")
app/api/status.py:None
Route
api_scan
router.post("/scan")
app/api/actions.py:None
Route
api_sign_in
router.post("/sign-in")
app/api/actions.py:None
Route
api_sign_out
router.post("/sign-out")
app/api/actions.py:None
Route
api_status
router.get("/status")
app/api/status.py:None
Route
api_unread_count
router.get("/unread-count")
app/api/status.py:None
Route
api_unsubscribe
router.post("/unsubscribe")
app/api/actions.py:None
Route
api_web_auth_status
router.get("/web-auth-status")
app/api/status.py:None
Route
root
app.get("/", include_in_schema=False)
app/main.py:None
Route
test_auth_state_after_token_expiry
patch("app.services.auth.settings")
tests/unit/services/auth/test_sign_in_api.py:None
Route
test_auth_state_persists_after_restart
patch("app.services.auth.settings")
tests/unit/services/auth/test_sign_in_api.py:None
Route
test_auth_status_updates_state
patch("app.api.status.check_login_status")
tests/unit/services/auth/test_sign_in_api.py:None
Route
test_auth_status_when_logged_in
patch("app.api.status.check_login_status")
tests/unit/services/auth/test_sign_in_api.py:None
Route
test_auth_status_when_logged_out
patch("app.api.status.check_login_status")
tests/unit/services/auth/test_sign_in_api.py:None
Route
test_complete_oauth_flow_saves_token
patch("app.services.auth.settings")
tests/unit/services/auth/test_oauth_flow_complete.py:None
Route
test_corrupted_token_file_handled
patch("app.services.auth.settings")
tests/unit/services/auth/test_token_management_complete.py:None
Route
test_credentials_env_var_empty_value
patch("app.services.auth.settings")
tests/unit/services/auth/test_credentials_handling_complete.py:None
Route
test_credentials_env_var_invalid_json
patch("app.services.auth.settings")
tests/unit/services/auth/test_credentials_handling_complete.py:None
Route
test_credentials_env_var_write_error
patch("app.services.auth.settings")
tests/unit/services/auth/test_credentials_handling_complete.py:None
Route
test_credentials_file_read_permission_denied
patch("app.services.auth.settings")
tests/unit/services/auth/test_credentials_handling_complete.py:None
Route
test_credentials_file_takes_precedence_over_env
patch("app.services.auth.settings")
tests/unit/services/auth/test_credentials_handling_complete.py:None
Route
test_credentials_from_env_var_creates_file
patch("app.services.auth.settings")
tests/unit/services/auth/test_credentials_handling_complete.py:None
Route
test_credentials_invalid_redirect_uri
patch("app.services.auth.settings")
tests/unit/services/auth/test_credentials_handling_complete.py:None
Route
test_credentials_missing_client_id
patch("app.services.auth.settings")
tests/unit/services/auth/test_credentials_handling_complete.py:None
Route
test_credentials_missing_client_secret
patch("app.services.auth.settings")
tests/unit/services/auth/test_credentials_handling_complete.py:None
Route
test_delete_bulk_with_empty_list
patch("app.api.actions.delete_emails_bulk_background")
tests/unit/api/test_api_actions.py:None
Route
test_delete_bulk_with_valid_senders
patch("app.api.actions.delete_emails_bulk_background")
tests/unit/api/test_api_actions.py:None
Route
test_delete_emails_by_sender
patch("app.api.actions.delete_emails_by_sender")
tests/unit/api/test_api_actions.py:None
Route
test_desktop_credentials_in_local_mode
patch("app.services.auth.settings")
tests/unit/services/auth/test_credentials_handling_complete.py:None
Route
test_empty_token_file_handled
patch("app.services.auth.settings")
tests/unit/services/auth/test_token_management_complete.py:None
Route
test_expired_token_with_refresh_token_auto_refreshes
patch("app.services.auth.settings")
tests/unit/services/auth/test_token_management_complete.py:None
Route
test_expired_token_without_refresh_token_requires_reauth
patch("app.services.auth.settings")
tests/unit/services/auth/test_token_management_complete.py:None
Route
test_get_unread_count
patch("app.services.auth.get_gmail_service")
tests/unit/api/test_api_status.py:None
Route
test_oauth_flow_desktop_mode_binds_to_localhost
patch("app.services.auth.settings")
tests/unit/services/auth/test_oauth_flow_complete.py:None
Route
test_oauth_flow_web_auth_mode_binds_to_all_interfaces
patch("app.services.auth.settings")
tests/unit/services/auth/test_oauth_flow_complete.py:None
Route
test_oauth_flow_with_custom_oauth_host
patch("app.services.auth.settings")
tests/unit/services/auth/test_oauth_flow_complete.py:None
Route
test_oauth_invalid_authorization_code
patch("app.services.auth.settings")
tests/unit/services/auth/test_oauth_flow_complete.py:None
Route
test_oauth_resets_auth_in_progress_on_error
patch("app.services.auth.settings")
tests/unit/services/auth/test_oauth_flow_complete.py:None
Route
test_oauth_timeout_handling
patch("app.services.auth.settings")
tests/unit/services/auth/test_oauth_flow_complete.py:None
Route
test_sign_in
patch("app.api.actions.get_gmail_service")
tests/unit/api/test_api_actions.py:None
Route
test_sign_in_endpoint_non_blocking
patch("app.api.actions.get_gmail_service")
tests/unit/services/auth/test_sign_in_api.py:None
Route
test_sign_in_endpoint_triggers_oauth
patch("app.api.actions.get_gmail_service")
tests/unit/services/auth/test_sign_in_api.py:None
Route
test_sign_in_when_already_in_progress
patch("app.api.actions.get_gmail_service")
tests/unit/services/auth/test_sign_in_api.py:None
Route
test_sign_out
patch("app.api.actions.sign_out")
tests/unit/api/test_api_actions.py:None
Route
test_sign_out_endpoint_error_handling
patch("app.api.actions.sign_out")
tests/unit/services/auth/test_sign_in_api.py:None
Route
test_sign_out_endpoint_success
patch("app.api.actions.sign_out")
tests/unit/services/auth/test_sign_in_api.py:None
Route
test_sign_out_when_not_logged_in
patch("app.api.actions.sign_out")
tests/unit/services/auth/test_sign_in_api.py:None
Route
test_token_file_created_after_oauth
patch("app.services.auth.settings")
tests/unit/services/auth/test_token_management_complete.py:None
Route
test_token_file_missing_requires_auth
patch("app.services.auth.settings")
tests/unit/services/auth/test_token_management_complete.py:None
Route
test_token_file_permission_denied
patch("app.services.auth.settings")
tests/unit/services/auth/test_token_management_complete.py:None
Route
test_token_not_exposed_in_logs
patch("app.services.auth.settings")
tests/unit/services/auth/test_token_management_complete.py:None
Route
test_token_refresh_saves_new_token
patch("app.services.auth.settings")
tests/unit/services/auth/test_token_management_complete.py:None
Route
test_token_refresh_write_failure
patch("app.services.auth.settings")
tests/unit/services/auth/test_token_management_complete.py:None
Route
test_token_saved_with_correct_scopes
patch("app.services.auth.settings")
tests/unit/services/auth/test_token_management_complete.py:None
Route
test_unsubscribe_with_link
patch("app.api.actions.unsubscribe_single")
tests/unit/api/test_api_actions.py:None
Route
test_valid_token_is_recognized
patch("app.services.auth.settings")
tests/unit/services/auth/test_token_management_complete.py:None
Route
test_web_auth_status_web_auth_mode_missing_credentials
patch("app.api.status.get_web_auth_status")
tests/unit/services/auth/test_sign_in_api.py:None
Route
test_web_auth_status_with_credentials
patch("app.api.status.get_web_auth_status")
tests/unit/services/auth/test_sign_in_api.py:None
Route
test_web_auth_status_with_pending_url
patch("app.api.status.get_web_auth_status")
tests/unit/services/auth/test_sign_in_api.py:None
Route
test_web_auth_status_without_credentials
patch("app.api.status.get_web_auth_status")
tests/unit/services/auth/test_sign_in_api.py:None
Route
test_web_credentials_in_docker_mode
patch("app.services.auth.settings")
tests/unit/services/auth/test_credentials_handling_complete.py:None