Public waitlist and usage-count endpoints #75

Merged
westfarn merged 1 commits from feat/74-public-waitlist-usage into master 2026-10-17 05:39:34 -07:00
Owner

Summary

  • POST /api/public/waitlist/ stores an email. The same response is returned for a new or existing address. No account is created.
  • GET /api/public/usage/ returns the active, non-deleted account count, the document count, and as_of. No emails, names, or avatars.
  • Both views are AllowAny with empty authentication classes, same pattern as public settings.
  • Closes #74.

Companion frontend: chat_web_app public homepage PR.

0034_waitlistentry depends on 0033_agentrun_agentstep. feat/33-conversation-context-rag also adds a 0034_* migration, so one of those branches will need a renumber after the other merges.

Test plan

  • chat_backend.tests.test_public_marketing — 5 passed
  • POST /api/public/waitlist/ with a valid email, then the same email again
  • Invalid email returns 400 and stores nothing
  • GET /api/public/usage/ without a token
## Summary - `POST /api/public/waitlist/` stores an email. The same response is returned for a new or existing address. No account is created. - `GET /api/public/usage/` returns the active, non-deleted account count, the document count, and `as_of`. No emails, names, or avatars. - Both views are `AllowAny` with empty authentication classes, same pattern as public settings. - Closes #74. Companion frontend: chat_web_app public homepage PR. `0034_waitlistentry` depends on `0033_agentrun_agentstep`. `feat/33-conversation-context-rag` also adds a `0034_*` migration, so one of those branches will need a renumber after the other merges. ## Test plan - [x] `chat_backend.tests.test_public_marketing` — 5 passed - [ ] `POST /api/public/waitlist/` with a valid email, then the same email again - [ ] Invalid email returns 400 and stores nothing - [ ] `GET /api/public/usage/` without a token
westfarn added 1 commit 2026-10-17 05:39:22 -07:00
Add public waitlist and usage counts for the marketing site.
CI / test (pull_request) Failing after 7s
Unit Tests / test (pull_request) Failing after 5s
3ef49d1d15
Counts stay aggregate, and joining the waitlist does not create an account.
Closes #74.

Co-authored-by: Cursor <cursoragent@cursor.com>
westfarn force-pushed feat/74-public-waitlist-usage from c3fb2c23f2 to 3ef49d1d15 2026-10-17 05:39:22 -07:00 Compare
westfarn merged commit 257890e600 into master 2026-10-17 05:39:34 -07:00
westfarn deleted branch feat/74-public-waitlist-usage 2026-10-17 05:39:34 -07:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ai_ml_operations/chat_backend#75