Get contact count
client.contacts.count(RequestOptionsoptions?): ContactCountResponse { count }
GET/api/v2/contacts/count
Get the total number of contacts
Returns
Get contact count
import SendblueAPI from 'sendblue';
const client = new SendblueAPI({
apiKey: process.env['SENDBLUE_API_API_KEY'], // This is the default and can be omitted
apiSecret: process.env['SENDBLUE_API_API_SECRET'], // This is the default and can be omitted
});
const response = await client.contacts.count();
console.log(response.count);{
"count": 0
}Returns Examples
{
"count": 0
}