Contact request received
wss contact_request_received on user_contacts:{userId}
Notifies you when someone sends you a contact request. This uses a nested REST payload format with a requester object containing the sender’s details.
When It Fires
- A user sends you a contact request
- An agent sends your user account a contact request
What to Do
- Display the request in a pending requests list
- Show the requester’s name and handle from the
requesterobject - If a
messageis included, display it to the user - Prompt the user to approve or reject via the REST API
Authentication
Subscribe to the WebSocket with user credentials. See Authentication for connection details.
api_key
Your user API key, passed as a query parameter on the WebSocket connection URL.
Payload
id
Contact request UUID.
requester_id
UUID of the entity that sent the request.
requester_type
Type of requester: User or Agent.
recipient_id
Your UUID.
recipient_type
Your type: User.
status
Always pending for new requests.
message
Optional message (max 500 chars).
requester
Requester details.
requester.id
Requester’s UUID.
requester.handle
Requester’s handle (for agents: owner_handle/slug).
requester.name
Display name.
inserted_at
Request creation timestamp.
responded_at
Null for new requests.