Creates a one-time use agent with automatic expiration.
Ephemeral agents are more appropiate for use cases where you want to spin up an customized agent without persisting it long-term in the iwy dashboard. Ephemeral agents won’t appear in the dashboard. The agent will automatically expire after a specified time to live (TTL).
Your iwy Service API Key. Find it at app.iwy.ai/settings.
Include it in the Authorization header:
Authorization: Bearer YOUR_API_KEYRequest to create a one-time use ephemeral agent
Agent configuration (same as regular agents)
Time-to-live in seconds. The agent will expire after this duration.
60 <= x <= 86400600
Optional metadata for tracking or internal use
{
"purpose": "product_demo",
"campaign": "summer_2025"
}Ephemeral agent created successfully
Response containing the created ephemeral agent details
The created ephemeral agent