English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/chat/{chatId}/resumeResume the DM automation of a paused chat right away, so the next message of the person gets an answer again. It works on a chat that isn't paused too.
Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Replizchat:write| Parameter | Type | Required | Description |
|---|---|---|---|
chatId | string | Yes | ID of the chat, the _id from Get Chat. |
curl -X POST "https://api.repliz.com/public/chat/680affa5ce12f2f72916f67e/resume" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"import axios from 'axios';
const chatId = '680affa5ce12f2f72916f67e';
const response = await axios.post(
`https://api.repliz.com/public/chat/${chatId}/resume`,
{},
{
auth: {
username: 'YOUR_ACCESS_KEY',
password: 'YOUR_SECRET_KEY',
},
},
);
console.log(response.data);const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');
const chatId = '680affa5ce12f2f72916f67e';
const response = await fetch(`https://api.repliz.com/public/chat/${chatId}/resume`, {
method: 'POST',
headers: {
Authorization: `Basic ${credentials}`,
},
});
const data = await response.json();
console.log(data);{
"pausedUntil": null
}{
"code": 404,
"message": "chat not found"
}{
"code": 401,
"message": "unauthorized"
}