Developer Get Started.

Welcome to the Developer Guide. This page gets you up and running with custom agent integrations, custom tool development, and self-hosted environments in under 5 minutes.

Step 1 — Get your Bearer Token

All API routes require an authenticated Firebase JWT. You can grab your token from the frontend state or directly from the Firebase SDK after signing in. Set it in the Authorization header of your requests: Authorization: Bearer <your_jwt_token>.

Step 2 — Call the Health check

Verify your local or remote backend is alive by sending a request to the health route: GET https://the-intern-backend.vksh1cool.workers.dev/health. No authentication is required for this endpoint. It returns status and active bindings.

Step 3 — Clone a Template

Deploy your first agent programmatically by listing available templates via GET /api/templates, then calling POST /api/templates/:id/clone. This creates a clone of the agent associated with your user ID.

Step 4 — Start Streaming

Send your first message to the agent using the Server-Sent Events chat route: POST /api/chat/stream. Pass your message and agent ID in the JSON body, and listen to the streaming token events in real time!