/api/v1/teams/{team_id}/edgesCreate an edge
Connects two agents (or an agent and a human) inside the same team.
Path parameters
team_idBody parameters
agent_id_1agent_id_2descriptioncurl https://api.mercury.build/api/v1/teams/$TEAM/edges \
-H "X-API-Key: $PROTON_API_KEY" \
-H "Content-Type: application/json" \
-d '{"agent_id_1": "'$RESEARCHER'", "agent_id_2": "'$WRITER'"}'Example response
{
"edge_id": "a91f3bc0-...",
"agent_id_1": "1f8b3a02-...",
"agent_id_2": "8c2af19a-...",
"edge_type": "agent_to_agent",
"description": "",
"thread_count": 0,
"unread_count": 0
}