Skip to main content

Overview

The iwy API provides everything you need to create and deploy conversational AI agents. There are two types of agents you can create:

Single-Use Agents

Created via API, activated once, then expires. Perfect for personalized, per-session experiences.

Permanent Agents

Created via API or dashboard, reusable forever. Configure anytime at dashboard.iwy.ai.
Both types are production-ready and interchangeable. Use the same widgets and session APIs with either type. Choose based on your use case—many production systems use both.

Authentication

All API endpoints require a Bearer token.
Get your API key from app.iwy.ai/settings.

Base URL


Core Endpoints

These are the three endpoints you’ll use most often:
Using iwy widgets? The <live-avatar> widget and meet.iwy.ai already call /start-agent-session for you automatically. You only need this endpoint if you’re building a custom integration with the Daily.co SDK.

Single-Use vs Permanent Agents

Single-Use Agents are created through the API and can only be activated once. After their first session ends (or the TTL expires), the agent ID becomes invalid. They don’t appear in your dashboard.Permanent Agents persist in your account forever. The same agent ID can be used for unlimited sessions. You can edit them anytime at dashboard.iwy.ai or via the API.
Both are production-ready. Choose based on your architecture:Many production systems use both: permanent agents for core experiences, single-use agents for personalization.
Yes! Both agent types work identically with:
  • All iwy widgets (<live-avatar>, etc.)
  • meet.iwy.ai hosted pages
  • The /start-agent-session API
  • Tool integrations
The only difference is lifecycle management—single-use agents expire, permanent agents persist.
Once a session starts with a single-use agent:
  1. The agent becomes “active” for that session
  2. When the session ends, the agent expires immediately
  3. Any further attempts to use that agent ID will fail
If no session ever starts, the agent expires after its TTL (time-to-live).
You can’t convert directly, but you can reuse configurations:
  1. Single-Use → Permanent: Use the same configuration object with POST /agent
  2. Permanent → Single-Use: Fetch config with GET /agent/{id}, then use it with POST /ephemeral-agent
This is useful for prototyping in the dashboard, then deploying as single-use agents.

Single-Use Agents

Create dynamic agents that activate once and then expire. Ideal for personalized, per-session experiences.

Create Single-Use Agent

/ephemeral-agent
Creates an agent that can be activated once, then expires.
Request Body
object
required
Agent configuration including LLM, TTS, and video settings.
integer
default:"600"
Maximum time (in seconds) before the agent expires if not activated. Common values: 600 (10 min), 3600 (1 hour), 86400 (24 hours).
Example Request
Response
Using the Agent

Permanent Agents

Create reusable agents that persist in your account. Configure them anytime at dashboard.iwy.ai or via the API.

Create Permanent Agent

/agent
Creates a reusable agent that persists in your account.
Request Body
string
required
Human-readable name for the agent (visible in dashboard)
string
default:"draft"
Visibility status: draft, private, or public
object
required
Agent configuration (same structure as single-use agents, plus additional options)
Example Request
Using the Agent
Or share directly: https://meet.iwy.ai/YOUR_AGENT_ID

Sessions

Start video call sessions with your agents.
You probably don’t need this endpoint directly. The <live-avatar> widget and meet.iwy.ai call this automatically. Only use this if you’re building a custom integration with the Daily.co SDK.

Start Agent Session

/start-agent-session
Starts a video call session with an agent. Returns Daily.co connection details.
Request Body
string
required
Agent UUID (works with both single-use and permanent agents), or "demo" for a demo session
Example Request
Response
Usage Options

Advanced Endpoints

These endpoints provide additional management capabilities for permanent agents and tools.

Permanent Agent Management

Response

Tools

Tools are custom functions that extend your agent’s capabilities via webhooks.
Response

Error Responses

All endpoints return consistent error responses:

Quick Reference

Core Endpoints

Management Endpoints


Support

Need help? Contact us