English
English
Appearance
English
English
Appearance
/public/account/countGet a breakdown of connected accounts per platform, along with your total account count and current plan limit.
When called with an operator's API key, operator holds the same breakdown for the accounts assigned to that operator. total and limit still count every account in the workspace, because operators share its account slots. With the owner's API key, operator is null.
Authorization: Basic Base64(AccessKey:SecretKey))curl -X GET "https://api.repliz.com/public/account/count" \
-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/account/count', {
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/account/count', {
headers: {
'Authorization': `Basic ${credentials}`
}
});
const data = await response.json();
console.log(data);{
"total": 15,
"facebook": 6,
"youtube": 1,
"instagram": 2,
"threads": 2,
"tiktok": 3,
"linkedin": 1,
"twitter": 0,
"shopee": 0,
"whatsapp": 0,
"telegram": 0,
"pinterest": 0,
"limit": 1,
"operator": {
"total": 4,
"facebook": 2,
"youtube": 0,
"instagram": 1,
"threads": 0,
"tiktok": 1,
"linkedin": 0,
"twitter": 0,
"shopee": 0,
"whatsapp": 0,
"telegram": 0,
"pinterest": 0
}
}{
"code": 401,
"message": "unauthorized"
}