Skip to main content
The VyomFlow API is a REST backend for AI agent chat products. It handles chats, messages, agent runs, waitpoints, and file attachments, all behind a single set of endpoints. If you are building a chat UI, a CLI client, or any integration that needs conversational AI with tool calling and streaming, this API gives you the primitives to do it without managing your own agent orchestration layer.

Quickstart

Get up and running with your first chat and message in minutes.

Authentication

Learn how to authenticate requests with Clerk bearer tokens.

Core Concepts

Understand chats, runs, waitpoints, and attachments.

API Reference

Browse endpoints, request/response shapes, and error codes.

What you can build

  • Conversational agents that maintain context across multi-turn chats
  • Multi-turn chats with file attachments uploaded before or during a conversation
  • Real-time streamed responses via a server-sent-events endpoint, so users see output as it generates
  • Tool-call orchestration with credits, where tool calls (image generation, cropping, video merging) draw from balance and LLM usage via OpenRouter free tier costs zero application credits
  • MCP access, so an MCP-capable client (Claude Code, Claude Desktop) can create chats, send messages, and respond to approvals as tools

How it works

1

Create a chat

Start a new conversation by calling POST /api/public/v1/chats. The API returns a chat ID you will use for every subsequent message.
2

Send a message

Post to POST /api/public/v1/chats/{chatId}/messages. This reserves credit admission upfront and kicks off an agent run.
3

Stream the run's output

Open GET /api/public/v1/runs/{runId}/stream so users see the agent response as it arrives. See Streaming.
4

Respond to waitpoints

If the agent pauses for input, call POST /api/public/v1/waitpoints/{waitpointId}/respond to supply the missing information and resume the run.

Surfaces

VyomFlow runs across three production domains, each with a distinct role: The apex domain (https://vyomflow.co.in) redirects to https://www.vyomflow.co.in.