77thJunction
77th Junction Docs

API reference

REST endpoints for auth, projects, deploy, domains, and billing.

Updated May 30, 2026

Developer mode (dashboard)

Base URL & auth

Production: https://api.77thjunction.app
Local dev:  http://127.0.0.1:3001

Authenticated routes require Authorization: Bearer <Firebase ID token>. Obtain a token via the web app, CLI login, or Firebase Auth SDK.

GET /health
→ { ok, service, version, firestore, billing, sitesUrlMode, subdomainUrls, ... }

Auth

MethodPathDescription
POST/auth/syncSync profile after Firebase sign-in
GET/auth/meCurrent user (Bearer token)
POST/auth/cli/startStart CLI browser auth session
GET/auth/cli/poll?sessionId=Poll until CLI authorized
POST/auth/forgot-passwordSend password reset email

Projects

MethodPathDescription
GET/projectsList user projects
POST/projectsCreate { name, localPath?, category? }
GET/projects/:idGet one project
PATCH/projects/:idUpdate name/status
DELETE/projects/:idDelete project + deployed files
GET/projects/:id/settingsEnv vars + domains view
PATCH/projects/:id/settingsUpdate slug, env, custom domain
POST/projects/:id/settings/verify-domainCheck DNS for custom domain

Deploy

MethodPathDescription
POST/projects/:id/deployMultipart zip upload → build → live
POST/projects/:id/redeployRedeploy last release
GET/projects/:id/deploysDeploy history
GET/projects/:id/deploys/:deployIdSingle deploy + logs
POST/projects/:id/diagnose-deployRun diagnosis on failed deploy
POST/projects/:id/assist-fixAI-assisted fix (credits)
POST/projects/:id/auto-fixAuto-fix + redeploy (credits)

Deploy accepts application/zip. Max size and rate limits apply in production. Poll deploy history for status and build logs.

Billing

MethodPathDescription
GET/billing/catalogPlans, packs, costs (public)
GET/billing/accountUser balance + subscription (auth)
POST/billing/subscribeStart PayPal subscription checkout
POST/billing/buy-packStart one-time credit pack checkout
POST/billing/paypal/webhookPayPal events (server only)

Serving deployed sites

  • Host-based: https://{slug}.77thjunction.app → static files from data/sites/{slug}
  • Path-based: GET /sites/{slug}/… → same files (backup route)
  • Custom domain: Host header routes to project when DNS active
  • Reserved hosts: api, www — never treated as project slugs