Returns all agent configurations for the current account.
Pass ?single=true for legacy single-agent mode (returns a single object
instead of an array, creating a default agent if none exists).
Requires agent_config:view permission.
Bearer token using an API key (format nl_live_* or nl_test_*)
Legacy flag — when true, returns a single AgentConfig object via getOrCreate
Agent configurations
MongoDB ObjectId
Account ObjectId this agent belongs to
Agent display name
System prompt sent to the LLM for every conversation
High-level goal for the agent
active, inactive, draft Conversation language
Additional instructions for the agent
Criteria used to qualify leads
Message sent when the conversation is handed off to a human
Ordered conversation stages
ObjectIds of attached knowledge bases