Skip to content
  • Auto
  • Light
  • Dark
Get Started

Count

Get contact count
client.contacts.count(RequestOptionsoptions?): countnumberContactCountResponse
get/api/v2/contacts/count

Get the total number of contacts

Returns
ContactCountResponse
Hide ParametersShow Parameters
countnumber
optional

Total number of contacts

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
}