Passing CRM ID in Web Messaging SDK startChat

What is the standard approach to pass a crm customer id through the startchat() method in the cxone web messaging sdk?

my current payload:

startchat({
 "data": { "custom_attributes": { "crm_id": "12345" } }
});

the attribute does not show up in the agent ui. am i missing a required key or endpoint?