Skip to content

Count Contact ​

GEThttps://api.repliz.com/public/contact/count

Count contacts per funnel stage. It takes the same filters as Get Contact, so the numbers match the list. due is how many of those contacts have a follow-up whose time has passed.

Endpoint Details ​

  • Authentication: Basic Auth (Authorization: Basic Base64(AccessKey:SecretKey))
  • Access Tier: Standard+

Parameters ​

ParameterTypeRequiredDescription
searchstringNoMatches the contact name or note, case-insensitive.
tagstringNoOnly contacts that have this tag, exactly as listed by Get Contact Tag. Every tag when left out.
followUpstringNoscheduled for contacts with a follow-up, due for follow-ups whose time has passed. Every contact when left out.
accountIdsarrayNoOnly contacts of these accounts, as _ids from Get Account. Send each one as accountIds[]=ID, which is what Axios does with an array. All accounts when left out.

Example Request ​

bash
curl -X GET "https://api.repliz.com/public/contact/count?accountIds[]=69686c4c41ec8ac5117c8929" \
  -H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"
javascript
import axios from 'axios';

const response = await axios.get('https://api.repliz.com/public/contact/count', {
  params: {
    accountIds: ['69686c4c41ec8ac5117c8929'],
  },
  auth: {
    username: 'YOUR_ACCESS_KEY',
    password: 'YOUR_SECRET_KEY',
  },
});

console.log(response.data);
javascript
const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');

const response = await fetch('https://api.repliz.com/public/contact/count?accountIds[]=69686c4c41ec8ac5117c8929', {
  headers: {
    Authorization: `Basic ${credentials}`,
  },
});

const data = await response.json();
console.log(data);

Response ​

json
{
  "all": 12,
  "new": 6,
  "contacted": 3,
  "interested": 2,
  "won": 1,
  "lost": 0,
  "due": 2
}
json
{
  "code": 401,
  "message": "unauthorized"
}