Count
Get contact count
client.contacts.count(RequestOptionsoptions?): countnumberContactCountResponse
get/api/v2/contacts/count
Get the total number of contacts
Returns
ContactCountResponse
import SendblueAPI from 'sendblue';
const client = new SendblueAPI({
apiKey: 'My API Key',
apiSecret: 'My API Secret',
});
const response = await client.contacts.count();
console.log(response.count);
200 Example
{
"count": 0
}