Trying to push authenticated user attributes to the Web Messaging widget via the Guest API before initializing the chat. The widget loads fine for anonymous users, but when I try to attach user_id and email via the pre-chat form, the connection drops immediately with a 403 Forbidden error.
- Using
genesyscloud-webmessagingSDK v1.12.0 - Passing attributes via
setGuestAttributesin the configuration object - Verified the OAuth token has
webmessaging:guest:writescope - Payload looks like
{ user_id: "abc123", email: "test@example.com" }
Here’s the config snippet:
const config = {
organizationId: 'org-id',
widgetId: 'widget-id',
guestAttributes: {
user_id: 'abc123',
email: 'test@example.com'
}
};
The docs imply this should work, but the network tab shows the POST to /api/v2/conversations/messaging/guests returning 403. Am I missing a header or is the scope wrong?