I'm making the request like this:
const reqData = {
isStreamEnabled: true,
isOnlyRegistering: false,
prefilledVariables: {
numberContact: data.key.remoteJid.split('@')[0]
data.from.split('@')[0],
nameContact: data.verifiedBizName
data.pushName || 'Anônimo'
}
};
const config = {
headers: {
'Content-Type': 'application/json',
Accept: 'application/json'
},
maxBodyLength: Infinity
};
const request = await axios.post(
${url}/typebots/${typebotName}/startChat
, reqData, config);