# Contact service BS-007 uses `api/contact_app.py:create_app`, exposed as `contact_app:app`. Start from api/ with existing requirements installed: `gunicorn --bind 127.0.0.1:5000 --workers 1 --timeout 20 contact_app:app`. Vite proxies /api to localhost:5000. The task Compose command selects this entry point explicitly. Existing api:app/account infrastructure and production Compose are unchanged provisional scaffolding; production adaptation remains BS-009, not ready for launch. No SQLAlchemy, migrations, account routes or enquiry persistence. GET /api/contact/config returns only public email/null and delivery availability with no-store. Health/ready indicates service readiness, separate from mail configuration. POST /api/contact accepts JSON name (1–100), email (up to254), service (blank or one of four approved values), description (10–5000), and hidden website honeypot. Other keys/types rejected. 32KiB body limit. Errors are JSON: 400 fields/body, 413 oversized, 429 attempts, 503 disabled/unconfigured/provider failure; 200 success only after provider acknowledgement with ID. No enquiry content/provider error details logged. Mail configuration is server-only: CONTACT_EMAIL = Captain-verified public inbox and recipient; EMAIL_FROM = verified Resend-domain sender; RESEND_API_KEY = secret; EMAIL_DELIVERY_ENABLED=true only when authorized/configured. Defaults are blank/disabled; no example mailbox is published. No live credentials or real sends used for this task. Configuration cannot independently prove sender/domain verification; Resend must accept the send. Do not put secrets in VITE variables. The separate inherited .env.example contains template values, not approved contact identity. Direct Resend HTTPS call uses Python standard library, timeout10s, visitor email only as reply_to, fixed configured From/To, escaped HTML/plain text and service-derived subject. No new dependencies. Provider acknowledgement means accepted for delivery, not a guarantee of receipt. No automatic retries: draft and request key retained in the current page after failure; unchanged-draft retry uses the same UUID Idempotency-Key, edits create a fresh key. Browser timeout15s. Refresh/navigation loses unsent draft/key; no local-storage enquiry retention. Retry promptly without editing after uncertain outcome; provider idempotency expires after24h. Provider reference: https://resend.com/docs/dashboard/emails/idempotency-keys . Limits: 5 attempts/hour and20/day per direct remote IP, including failures, held in memory per process; no rate-limit bypass from untrusted forwarding headers by default. CONTACT_TRUST_PROXY=true only behind one trusted proxy that sets/appends the real client IP and blocks direct external backend access. Task Compose enables it for local nginx; direct diagnostic port is loopback/test-only. Multiworker/multireplica global limits, production proxy/edge policy, provider data handling/privacy review and deployment authorization remain launch work. No claim of comprehensive spam prevention. Validation: `python -m pytest test_contact_independent.py` in api/ exercises this app without account fixtures, plus existing `python -m pytest tests`. CI backend runs both. Browser success/failure are controlled responses; actual local Docker integration has delivery disabled. Manual review from project root: `./scripts/testtask.sh TASK-007`. Validate four fields, dark/light/mobile layout, empty-form errors and honest not-sent response with retained draft. Do not enter sensitive real enquiries into local test fixtures.