English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/contact/countCount 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.
Authorization: Basic Base64(AccessKey:SecretKey))| Parameter | Type | Required | Description |
|---|---|---|---|
search | string | No | Matches the contact name or note, case-insensitive. |
tag | string | No | Only contacts that have this tag, exactly as listed by Get Contact Tag. Every tag when left out. |
followUp | string | No | scheduled for contacts with a follow-up, due for follow-ups whose time has passed. Every contact when left out. |
accountIds | array | No | Only 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. |
curl -X GET "https://api.repliz.com/public/contact/count?accountIds[]=69686c4c41ec8ac5117c8929" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"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);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);{
"all": 12,
"new": 6,
"contacted": 3,
"interested": 2,
"won": 1,
"lost": 0,
"due": 2
}{
"code": 401,
"message": "unauthorized"
}