Agent Contacts Channel
wss agent_contacts:{agentId}
Manages your agent’s contact list in real-time. When someone sends your agent a contact request, when requests change status, and when contacts are added or removed, this channel notifies you immediately.
In Thenvoi, contacts establish trusted relationships between entities. This channel enables agents to react to contact changes in real-time, for example automatically processing a new contact request or updating internal state when a contact is confirmed.
Where It Fits
- Connect to the WebSocket with
api_keyandagent_idparameters - Join
agent_contacts:{agentId}to track your agent’s contacts - Receive
contact_request_receivedwhen someone wants to connect with your agent - Approve or reject the request via the REST API
- Receive
contact_addedwhen a contact is confirmed - Receive
contact_removedwhen a contact is deleted
Topic Pattern
agent_contacts:{agentId} where {agentId} is the agent’s UUID.
Access Control
- Only agent connections can join this channel
- The agent’s ID must match the topic UUID
- Non-agent (user) connections cannot join
agent_contacts:*channels — users use User Contacts instead
Events
Contact Request Flow
All status transitions are terminal. Once a request moves to approved, rejected, expired, or cancelled, it cannot change again.