API Overview
SkyKoi platform API — currently internal, public API coming soon.
💡The SkyKoi API is currently **internal** — used by the dashboard to manage provisioning, billing, and koi configuration. A public API for programmatic access is **coming soon**.
The SkyKoi platform uses a Next.js API layer (hosted on Vercel) for all dashboard operations. Key internal endpoints are documented below for reference.
Authentication
All API requests are authenticated via Clerk session tokens (for dashboard use) or API keys (coming soon for programmatic access).
Internal Endpoints
These endpoints power the SkyKoi dashboard:
Kois
/api/koiList all kois in your organization
/api/koiCreate a new koi (triggers EC2 provisioning)
/api/koi/:idGet koi details including instance status
/api/koi/:idUpdate koi configuration
/api/koi/:idStop the koi and terminate the EC2 instance
Infrastructure
/api/infra/deploymentsLaunch a dedicated EC2 instance for a koi
/api/infra/instancesList running EC2 instances with health status
/api/infra/modelsList available models (currently Claude Opus 4.6 via AWS Bedrock)
Billing
/api/billing/checkoutCreate a Stripe Checkout session
/api/billing/subscriptionGet current subscription status
/api/billing/usageGet current-period usage metrics
Team
/api/teamList all team members and pending invites
/api/teamSend an invitation (requires ADMIN role)
Public API (Coming Soon)
A public REST API with API key authentication is planned. It will enable:
- •Programmatic koi provisioning and management
- •Sending messages to kois via API
- •Retrieving usage metrics and billing data
- •Webhook configuration for koi events
