Trying to send a proactive notification to a customer who already has an active web messaging session. We’re using the Genesys Cloud Guest API to inject a message without the widget triggering a new conversation.
The flow is: guest initiates chat → session created → agent handles → session stays open for future proactive pushes. Now I need to send a follow-up message to that same session using the Guest API.
I’m using POST /api/v2/conversations/messaging/messages with this payload:
{
"from": { "id": "system-bot-id" },
"to": [{ "id": "guest-session-id" }],
"type": "text",
"text": "Just checking in..."
}
Getting a 400 Bad Request with:
{"error_code":"invalid_request","message":"Cannot send message to recipient type 'guest' without valid conversation context."}
The guest session ID is valid and active. I’ve verified it via GET /api/v2/conversations/messaging/conversations/{id}.
What’s the correct way to reference an existing guest session in the Guest API for proactive messaging? Do I need to include the conversation ID in the header or payload differently?