Is it possible to add a lead (not a user) to Intercom using the React Native SDK? Or do I need to use their API directly? I tried using the API, but it seems to be adding a user and not adding it to the rest of the contacts.
export const addIntercomLead = async (email: string) : Promise<void> => {
const url = 'https://api.intercom.io/contacts'
const token = 'token'
const headers = {'Authorization': 'Bearer ' + token,
'Accept': 'application/json'}
const data = {
"phone": "123987456",
"email": email,
"name": "Winston Smith"
}
const response = await fetch(url, {method: 'POST', headers: headers, body: JSON.stringify(data)})
console.log(response.status)
}