English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/contact/chat/{chatId}Retrieve the contact of the person in a chat. The contact is created from the chat when the chat started before contacts existed; an existing contact is returned unchanged, apart from linking the chat to it. Chat IDs come from the Chat API, which needs the Gold plan.
Authorization: Basic Base64(AccessKey:SecretKey))| Parameter | Type | Required | Description |
|---|---|---|---|
chatId | string | Yes | ID of the chat in Repliz, the _id from Get Chat. This isn't the platform's conversation ID. |
curl -X PUT "https://api.repliz.com/public/contact/chat/69b0a1c2cb043c8192dcc401" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"import axios from 'axios';
const chatId = '69b0a1c2cb043c8192dcc401';
const response = await axios.put(
`https://api.repliz.com/public/contact/chat/${chatId}`,
{},
{
auth: {
username: 'YOUR_ACCESS_KEY',
password: 'YOUR_SECRET_KEY',
},
},
);
console.log(response.data);const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');
const chatId = '69b0a1c2cb043c8192dcc401';
const response = await fetch(`https://api.repliz.com/public/contact/chat/${chatId}`, {
method: 'PUT',
headers: {
Authorization: `Basic ${credentials}`,
},
});
const data = await response.json();
console.log(data);{
"_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"
}{
"code": 404,
"message": "chat not found"
}{
"code": 401,
"message": "unauthorized"
}