English
English
Appearance
English
English
Appearance
https://api.repliz.com/public/chat/{chatId}/pausePause the DM automation of one chat, so a person can take over the conversation. While a chat is paused, Reply DM (chat), Reply Story (story), and Reply Story Mention (storyMention) don't answer the person. Messages you send with Send Message still go out.
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. |
| Field | Type | Required | Description |
|---|---|---|---|
value | number | Yes | How long to pause, in seconds: 1800 (30 minutes), 3600 (1 hour), 21600 (6 hours), 86400 (24 hours), or 0 to keep it paused until Resume Chat. |
pausedUntil. The chat is paused while it is in the future; 9999-12-31T00:00:00.000Z means until resumed.pause on in Update Automation Account, a chat is also paused by itself when you reply to it by hand. See Pause on Reply.reply, like, delete, message) keep running.curl -X POST "https://api.repliz.com/public/chat/680affa5ce12f2f72916f67e/pause" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)" \
-H "Content-Type: application/json" \
-d '{
"value": 3600
}'import axios from 'axios';
const chatId = '680affa5ce12f2f72916f67e';
const response = await axios.post(
`https://api.repliz.com/public/chat/${chatId}/pause`,
{
value: 3600,
},
{
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}/pause`, {
method: 'POST',
headers: {
Authorization: `Basic ${credentials}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
value: 3600,
}),
});
const data = await response.json();
console.log(data);{
"pausedUntil": "2026-11-14T04:00:00.000Z"
}{
"code": 400,
"message": "value must be one of the following values: 0, 1800, 3600, 21600, 86400"
}{
"code": 404,
"message": "chat not found"
}{
"code": 401,
"message": "unauthorized"
}