API reference
All application endpoints use https://zombies.necodex.dev/api/v1. Requests and ordinary responses are JSON. Webhooks acknowledge with 204, while the authorized audio stream redirects to a temporary media URL.
Response contract
// Success
{ "data": { /* resource */ }, "requestId": "optional-id" }
// Error
{ "error": { "code": "SAFE_CODE", "message": "Safe message", "details": {}, "requestId": "…" } }Authorization is server-side.
Use the bearerAuth security scheme for session-protected routes. A resource card can be rendered as locked for upsell, but its stream, RSVP, post, chat, and admin actions must receive server authorization.
Auth
GET
/api/v1/healthLiveness: the process is upGET
/api/v1/health/readyReadiness: the process is up and PostgreSQL answersPOST
/api/v1/auth/loginCreate an opaque session from email and password. Web clients receive an httpOnly sz_session cookie; mobile clients use data.token as a bearer tokenPOST
/api/v1/auth/registerCreate a Human account and opaque session, and email a verification link (actor.emailVerified starts false)POST
/api/v1/auth/verify-emailConfirm email ownership with the single-use token from the verification linkPOST
/api/v1/auth/password/forgotEmail a one-hour password reset link. Always 202 so accounts cannot be discoveredPOST
/api/v1/auth/password/resetSet a new password from a reset or approval-invite token; revokes all sessions, verifies the email and signs inPOST
/api/v1/auth/provider/exchangeExchange a Google ID token (web, iOS or Android client) for an opaque session. Links to an existing account only when Google has verified the emailPOST
/api/v1/vip/applySubmit a Zombie VIP application (signed-in members must have a verified email and apply with it)Home
GET
/api/v1/homePublic home composition; optional bearer token personalizes locks and RSVP stateContent
GET
/api/v1/contentList published content newest first (type, access, q search, cursor, limit). The next page cursor is returned in the X-Next-Cursor headerGET
/api/v1/preview/audioShared-preview generated audio fixture. It exists only when PREVIEW_MODE=true and is the redirect target of an authorized stream request.Events
GET
/api/v1/eventsList events with optional tier-aware booking availabilityGET
/api/v1/preview/luma/eventsGet secret-free normalized Luma preview sync dataCommunity
GET
/api/v1/spacesList community spaces, including VIP locksPATCH
/api/v1/messages/{id}Edit the body of your own post or reply. Body: { body }. Zombie VIP only; team posts cannot be edited hereDELETE
/api/v1/messages/{id}Delete your own post (with its replies) or reply. Allowed even after Zombie VIP lapsesPOST
/api/v1/messages/{id}/reactionsHeart a post or reply. Zombie VIP only; idempotent. Returns { reactionCount, reactedByMe }DELETE
/api/v1/messages/{id}/reactionsRemove your heart. Zombie VIP only; idempotent. Returns { reactionCount, reactedByMe }GET
/api/v1/messages/{id}/repliesReplies to a post, oldest first, with the same fields as space messages. Readable by anyone who can read the space; next page via the X-Next-Cursor header as cursorPOST
/api/v1/messages/{id}/repliesReply to a top-level post. Body: { body } (1-2000 chars). Zombie VIP only; rate limited. Notifies the post author (community_reply)GET
/api/v1/conversationsDM inbox, most recent first: { id, other: { id, name, avatarUrl }, lastMessage, lastMessageAuthorId, lastMessageAt, unread }. Zombie VIP onlyPOST
/api/v1/conversationsFind or create the conversation with another member. Body: { userId }. Both members must be active Zombie VIPsGET
/api/v1/conversations/unread-countNumber of conversations with unread messages: { unread }GET
/api/v1/conversations/{id}/messagesNewest page of a conversation (oldest to newest) as { id, authorId, body, createdAt, mine }; older pages via the X-Next-Cursor header as cursor. Marks the conversation read. Participants onlyPOST
/api/v1/conversations/{id}/messagesSend a direct message. Body: { body } (1-2000 chars); rate limited. Pushes a notification to the recipientGET
/api/v1/membersMember directory (q, location, industry, interest, cursor, limit). Zombie VIP: { locked: false, total, items: [{ id, name, avatarUrl, headline, location, industry, interests, tier }], filters? } with X-Next-Cursor. Human or signed out: { locked: true, total, preview: [3 × { id, name, avatarUrl }] }GET
/api/v1/members/{id}A member's directory card. Zombie VIP only (your own card is always readable and includes directoryVisible)Live
GET
/api/v1/liveGet current live-stream state with optional VIP lock metadataGET
/api/v1/live/{id}/chatLive chat history: latest 50 visible messages, oldest first, as { id, body, createdAt, author: { id, name, avatarUrl, tier } }. Optional ?after=<ISO 8601> returns only newer messages. Public streams are readable signed out; VIP-tier streams require Zombie VIPPOST
/api/v1/live/{id}/chatPost a chat message. Body: { body } (trimmed, 1-500 chars). Zombie VIP only; rate limited to 20 per minuteGET
/api/v1/live/{id}/chat/streamServer-Sent Events (text/event-stream) for live chat. Events: `message` (chat message JSON) and `deleted` ({ id }); `resync` asks the client to refetch history. A `: ping` comment is sent every 25s. Same read access as GET /live/{id}/chat; errors return the JSON error envelope before the stream opensPodcast
GET
/api/v1/podcastGet local Spotify-shaped preview show metadata; replace with a provider adapter when configuredBilling
GET
/api/v1/billing/statusGet server-authoritative subscription statusPOST
/api/v1/billing/checkoutCreate a hosted Stripe Checkout session after VIP approval (verified email required). VIP is granted only by the Stripe webhookPOST
/api/v1/billing/mobile-payment-sheetCreate an Android or eligible iOS PaymentSheet subscription flowPOST
/api/v1/billing/portalCreate a Stripe customer-portal sessionAdmin
POST
/api/v1/admin/content/upload-urlPresigned S3 PUT URL and server-generated key for audio or artwork uploadsDELETE
/api/v1/admin/content/{id}Delete a content itemPOST
/api/v1/admin/live/scheduleSchedule a stream; with a YouTube video ID it goes live automaticallyGET
/api/v1/admin/contentList recent content for editorial managementPOST
/api/v1/admin/contentCreate or update contentGET
/api/v1/admin/eventsList events or inspect event attendeesPOST
/api/v1/admin/eventsCreate an event with optional VIP/public booking windows and Luma linkagePATCH
/api/v1/admin/eventsUpdate event fields by idDELETE
/api/v1/admin/eventsDelete an event and its RSVPs (Owner/Admin)GET
/api/v1/admin/applicationsList VIP applicationsPOST
/api/v1/admin/applications/{id}/approveApprove an application: links or creates the member and sends the checkout invitation (email + push). Never grants VIPPOST
/api/v1/admin/applications/bulkApprove or reject up to 50 applications; each result is reported separatelyPOST
/api/v1/admin/applications/{id}/rejectReject an applicationPOST
/api/v1/admin/events/{id}/checkinCheck in an attendee or promote a waitlisted RSVPPOST
/api/v1/admin/events/{id}/luma-syncPull the full guest list from Luma and reconcile local RSVPsDELETE
/api/v1/admin/messages/{id}Remove a messagePATCH
/api/v1/admin/messages/{id}Pin or unpin a messageGET
/api/v1/admin/reportsList moderation reportsPATCH
/api/v1/admin/reportsResolve a reportPOST
/api/v1/admin/live/startMark a YouTube stream livePOST
/api/v1/admin/live/endEnd a live streamDELETE
/api/v1/admin/live/chat/{messageId}Soft-delete a live chat message (owner, admin, moderator); audited and broadcast as a `deleted` eventPOST
/api/v1/admin/live/{id}/syncSynchronize live status and viewers from YouTubeGET
/api/v1/admin/metricsGet revenue, subscription, and retention metricsGET
/api/v1/admin/membersList members with tier, status, and search filtersGET
/api/v1/admin/members/{id}Member detail with subscriptions and applicationsPATCH
/api/v1/admin/members/{id}Suspend/reinstate, change role (Owner-only for Owner/Admin) or grant/revoke a staff VIP compGET
/api/v1/admin/jobsScheduled job status: last start, success and errorPOST
/api/v1/admin/jobs/{name}/runRun a scheduled job immediatelyGET
/api/v1/admin/preview/outboxPreview only: emails captured instead of sent because no provider is configuredGET
/api/v1/admin/integrationsGet secret-free external integration readinessPOST
/api/v1/admin/billing/reconcileRe-sync every open subscription from Stripe and re-evaluate entitlements, including lapsed past-due grace windowsGET
/api/v1/admin/revenueRevenue dashboard: MRR, paying members, ARPU, 30-day churn, plan mix, annual run rate, 12-month MRR history and recent paid transactions (Stripe invoices when configured, otherwise local subscriptions). Owner/AdminGET
/api/v1/admin/retentionRetention: at-risk members (payment_failed, cancel_scheduled, inactive) with a suggested action, at-risk MRR, recoveries this month, average membership days and 6-month join cohorts. Owner/AdminPOST
/api/v1/admin/retention/{userId}/remindEmail a retention message. Body: { kind: payment|win_back|reminder }. Once per member per kind per 24 hoursGET
/api/v1/admin/teamStaff accounts (role other than member) with last sign-in. Owner/AdminPOST
/api/v1/admin/team/inviteGrant a staff role by email. Existing accounts are promoted; new addresses get an account and a single-use invite link. Only an Owner may grant Owner/AdminGET
/api/v1/admin/audit-logsNewest-first audit trail, 50 per page, filterable by action (substring), actorId and targetType; pass nextCursor as cursor. Owner/AdminGET
/api/v1/admin/spacesList community spaces with message countsPOST
/api/v1/admin/spacesCreate a space (name, glyph, description, isVip)PATCH
/api/v1/admin/spacesUpdate a space by idDELETE
/api/v1/admin/spacesDelete a space and its messages. Body: { id }GET
/api/v1/admin/spaces/{id}/messagesStaff view of a space's messages, pinned firstPOST
/api/v1/admin/spaces/{id}/messagesPost as Silicon Zombies (team): asTeam=true, authored by the acting staff member. Body: { body, pinned? }Webhooks
POST
/api/v1/webhooks/stripeReceive verified Stripe eventsPOST
/api/v1/webhooks/lumaReceive Luma events after configured signature verification