/api/v1/teams/{team_id}/agentsCreate an agent
Creates a new agent inside the given team.
Path parameters
team_idBody parameters
namemodelsystem_promptagent_rolecomposio_toolkitscurl https://api.mercury.build/api/v1/teams/$TEAM/agents \
-H "X-API-Key: $PROTON_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Researcher",
"model": "claude-opus-4-7",
"system_prompt": "You research and summarize sources clearly."
}'Example response
{
"agent_id": "1f8b3a02-...",
"team_id": "9b1c4f30-...",
"name": "Researcher",
"agent_role": "",
"system_prompt": "You research and summarize sources clearly.",
"model": "claude-opus-4-7",
"state": "IDLE",
"edge_count": 0,
"inbox_count": 0,
"composio_toolkits": []
}