Skip to main content

Create

ParameterTypeValues / Description
firstNamestring
lastNamestring
email*string
phonestringMobile phone number with country code. Example: +46701234567
commentstring
companystring
categoryIdsarray of numbersAttach categories to your contact.
const Confetti = require('confetti')

const confetti = new Confetti({ apiKey: 'your-key' })
const data = await confetti.contacts.create({
firstName: 'Foo',
lastName: 'Bar',
email: 'foo@bar.se',
phone: '+46700000000',
comment: 'Foo bar',
categoryIds: [1, 2],
company: 'Foo Bar AB',
})