Silicon ZombiesSILICON ZOMBIESDEVELOPER DOCSOpen preview

Reference

API reference

A human-readable map of the v1 REST contract. Use the OpenAPI document for generated clients, schema tooling, and complete operation metadata.

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 up
GET/api/v1/health/readyReadiness: the process is up and PostgreSQL answers
POST/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 token
POST/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 link
POST/api/v1/auth/password/forgotEmail a one-hour password reset link. Always 202 so accounts cannot be discovered
POST/api/v1/auth/password/resetSet a new password from a reset or approval-invite token; revokes all sessions, verifies the email and signs in
POST/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 email
POST/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 state

Content

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 header
GET/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 availability
GET/api/v1/preview/luma/eventsGet secret-free normalized Luma preview sync data

Community

GET/api/v1/spacesList community spaces, including VIP locks
PATCH/api/v1/messages/{id}Edit the body of your own post or reply. Body: { body }. Zombie VIP only; team posts cannot be edited here
DELETE/api/v1/messages/{id}Delete your own post (with its replies) or reply. Allowed even after Zombie VIP lapses
POST/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 cursor
POST/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 only
POST/api/v1/conversationsFind or create the conversation with another member. Body: { userId }. Both members must be active Zombie VIPs
GET/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 only
POST/api/v1/conversations/{id}/messagesSend a direct message. Body: { body } (1-2000 chars); rate limited. Pushes a notification to the recipient
GET/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 metadata
GET/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 VIP
POST/api/v1/live/{id}/chatPost a chat message. Body: { body } (trimmed, 1-500 chars). Zombie VIP only; rate limited to 20 per minute
GET/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 opens

Podcast

GET/api/v1/podcastGet local Spotify-shaped preview show metadata; replace with a provider adapter when configured

Billing

GET/api/v1/billing/statusGet server-authoritative subscription status
POST/api/v1/billing/checkoutCreate a hosted Stripe Checkout session after VIP approval (verified email required). VIP is granted only by the Stripe webhook
POST/api/v1/billing/mobile-payment-sheetCreate an Android or eligible iOS PaymentSheet subscription flow
POST/api/v1/billing/portalCreate a Stripe customer-portal session

Admin

POST/api/v1/admin/content/upload-urlPresigned S3 PUT URL and server-generated key for audio or artwork uploads
DELETE/api/v1/admin/content/{id}Delete a content item
POST/api/v1/admin/live/scheduleSchedule a stream; with a YouTube video ID it goes live automatically
GET/api/v1/admin/contentList recent content for editorial management
POST/api/v1/admin/contentCreate or update content
GET/api/v1/admin/eventsList events or inspect event attendees
POST/api/v1/admin/eventsCreate an event with optional VIP/public booking windows and Luma linkage
PATCH/api/v1/admin/eventsUpdate event fields by id
DELETE/api/v1/admin/eventsDelete an event and its RSVPs (Owner/Admin)
GET/api/v1/admin/applicationsList VIP applications
POST/api/v1/admin/applications/{id}/approveApprove an application: links or creates the member and sends the checkout invitation (email + push). Never grants VIP
POST/api/v1/admin/applications/bulkApprove or reject up to 50 applications; each result is reported separately
POST/api/v1/admin/applications/{id}/rejectReject an application
POST/api/v1/admin/events/{id}/checkinCheck in an attendee or promote a waitlisted RSVP
POST/api/v1/admin/events/{id}/luma-syncPull the full guest list from Luma and reconcile local RSVPs
DELETE/api/v1/admin/messages/{id}Remove a message
PATCH/api/v1/admin/messages/{id}Pin or unpin a message
GET/api/v1/admin/reportsList moderation reports
PATCH/api/v1/admin/reportsResolve a report
POST/api/v1/admin/live/startMark a YouTube stream live
POST/api/v1/admin/live/endEnd a live stream
DELETE/api/v1/admin/live/chat/{messageId}Soft-delete a live chat message (owner, admin, moderator); audited and broadcast as a `deleted` event
POST/api/v1/admin/live/{id}/syncSynchronize live status and viewers from YouTube
GET/api/v1/admin/metricsGet revenue, subscription, and retention metrics
GET/api/v1/admin/membersList members with tier, status, and search filters
GET/api/v1/admin/members/{id}Member detail with subscriptions and applications
PATCH/api/v1/admin/members/{id}Suspend/reinstate, change role (Owner-only for Owner/Admin) or grant/revoke a staff VIP comp
GET/api/v1/admin/jobsScheduled job status: last start, success and error
POST/api/v1/admin/jobs/{name}/runRun a scheduled job immediately
GET/api/v1/admin/preview/outboxPreview only: emails captured instead of sent because no provider is configured
GET/api/v1/admin/integrationsGet secret-free external integration readiness
POST/api/v1/admin/billing/reconcileRe-sync every open subscription from Stripe and re-evaluate entitlements, including lapsed past-due grace windows
GET/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/Admin
GET/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/Admin
POST/api/v1/admin/retention/{userId}/remindEmail a retention message. Body: { kind: payment|win_back|reminder }. Once per member per kind per 24 hours
GET/api/v1/admin/teamStaff accounts (role other than member) with last sign-in. Owner/Admin
POST/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/Admin
GET/api/v1/admin/audit-logsNewest-first audit trail, 50 per page, filterable by action (substring), actorId and targetType; pass nextCursor as cursor. Owner/Admin
GET/api/v1/admin/spacesList community spaces with message counts
POST/api/v1/admin/spacesCreate a space (name, glyph, description, isVip)
PATCH/api/v1/admin/spacesUpdate a space by id
DELETE/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 first
POST/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 events
POST/api/v1/webhooks/lumaReceive Luma events after configured signature verification