Skip to content

Get Contact ​

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

Retrieve 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.

Endpoint Details ​

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

Parameters ​

ParameterTypeRequiredDescription
pagenumberYesPage to return, starting from 1. Contacts are sorted by the latest interaction, or by the nearest follow-up when followUp is set.
limitnumberYesItems per page, from 1 to 100, for example 20. The response says how many pages there are in totalPages.
stagestringNoFunnel stage: new, contacted, interested, won, or lost. Every stage when left out.
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.

Funnel Stages ​

StageMeaning
newEvery new contact starts here.
contactedYou reached out to them.
interestedThey showed interest, for example by asking for a price.
wonThey bought, or the deal closed.
lostThey decided not to.

Example Request ​

bash
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)"
javascript
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);
javascript
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);

Response ​

json
{
  "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
}
json
{
  "code": 401,
  "message": "unauthorized"
}