API Documentation
REST API reference for the Dream Chain platform
Authentication
All API requests require a Bearer token in the Authorization header:
Authorization: Bearer <your-jwt-token>
JWT tokens are automatically managed when authenticated via the dashboard. For programmatic access, use an API key .
Base URL:
https://api.dreamchain.app21 endpoints9 categories
Apps4
Builds3
Deployments2
Evolution4
Agents3
Models1
Reports2
Auth & Keys1
Tools1
WebSocket Events
Connect via Socket.IO to receive real-time events. Use the gateway client's subscribe() method.
| Event | Description |
|---|---|
| build:stage | Build pipeline stage update (stage, status, stageIndex) |
| build:complete | Build pipeline completed with generated files |
| build:error | Build pipeline error |
| build:approval_needed | Build waiting for user approval at gate |
| deploy:complete | Deployment succeeded (includes URL) |
| evolution:proposal | New evolution improvement proposed |
| dream:task:complete | Evolution task completed |
| agent:spawned | New agent instance spawned |
| agent:consciousness | Agent thought/state update |
| monitor:health_check | App health check result |
| chain:step:complete | Workflow chain step completed |
| chain:complete | Full workflow chain completed |