{"openapi":"3.1.0","info":{"title":"FastAPI","version":"0.1.0"},"paths":{"/auth/login":{"post":{"summary":"Login","description":"Check a locally-registered (sign-up form) account first, then fall back\nto validating against the BoxNearby OpenAPI LoginUser endpoint — either\nway we issue our own app JWT (does not require an associated merchant).","operationId":"login_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__auth__LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/signup":{"post":{"summary":"Signup","description":"Create a local email/password account and issue our app JWT.","operationId":"signup_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/verify-email":{"get":{"summary":"Verify Email","operationId":"verify_email_auth_verify_email_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/forgot-password":{"post":{"summary":"Forgot Password","description":"Email a password-reset link. The answer is the same whether or not the address has an account, so this can't\nbe used to find out who is registered.","operationId":"forgot_password_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/reset-password":{"post":{"summary":"Reset Password","description":"Set a new password with the token from the email.","operationId":"reset_password_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/google":{"get":{"summary":"Google Start","operationId":"google_start_auth_google_get","parameters":[{"name":"mobile","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Mobile"}},{"name":"redirect_uri","in":"query","required":false,"schema":{"type":"string","default":"","title":"Redirect Uri"}},{"name":"ref","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/google/callback":{"get":{"summary":"Google Callback","operationId":"google_callback_auth_google_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/microsoft":{"get":{"summary":"Microsoft Start","operationId":"microsoft_start_auth_microsoft_get","parameters":[{"name":"mobile","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Mobile"}},{"name":"redirect_uri","in":"query","required":false,"schema":{"type":"string","default":"","title":"Redirect Uri"}},{"name":"ref","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/microsoft/callback":{"get":{"summary":"Microsoft Callback","operationId":"microsoft_callback_auth_microsoft_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/apple":{"get":{"summary":"Apple Start","operationId":"apple_start_auth_apple_get","parameters":[{"name":"mobile","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Mobile"}},{"name":"redirect_uri","in":"query","required":false,"schema":{"type":"string","default":"","title":"Redirect Uri"}},{"name":"ref","in":"query","required":false,"schema":{"type":"string","default":"","title":"Ref"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/apple/callback":{"post":{"summary":"Apple Callback","operationId":"apple_callback_auth_apple_callback_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_apple_callback_auth_apple_callback_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/email/start":{"post":{"summary":"Email Start","operationId":"email_start_auth_email_start_post","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/Body_email_start_auth_email_start_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/auth/email/callback":{"get":{"summary":"Email Callback","operationId":"email_callback_auth_email_callback_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/login":{"post":{"summary":"Admin Login","operationId":"admin_login_admin_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/api__admin__LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/change-password":{"post":{"summary":"Change Password","operationId":"change_password_admin_change_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/api/dashboard":{"get":{"summary":"Dashboard","operationId":"dashboard_admin_api_dashboard_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/api/carriers":{"get":{"summary":"Carrier Status","description":"Every carrier with its state: ok, down, probation or disabled (see utils/carrier_health.py).","operationId":"carrier_status_admin_api_carriers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/api/carriers/{carrier}/{action}":{"post":{"summary":"Carrier Override","description":"action is \"disable\" (off until turned back on) or \"enable\" (back in service now).","operationId":"carrier_override_admin_api_carriers__carrier___action__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"carrier","in":"path","required":true,"schema":{"type":"string","title":"Carrier"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/users":{"get":{"summary":"List Users","operationId":"list_users_admin_api_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","pattern":"^(|active|unverified|deleted)$","default":"","title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/users/{user_id}":{"get":{"summary":"Get User","operationId":"get_user_admin_api_users__user_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/users/{user_id}/tokens":{"patch":{"summary":"Update User Tokens","operationId":"update_user_tokens_admin_api_users__user_id__tokens_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenAdjust"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/transactions":{"get":{"summary":"List Transactions","operationId":"list_transactions_admin_api_transactions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"record_type","in":"query","required":false,"schema":{"type":"string","default":"","title":"Record Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/transactions/{billing_id}":{"get":{"summary":"Get Transaction","operationId":"get_transaction_admin_api_transactions__billing_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"billing_id","in":"path","required":true,"schema":{"type":"integer","title":"Billing Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/ai-traffic":{"get":{"summary":"Ai Traffic","description":"Requests from known AI assistants and crawlers (see utils/ai_traffic.py).","operationId":"ai_traffic_admin_api_ai_traffic_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/mcp-usage":{"get":{"summary":"Mcp Usage","description":"How the MCP endpoints are used: connection attempts, initializations, tool discovery and tool calls\n(see utils/mcp_log.py).","operationId":"mcp_usage_admin_api_mcp_usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"hours","in":"query","required":false,"schema":{"type":"integer","maximum":720,"minimum":1,"default":168,"title":"Hours"}},{"name":"endpoint","in":"query","required":false,"schema":{"type":"string","pattern":"^(all|mcp|public)$","default":"all","title":"Endpoint"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/mcp-requests":{"get":{"summary":"Mcp Requests","description":"The newest requests to the MCP endpoints, one per MCP message.","operationId":"mcp_requests_admin_api_mcp_requests_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"endpoint","in":"query","required":false,"schema":{"type":"string","pattern":"^(all|mcp|public)$","default":"all","title":"Endpoint"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/usps-adjustments":{"get":{"summary":"List Usps Adjustments","description":"charge_status filters by what happened with the customer (\"attention\" = needs_review, failed and the like).","operationId":"list_usps_adjustments_admin_api_usps_adjustments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"subtype","in":"query","required":false,"schema":{"type":"string","default":"","title":"Subtype"}},{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"charge_status","in":"query","required":false,"schema":{"type":"string","default":"","title":"Charge Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/usps-adjustments/{adjustment_id}/charge":{"post":{"summary":"Charge Usps Adjustment","description":"Approve charging the customer for an adjustment that was queued for review (over the cap, or failed earlier).","operationId":"charge_usps_adjustment_admin_api_usps_adjustments__adjustment_id__charge_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"adjustment_id","in":"path","required":true,"schema":{"type":"integer","title":"Adjustment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/usps-adjustments/{adjustment_id}/dismiss":{"post":{"summary":"Dismiss Usps Adjustment","operationId":"dismiss_usps_adjustment_admin_api_usps_adjustments__adjustment_id__dismiss_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"adjustment_id","in":"path","required":true,"schema":{"type":"integer","title":"Adjustment Id"}},{"name":"reason","in":"query","required":false,"schema":{"type":"string","default":"","title":"Reason"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/usps-adjustments/ensure-subscription":{"post":{"summary":"Ensure Usps Adjustment Subscription","description":"Create or re-enable the USPS adjustment subscription now, instead of waiting for the daily check.","operationId":"ensure_usps_adjustment_subscription_admin_api_usps_adjustments_ensure_subscription_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/api/refunds":{"get":{"summary":"List Refunds","description":"Label refund requests; `state` is held, processing, refunded, rejected or failed (empty: all).","operationId":"list_refunds_admin_api_refunds_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","default":"","title":"State"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/refunds/{record_id}/{action}":{"post":{"summary":"Refund Action","description":"action: process (do a held request now), decline, or retry-payment (money didn't go back after USPS cancelled).","operationId":"refund_action_admin_api_refunds__record_id___action__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}},{"name":"action","in":"path","required":true,"schema":{"type":"string","title":"Action"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/wallet-refunds":{"get":{"summary":"List Wallet Refunds","description":"Refunds of customers' wallet balances to their cards, newest first.","operationId":"list_wallet_refunds_admin_api_wallet_refunds_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/wallet-refunds/{refund_id}/retry":{"post":{"summary":"Retry Wallet Refund","description":"Repeat the Stripe call for a wallet refund left pending (Stripe's idempotency key makes this safe).","operationId":"retry_wallet_refund_admin_api_wallet_refunds__refund_id__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"refund_id","in":"path","required":true,"schema":{"type":"integer","title":"Refund Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/admin/api/deleted-wallets":{"get":{"summary":"List Deleted Wallets","description":"Deleted accounts that still hold wallet money, so the admin can return it to the customer's card.","operationId":"list_deleted_wallets_admin_api_deleted_wallets_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/api/deleted-wallets/refund":{"post":{"summary":"Refund Deleted Wallet","description":"Refund what can be refunded of a deleted account's wallet to the card or bank account it was added with, for a\ncustomer who deleted the account by mistake. The money can only go back to the original payment method (same rules\nas the customer's own wallet refund, utils/wallet_refund.py) and the customer is emailed at their real address.","operationId":"refund_deleted_wallet_admin_api_deleted_wallets_refund_post","requestBody":{"content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Payload"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/api/token-usage":{"get":{"summary":"Token Usage","operationId":"token_usage_admin_api_token_usage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/api/settings":{"get":{"summary":"Get Settings","operationId":"get_settings_admin_api_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"put":{"summary":"Update Settings","operationId":"update_settings_admin_api_settings_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/api/test-email":{"post":{"summary":"Send Test Email","operationId":"send_test_email_admin_api_test_email_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestEmailRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/admin/api/reviewer-account":{"post":{"summary":"Create Reviewer Account","operationId":"create_reviewer_account_admin_api_reviewer_account_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewerAccountRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/public/v1/pickup-points":{"get":{"tags":["AirboxShip public look-ups"],"summary":"Find USPS Post Offices and Smart Lockers near a location","description":"Returns each location's id, name, type (Post Office hold-for-pickup or Smart Locker), address and\ndistance in miles, as {\"hubs\": [...]}. A look-up only: it does not buy a label or reserve anything.\nIf something is wrong the body has an \"error\" message instead.","operationId":"findPickupPoints","parameters":[{"name":"location","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":200,"description":"Address, place name or ZIP code, e.g. '95134' or '123 Main St, San Jose, CA'","title":"Location"},"description":"Address, place name or ZIP code, e.g. '95134' or '123 Main St, San Jose, CA'"},{"name":"radius_miles","in":"query","required":false,"schema":{"type":"integer","maximum":25,"minimum":1,"description":"Search radius in miles (1 to 25)","default":5,"title":"Radius Miles"},"description":"Search radius in miles (1 to 25)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Findpickuppoints"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-openai-isConsequential":false}},"/public/v1/rates":{"post":{"tags":["AirboxShip public look-ups"],"summary":"Compare USPS and UPS shipping rates for a package between two US addresses","description":"Returns each option's carrier, service, price in USD and estimated delivery time, as\n{\"rates\": [...]}, at the standard price. Quotes are indicative and not reserved. This only\nquotes prices; buying a label needs an AirboxShip account (https://airboxship.ai). If something is\nwrong the body has an \"error\" message instead.","operationId":"getShippingRates","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Getshippingrates"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-openai-isConsequential":false}},"/public/v1/tracking/{tracking_number}":{"get":{"tags":["AirboxShip public look-ups"],"summary":"Look up the current status of a USPS package by tracking number","description":"Returns the package's status, USPS's one-line summary, the expected delivery date and the latest\nscan (what, when, and the city and state). USPS packages only; a UPS number gets an \"error\" message\npointing to ups.com. The same information usps.com shows anyone who has the number.","operationId":"trackPackage","parameters":[{"name":"tracking_number","in":"path","required":true,"schema":{"type":"string","minLength":8,"maxLength":40,"description":"USPS tracking number, e.g. '9400111899223197428490'","title":"Tracking Number"},"description":"USPS tracking number, e.g. '9400111899223197428490'"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Trackpackage"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"x-openai-isConsequential":false}},"/healthz":{"get":{"summary":"Health Check","operationId":"health_check_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/telegram/webhook":{"post":{"summary":"Telegram Webhook","operationId":"telegram_webhook_telegram_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/shipping/session/{session_id}/start":{"post":{"summary":"Start Shipping","operationId":"start_shipping_shipping_session__session_id__start_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/shipping/session/{session_id}/select-rate":{"post":{"summary":"Select Rate","operationId":"select_rate_shipping_session__session_id__select_rate_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/stripe/webhook":{"post":{"summary":"Stripe Webhook","operationId":"stripe_webhook_stripe_webhook_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhook/easypost":{"post":{"summary":"Easypost Webhook","description":"Receive EasyPost tracker status events and update the billing record.","operationId":"easypost_webhook_webhook_easypost_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhook/usps-tracking":{"post":{"summary":"Usps Tracking Webhook","description":"Receive USPS Subscriptions-Tracking v3r2 push notifications and update\nbilling records.\n\nEach notification is an envelope — {subscriptionId, subscriptionType,\ntimestamp, payload} — where `payload` is the actual tracking data\nJSON-encoded as a STRING (per USPS's spec), not top-level fields, so it\nneeds an extra json.loads() to get at trackingNumber/statusCategory/etc.","operationId":"usps_tracking_webhook_webhook_usps_tracking_post","parameters":[{"name":"secret","in":"query","required":false,"schema":{"type":"string","default":"","title":"Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/usps-adjustments":{"post":{"summary":"Usps Adjustments Webhook","description":"Receive USPS Subscriptions-Adjustments v3 notifications (CENSUS, DUPLICATES, UNMANIFESTED): verify the\nX-HMAC signature, store each adjustment, link it to our label, and alert the operator when one is new or\nits status changes. Customers are not charged or messaged from here.","operationId":"usps_adjustments_webhook_webhook_usps_adjustments_post","parameters":[{"name":"secret","in":"query","required":false,"schema":{"type":"string","default":"","title":"Secret"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscription/plans":{"get":{"summary":"Get Subscription Plans","operationId":"get_subscription_plans_api_subscription_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/subscription/web-plans":{"get":{"summary":"Get Web Subscription Plans","description":"Web-only plan catalog — see WEB_SUBSCRIPTION_PLANS for why this is\ndistinct from /api/subscription/plans (the mobile IAP catalog). Prices come from the admin settings. Basic\nalso says how many free days a subscription would start with for this customer (the 3 free months for a new\nmember, plus any free year earned from referrals); a visitor not signed in is shown the 3 months.","operationId":"get_web_subscription_plans_api_subscription_web_plans_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscription/checkout":{"post":{"summary":"Subscription Checkout","description":"Start a web subscription purchase. Card and ACH bank debit are both\noffered; the plan is NOT activated here — see the invoice.paid branch of\nstripe_webhook, which only fires once payment has actually cleared\n(instant for card, 3-5 business days for ACH).\n\nIf the user already has an active paid subscription, this instead\nswitches it to the new plan in place (see _switch_web_subscription_plan)\n— a fresh checkout session would create a second, independent\nsubscription rather than replacing the first.","operationId":"subscription_checkout_api_subscription_checkout_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscription/add-payment-method":{"post":{"summary":"Add Payment Method","description":"Basic (free) plan members must have a valid card or ACH bank account\non file. Nothing is charged — this is a $0 Stripe Setup Checkout Session\nthat just collects and verifies a payment method; see the\nadd_payment_method branch of stripe_webhook for where it's recorded.","operationId":"add_payment_method_api_subscription_add_payment_method_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscription/portal":{"post":{"summary":"Subscription Portal","description":"Stripe's hosted Customer Billing Portal — lets a member view invoices,\nupdate their payment method, or cancel auto-renewal themselves without\nany custom UI for those flows. customer.subscription.deleted (webhook,\nabove) is what reflects a portal cancellation back into our DB.","operationId":"subscription_portal_api_subscription_portal_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/referral":{"get":{"summary":"Get Referral","description":"The customer's referral code and link, how many people have signed up with it, and the free-year reward.","operationId":"get_referral_api_referral_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/referral/flyer":{"get":{"summary":"Get Referral Flyer","description":"The shareable flyer page (name, referral code, QR code of the referral link), for the preview and for printing.","operationId":"get_referral_flyer_api_referral_flyer_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/referral/flyer.png":{"get":{"summary":"Get Referral Flyer Image","description":"The flyer as a picture, to save or share from the account (same content as the page).","operationId":"get_referral_flyer_image_api_referral_flyer_png_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscription":{"get":{"summary":"Get Subscription","operationId":"get_subscription_api_subscription_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/subscription/validate":{"post":{"summary":"Validate Subscription","description":"Called by the mobile client immediately after a successful IAP purchase.\nValidates the receipt with Apple or the purchase token with Google, then\nupserts the subscription row and grants the monthly token allocation.","operationId":"validate_subscription_api_subscription_validate_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhook/apple":{"post":{"summary":"Apple S2S Webhook","description":"Apple App Store Server Notifications V2.\nApple sends a signed JWS payload. We decode the base64url middle segment\nto extract the notification type and transaction, then update the DB.","operationId":"apple_s2s_webhook_webhook_apple_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/webhook/google":{"post":{"summary":"Google Rtdn Webhook","description":"Google Play Real-Time Developer Notifications (Pub/Sub push).\nPayload: { \"message\": { \"data\": \"<base64 DeveloperNotification>\" } }\nSubscription notification types: 1=recovered,2=renewed,3=canceled,4=purchased,\n5=on_hold,6=grace_period,7=restarted,12=expired,13=deferred,14=paused.","operationId":"google_rtdn_webhook_webhook_google_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/places/autocomplete":{"get":{"summary":"Places Autocomplete","operationId":"places_autocomplete_api_places_autocomplete_get","parameters":[{"name":"input","in":"query","required":false,"schema":{"type":"string","default":"","title":"Input"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/maps-key":{"get":{"summary":"Get Maps Key","description":"Return the Google Maps JavaScript API key for client-side map rendering.\n\nGOOGLE_API_KEY must have an HTTP-referrer restriction configured in the\nGoogle Cloud Console limiting it to this app's domain(s). Open to guests —\nsee /api/hubs above.","operationId":"get_maps_key_api_maps_key_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hubs":{"get":{"summary":"Get Hubs","operationId":"get_hubs_api_hubs_get","parameters":[{"name":"query","in":"query","required":false,"schema":{"type":"string","default":"","title":"Query"}},{"name":"radius","in":"query","required":false,"schema":{"type":"integer","maximum":25,"minimum":1,"default":5,"title":"Radius"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shipments":{"get":{"summary":"Get Shipments","operationId":"get_shipments_api_shipments_get","parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Page Size"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shipments/summary":{"get":{"summary":"Get Shipments Summary","operationId":"get_shipments_summary_api_shipments_summary_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shipments/monthly-usage":{"get":{"summary":"Get Shipments Monthly Usage","operationId":"get_shipments_monthly_usage_api_shipments_monthly_usage_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Serve Landing","operationId":"serve_landing__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/app":{"get":{"summary":"Serve Web Ui","operationId":"serve_web_ui_app_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/apple-developer-domain-association.txt":{"get":{"summary":"Apple Domain Verification","description":"Apple fetches this during Services ID domain verification in Developer Console.","operationId":"apple_domain_verification__well_known_apple_developer_domain_association_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/terms":{"get":{"summary":"Serve Terms","description":"The Terms, with the plan prices and offers filled in from the backend ({{...}} in static/terms.html): the admin's\nprices, the free months, the referral goal and the free year, so the page never disagrees with the Plans page.","operationId":"serve_terms_terms_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/reset-password":{"get":{"summary":"Serve Reset Password","description":"Forgot password: asks for the email, or (with ?token= from the emailed link) takes the new password.","operationId":"serve_reset_password_reset_password_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/privacy":{"get":{"summary":"Serve Privacy","operationId":"serve_privacy_privacy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/about":{"get":{"summary":"Serve About","operationId":"serve_about_about_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/support":{"get":{"summary":"Serve Support","operationId":"serve_support_support_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/data-sharing-opt-out":{"get":{"summary":"Serve Data Sharing Opt Out","operationId":"serve_data_sharing_opt_out_data_sharing_opt_out_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/mcp-guide":{"get":{"summary":"Serve Mcp Guide","operationId":"serve_mcp_guide_mcp_guide_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/robots.txt":{"get":{"summary":"Robots Txt","operationId":"robots_txt_robots_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/sitemap.xml":{"get":{"summary":"Sitemap Xml","operationId":"sitemap_xml_sitemap_xml_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/llms.txt":{"get":{"summary":"Llms Txt","operationId":"llms_txt_llms_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/llms-full.txt":{"get":{"summary":"Llms Full Txt","operationId":"llms_full_txt_llms_full_txt_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/{name}.txt":{"get":{"summary":"Indexnow Key File","description":"The IndexNow key: the search engines fetch /<key>.txt to check the site is ours (utils/indexnow.py).\nAny other single-segment .txt is a 404. Keep this below the fixed .txt routes above.","operationId":"indexnow_key_file__name__txt_get","parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/.well-known/mcp-registry-auth":{"get":{"summary":"Mcp Registry Auth","description":"The MCP Registry checks this file to let us publish names under our domain (ai.airboxship/...).\nThe proof comes from the admin setting MCP_REGISTRY_AUTH; until it is set this is a 404.","operationId":"mcp_registry_auth__well_known_mcp_registry_auth_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/.well-known/mcp/server-card.json":{"get":{"summary":"Mcp Server Card","operationId":"mcp_server_card__well_known_mcp_server_card_json_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/config":{"get":{"summary":"Get Public Config","operationId":"get_public_config_api_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/profile":{"get":{"summary":"Get Profile","operationId":"get_profile_api_profile_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions":{"get":{"summary":"Get Sessions","operationId":"get_sessions_api_sessions_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/{session_id}":{"delete":{"summary":"Delete Session","operationId":"delete_session_api_sessions__session_id__delete","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Rename Session","operationId":"rename_session_api_sessions__session_id__patch","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/account/delete":{"post":{"summary":"Delete Account","description":"Delete the signed-in user's account (App Store guideline 5.1.1(v)). This is a soft\ndelete: the user's data stays in the database, re-keyed from the email to\n\"<email>#deleted-<unix time>\" (db.mark_account_deleted), and the tokens issued so far stop\nworking. The email is then free: signing up or signing in with it again starts a new, empty\naccount. Password accounts must re-enter their password; accounts that sign in through\nGoogle, Microsoft, Apple or BoxNearby just confirm. A Stripe subscription is cancelled\nfirst, so a failure there leaves the account untouched rather than still billing a deleted\nuser.","operationId":"delete_account_api_account_delete_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/{session_id}/messages":{"get":{"summary":"Get Messages","operationId":"get_messages_api_sessions__session_id__messages_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/sessions/{session_id}/graph-state":{"get":{"summary":"Get Session Graph State","operationId":"get_session_graph_state_api_sessions__session_id__graph_state_get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts":{"get":{"summary":"Get Contacts","operationId":"get_contacts_api_contacts_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"latest","title":"Sort By"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Contact","operationId":"create_contact_api_contacts_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/contacts/{contact_id}":{"put":{"summary":"Update Contact","operationId":"update_contact_api_contacts__contact_id__put","parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"integer","title":"Contact Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/usage":{"get":{"summary":"Get Usage","operationId":"get_usage_api_usage_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp-keys":{"get":{"summary":"List Mcp Keys","operationId":"list_mcp_keys_api_mcp_keys_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Mcp Key","operationId":"create_mcp_key_api_mcp_keys_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp-keys/{key_id}":{"delete":{"summary":"Revoke Mcp Key","operationId":"revoke_mcp_key_api_mcp_keys__key_id__delete","parameters":[{"name":"key_id","in":"path","required":true,"schema":{"type":"integer","title":"Key Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/agent-purchase-settings":{"get":{"summary":"Get Agent Purchase Settings","operationId":"get_agent_purchase_settings_api_agent_purchase_settings_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Agent Purchase Settings","operationId":"update_agent_purchase_settings_api_agent_purchase_settings_put","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/wallet/topup-quote":{"get":{"summary":"Wallet Topup Quote","description":"What each payment method would charge to add this amount, shown before checkout.","operationId":"wallet_topup_quote_api_wallet_topup_quote_get","parameters":[{"name":"amount_usd","in":"query","required":false,"schema":{"type":"number","default":0,"title":"Amount Usd"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/wallet":{"get":{"summary":"Get Wallet Info","operationId":"get_wallet_info_api_wallet_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/wallet/refund-quote":{"get":{"summary":"Wallet Refund Quote","description":"Where a refund of this amount would go (nothing is done).","operationId":"wallet_refund_quote_api_wallet_refund_quote_get","parameters":[{"name":"amount_usd","in":"query","required":false,"schema":{"type":"number","default":0,"title":"Amount Usd"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/wallet/refund":{"post":{"summary":"Wallet Refund Request","description":"Refund unspent wallet balance to the card or bank account it was added with (utils/wallet_refund.py).\nWorks even if the wallet is switched off for new top-ups: money already in it can always be taken out.","operationId":"wallet_refund_request_api_wallet_refund_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/wallet/topup":{"post":{"summary":"Wallet Topup","operationId":"wallet_topup_api_wallet_topup_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/wallet/auto-topup":{"get":{"summary":"Get Wallet Auto Topup","operationId":"get_wallet_auto_topup_api_wallet_auto_topup_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Wallet Auto Topup","operationId":"update_wallet_auto_topup_api_wallet_auto_topup_put","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications":{"get":{"summary":"Get Notifications","operationId":"get_notifications_api_notifications_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}},{"name":"q","in":"query","required":false,"schema":{"type":"string","default":"","title":"Q"}},{"name":"type","in":"query","required":false,"schema":{"type":"string","default":"","title":"Type"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/{notification_id}/read":{"post":{"summary":"Mark Notification Read","operationId":"mark_notification_read_api_notifications__notification_id__read_post","parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"integer","title":"Notification Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/notifications/read-all":{"post":{"summary":"Mark All Notifications Read","operationId":"mark_all_notifications_read_api_notifications_read_all_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing":{"get":{"summary":"Get Billing","operationId":"get_billing_api_billing_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Page Size"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","default":"date","title":"Sort By"}},{"name":"sort_dir","in":"query","required":false,"schema":{"type":"string","default":"desc","title":"Sort Dir"}},{"name":"record_type","in":"query","required":false,"schema":{"type":"string","default":"","title":"Record Type"}},{"name":"search","in":"query","required":false,"schema":{"type":"string","default":"","title":"Search"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/plans":{"get":{"summary":"Get Billing Plans","operationId":"get_billing_plans_api_billing_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/billing/{record_id}":{"get":{"summary":"Get Billing Detail","operationId":"get_billing_detail_api_billing__record_id__get","parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/labels/proxy":{"get":{"summary":"Proxy Label","description":"Fetch a label PDF/image server-side and stream it back same-origin.\n\nNeeded so the browser can pull the file into a blob: URL (same-origin)\nand trigger window.print() on it — carriers/S3 don't send CORS headers\nthat would let the browser fetch() the original cross-origin URL directly.","operationId":"proxy_label_api_labels_proxy_get","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","title":"Url"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/shipments/{record_id}/refresh-tracking":{"post":{"summary":"Refresh Tracking","operationId":"refresh_tracking_api_shipments__record_id__refresh_tracking_post","parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"integer","title":"Record Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/refund-eligibility":{"get":{"summary":"Get Refund Eligibility","operationId":"get_refund_eligibility_api_refund_eligibility_get","parameters":[{"name":"tracking_number","in":"query","required":true,"schema":{"type":"string","title":"Tracking Number"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/refund-request":{"post":{"summary":"Request Refund","operationId":"request_refund_api_refund_request_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/billing/purchase-tokens":{"post":{"summary":"Purchase Tokens","operationId":"purchase_tokens_api_billing_purchase_tokens_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/feedback":{"post":{"summary":"Submit Feedback","operationId":"submit_feedback_api_feedback_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/batch":{"get":{"summary":"Serve Batch","operationId":"serve_batch_batch_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pickup-points":{"get":{"summary":"Serve Pickup Points","operationId":"serve_pickup_points_pickup_points_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/pickup-points/{slug}":{"get":{"summary":"Serve Pickup City","operationId":"serve_pickup_city_pickup_points__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile/sender-addresses":{"get":{"summary":"Get Sender Addresses","operationId":"get_sender_addresses_api_profile_sender_addresses_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Put Sender Addresses","operationId":"put_sender_addresses_api_profile_sender_addresses_put","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/profile/business":{"put":{"summary":"Put Business Profile","operationId":"put_business_profile_api_profile_business_put","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/batch/sessions":{"post":{"summary":"Create Batch Session","description":"Persist a parsed batch upload immediately, before any pricing/payment,\nso it shows up in history even if the user never finishes a run.","operationId":"create_batch_session_api_batch_sessions_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Batch Sessions","operationId":"list_batch_sessions_api_batch_sessions_get","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/batch/sessions/{session_id}":{"patch":{"summary":"Rename Batch Session","operationId":"rename_batch_session_api_batch_sessions__session_id__patch","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Get Batch Session","operationId":"get_batch_session_api_batch_sessions__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/batch/sessions/{session_id}/orders/{order_id}/retry":{"post":{"summary":"Retry Batch Order","description":"Free retry for an order that already got the customer charged (it failed\nduring EasyPost label creation, after Stripe payment succeeded). No new\ncharge — orders that never got charged rerun through the normal paid flow.","operationId":"retry_batch_order_api_batch_sessions__session_id__orders__order_id__retry_post","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"order_id","in":"path","required":true,"schema":{"type":"integer","title":"Order Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/batch/parse":{"post":{"summary":"Batch Parse","operationId":"batch_parse_api_batch_parse_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_batch_parse_api_batch_parse_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/batch/get-rates":{"post":{"summary":"Batch Get Rates","description":"Fetch EasyPost rates for all valid orders, save the batch to Redis, return SSE stream.\nBody: {orders, carrier_preference, session_id?}  — each order carries its own sender\nand parcel, plus a db_order_id if it belongs to a persisted batch session.","operationId":"batch_get_rates_api_batch_get_rates_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/batch/checkout":{"post":{"summary":"Batch Checkout","operationId":"batch_checkout_api_batch_checkout_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/batch/{batch_id}/progress":{"get":{"summary":"Batch Progress","description":"SSE endpoint: streams label creation results published by the Stripe webhook.","operationId":"batch_progress_api_batch__batch_id__progress_get","parameters":[{"name":"batch_id","in":"path","required":true,"schema":{"type":"string","title":"Batch Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/batch/download-zip":{"post":{"summary":"Download Batch Zip","description":"Bundle a set of already-created batch labels into a single ZIP, optionally\nre-rendering each one into Letter format first (same conversion used for the\nsingle-label Letter option).","operationId":"download_batch_zip_api_batch_download_zip_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub-ship/rates":{"post":{"summary":"Hub Ship Rates","operationId":"hub_ship_rates_api_hub_ship_rates_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub-ship/checkout":{"post":{"summary":"Hub Ship Checkout","operationId":"hub_ship_checkout_api_hub_ship_checkout_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub-ship/pay-wallet":{"post":{"summary":"Hub Ship Pay Wallet","description":"Pay for a pickup-point label from the wallet instead of through Stripe Checkout. Same\nrequest body as /api/hub-ship/checkout; the label is then created by the same\n_fulfill_hub_label and the browser polls /api/hub-ship/status/{order_id} as usual.\n\nUnlike the card checkout, the price is NOT taken from the request: the wallet debit is\ncomputed here from the carrier's current rate, so a doctored amount can't underpay.","operationId":"hub_ship_pay_wallet_api_hub_ship_pay_wallet_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub-ship/success/{order_id}":{"get":{"summary":"Hub Ship Payment Success","operationId":"hub_ship_payment_success_api_hub_ship_success__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/hub-ship/status/{order_id}":{"get":{"summary":"Hub Ship Status","operationId":"hub_ship_status_api_hub_ship_status__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/mcp-label/status/{order_id}":{"get":{"summary":"Mcp Label Status","description":"Poll the status of a label purchase started via the MCP create_shipping_label tool.","operationId":"mcp_label_status_api_mcp_label_status__order_id__get","parameters":[{"name":"order_id","in":"path","required":true,"schema":{"type":"string","title":"Order Id"}},{"name":"token","in":"query","required":false,"schema":{"type":"string","default":"","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payment/success":{"get":{"summary":"Payment Success","operationId":"payment_success_payment_success_get","parameters":[{"name":"session_id","in":"query","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"source","in":"query","required":false,"schema":{"type":"string","default":"web","title":"Source"}},{"name":"batch_id","in":"query","required":false,"schema":{"type":"string","default":"","title":"Batch Id"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/payment/cancel":{"get":{"summary":"Payment Cancel","operationId":"payment_cancel_payment_cancel_get","parameters":[{"name":"source","in":"query","required":false,"schema":{"type":"string","default":"web","title":"Source"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_apple_callback_auth_apple_callback_post":{"properties":{"code":{"type":"string","title":"Code","default":""},"state":{"type":"string","title":"State","default":""},"user":{"type":"string","title":"User","default":""}},"type":"object","title":"Body_apple_callback_auth_apple_callback_post"},"Body_batch_parse_api_batch_parse_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_batch_parse_api_batch_parse_post"},"Body_email_start_auth_email_start_post":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"Body_email_start_auth_email_start_post"},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","title":"Current Password"},"new_password":{"type":"string","title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordRequest"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"RateRequest":{"properties":{"sender_name":{"type":"string","maxLength":120,"title":"Sender Name","description":"Full name of the person or business at this address"},"sender_street1":{"type":"string","maxLength":120,"title":"Sender Street1","description":"Street address line, e.g. '123 Main St'"},"sender_city":{"type":"string","maxLength":80,"title":"Sender City","description":"City name, e.g. 'San Francisco'"},"sender_state":{"type":"string","maxLength":2,"title":"Sender State","description":"Two-letter US state code, e.g. 'CA'"},"sender_zip":{"type":"string","maxLength":10,"title":"Sender Zip","description":"US ZIP code, e.g. '94103'"},"recipient_name":{"type":"string","maxLength":120,"title":"Recipient Name","description":"Full name of the person or business at this address"},"recipient_street1":{"type":"string","maxLength":120,"title":"Recipient Street1","description":"Street address line, e.g. '123 Main St'"},"recipient_city":{"type":"string","maxLength":80,"title":"Recipient City","description":"City name, e.g. 'San Francisco'"},"recipient_state":{"type":"string","maxLength":2,"title":"Recipient State","description":"Two-letter US state code, e.g. 'CA'"},"recipient_zip":{"type":"string","maxLength":10,"title":"Recipient Zip","description":"US ZIP code, e.g. '94103'"},"weight_lb":{"type":"number","maximum":1000.0,"title":"Weight Lb","description":"Package weight in pounds, e.g. 2.5"},"length_in":{"type":"number","maximum":1000.0,"title":"Length In","description":"Package length in inches"},"width_in":{"type":"number","maximum":1000.0,"title":"Width In","description":"Package width in inches"},"height_in":{"type":"number","maximum":1000.0,"title":"Height In","description":"Package height in inches"}},"type":"object","required":["sender_name","sender_street1","sender_city","sender_state","sender_zip","recipient_name","recipient_street1","recipient_city","recipient_state","recipient_zip","weight_lb","length_in","width_in","height_in"],"title":"RateRequest"},"ResetPasswordRequest":{"properties":{"token":{"type":"string","title":"Token"},"password":{"type":"string","title":"Password"},"confirm_password":{"type":"string","title":"Confirm Password"}},"type":"object","required":["token","password","confirm_password"],"title":"ResetPasswordRequest"},"ReviewerAccountRequest":{"properties":{"email":{"type":"string","title":"Email"},"wallet_usd":{"type":"number","title":"Wallet Usd","default":20}},"type":"object","required":["email"],"title":"ReviewerAccountRequest"},"SettingsUpdate":{"properties":{"updates":{"additionalProperties":true,"type":"object","title":"Updates"}},"type":"object","required":["updates"],"title":"SettingsUpdate"},"SignupRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"},"confirm_password":{"type":"string","title":"Confirm Password"},"ref":{"type":"string","title":"Ref","default":""}},"type":"object","required":["email","password","confirm_password"],"title":"SignupRequest"},"TestEmailRequest":{"properties":{"to":{"type":"string","title":"To"}},"type":"object","required":["to"],"title":"TestEmailRequest"},"TokenAdjust":{"properties":{"token_limit":{"type":"integer","title":"Token Limit"}},"type":"object","required":["token_limit"],"title":"TokenAdjust"},"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"},"api__admin__LoginRequest":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"}},"type":"object","required":["username","password"],"title":"LoginRequest"},"api__auth__LoginRequest":{"properties":{"email":{"type":"string","title":"Email"},"password":{"type":"string","title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}