API Reference
REST endpoints for SteamForge AI. All authenticated routes require a valid Clerk session.
Full reference available in docs/API.md in the repository.
Health
GET
/api/healthService health check
Auth & Users
GET
/api/users/meCurrent user profile, plan, subscription, and usage
Projects
GET
/api/projectsList user projects (paginated)
POST
/api/projectsCreate a new project
GET
/api/projects/:idGet project with generations and assets
PATCH
/api/projects/:idUpdate project details
DELETE
/api/projects/:idArchive a project
Generations
GET
/api/generationsList generations (paginated)
POST
/api/generationsStart a new asset generation
GET
/api/generations/:idGet generation with assets
DELETE
/api/generations/:idDelete a generation
Templates
GET
/api/templatesBrowse approved templates
POST
/api/templates/:id/favoriteFavorite a template
DELETE
/api/templates/:id/favoriteRemove favorite
Billing
POST
/api/billing/checkoutCreate Stripe checkout session
GET
/api/billing/checkoutOpen Stripe billing portal
POST
/api/webhooks/stripeStripe webhook handler
Uploads
POST
/api/uploads/presignGet presigned R2 upload URL
Downloads
POST
/api/downloadsRequest asset download manifest / ZIP
Admin
GET
/api/admin/statsDashboard statistics
PATCH
/api/admin/statsUpdate feature flags
GET
/api/admin/usersList users (paginated)
PATCH
/api/admin/usersUpdate user role, plan, credits
Response format
// Success
{ "success": true, "data": { ... } }
// Error
{ "success": false, "error": "Message", "details": { ... } }