Skip to content

Get One Contact ​

GEThttps://api.repliz.com/public/contact/{contactId}

Retrieve a single contact with its stage, tags, note, follow-up and last interaction. lastCommentId is the _id of the latest comment for Get One Comment, and chatId the _id of the chat for Get One Chat. Comments are kept in Repliz for 60 days, so an older lastCommentId may no longer exist. lastChatAt is when the person last sent a DM: Facebook, Instagram, and TikTok only accept a DM to them within 24 hours of it, Telegram at any time.

Endpoint Details ​

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

Parameters ​

ParameterTypeRequiredDescription
contactIdstringYesID of the contact, the _id from Get Contact.

Example Request ​

bash
curl -X GET "https://api.repliz.com/public/contact/690a1f3ce12f2f72916f67e1" \
  -H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"
javascript
import axios from 'axios';

const contactId = '690a1f3ce12f2f72916f67e1';

const response = await axios.get(`https://api.repliz.com/public/contact/${contactId}`, {
  auth: {
    username: 'YOUR_ACCESS_KEY',
    password: 'YOUR_SECRET_KEY',
  },
});

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

const contactId = '690a1f3ce12f2f72916f67e1';

const response = await fetch(`https://api.repliz.com/public/contact/${contactId}`, {
  headers: {
    Authorization: `Basic ${credentials}`,
  },
});

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

Response ​

json
{
  "_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"
}
json
{
  "code": 404,
  "message": "contact not found"
}
json
{
  "code": 401,
  "message": "unauthorized"
}