English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/contactRetrieve a paginated list of contacts. Everyone who comments on or sends a message to a connected account becomes a contact automatically, and the contact is updated with every new comment or message. Comments and messages from the same platform ID share one contact; when a platform uses different IDs for comments and messages (Facebook and Instagram usually do), they stay separate contacts.
Authorization: Basic Base64(AccessKey:SecretKey))| Parameter | Type | Required | Description |
|---|---|---|---|
page | number | Yes | Page to return, starting from 1. Contacts are sorted by the latest interaction, or by the nearest follow-up when followUp is set. |
limit | number | Yes | Items per page, from 1 to 100, for example 20. The response says how many pages there are in totalPages. |
stage | string | No | Funnel stage: new, contacted, interested, won, or lost. Every stage when left out. |
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. |
| Stage | Meaning |
|---|---|
new | Every new contact starts here. |
contacted | You reached out to them. |
interested | They showed interest, for example by asking for a price. |
won | They bought, or the deal closed. |
lost | They decided not to. |
curl -X GET "https://api.repliz.com/public/contact?page=1&limit=20&stage=interested&tag=reseller&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', {
params: {
page: 1,
limit: 20,
stage: 'interested',
tag: 'reseller',
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?page=1&limit=20&stage=interested&tag=reseller&accountIds[]=69686c4c41ec8ac5117c8929', {
headers: {
Authorization: `Basic ${credentials}`,
},
});
const data = await response.json();
console.log(data);{
"docs": [
{
"_id": "690a1f3ce12f2f72916f67e1",
"accountId": "69686c4c41ec8ac5117c8929",
"externalId": "6793729447315239",
"name": "Shika",
"picture": "https://platform-lookaside.fbsbx.com/platform/profilepic/?psid=6793729447315239",
"sources": [
"comment",
"chat"
],
"stage": "interested",
"tags": [
"reseller",
"jakarta"
],
"note": "Asked for the reseller price list.",
"followUp": {
"at": "2026-11-05T02:00:00.000Z",
"note": "Send the new catalog.",
"message": "Halo kak, ini katalog terbaru kami."
},
"lastText": "Harga reseller berapa kak?",
"lastSource": "chat",
"lastCommentId": "69afe793cb043c8192dcc3c7",
"chatId": "69b0a1c2cb043c8192dcc401",
"lastInteractionAt": "2026-11-04T08:12:00.000Z",
"lastChatAt": "2026-11-04T08:12:00.000Z",
"userId": "6879b98097fc8c8a78d1d4c1",
"createdAt": "2026-11-04T07:55:10.000Z",
"updatedAt": "2026-11-04T08:20:00.000Z",
"account": {
"_id": "69686c4c41ec8ac5117c8929",
"name": "Halaman ke 3",
"username": "Cafe",
"picture": "https://scontent-cgk2-1.xx.fbcdn.net/v/t39.30808-1/281663458_113958441315334_...",
"isConnected": true,
"type": "facebook",
"id": "69686c4c41ec8ac5117c8929"
},
"id": "690a1f3ce12f2f72916f67e1"
}
],
"totalDocs": 1,
"limit": 20,
"totalPages": 1,
"page": 1,
"pagingCounter": 1,
"hasPrevPage": false,
"hasNextPage": false,
"prevPage": null,
"nextPage": null
}{
"code": 401,
"message": "unauthorized"
}