Skip to main content

Find all

ParameterDefaultValues / Description
page[size]50Maximum number of results
page[number]1Page number
const Confetti = require('confetti')

const confetti = new Confetti({ apiKey: 'your-key' })
const contacts = await confetti.contacts.findAll({
page: {
size: 50,
number: 1
}
})
Result
[
{
"id": "588032",
"firstName": "Jonny",
"lastName": "Stromberg",
"email": "jonny@foo.bar",
"phone": "+46701122333",
"token": "gsd00876ec00cdef2233b4ace769c54sdf46",
"status": "active",
"comment": "Hey comment",
"lastSeen": "2022-01-05T15:33:13.171Z",
"createdAt": "2022-01-05T15:33:13.171Z",
"updatedAt": "2022-01-05T15:33:13.171Z",
"organisationId": 57,
"company": "Company AB",
"type": "contact"
},
{
"id": "588032",
"firstName": "Jonny",
"lastName": "Stromberg",
"email": "jonny@foo.bar",
"phone": "+46701122333",
"token": "gsd00876ec00cdef2233b4ace769c54sdf46",
"status": "active",
"comment": "Hey comment",
"lastSeen": "2022-01-05T15:33:13.171Z",
"createdAt": "2022-01-05T15:33:13.171Z",
"updatedAt": "2022-01-05T15:33:13.171Z",
"organisationId": 57,
"company": "Company AB",
"type": "contact"
}
]