Skip to content

Pause Chat ​

POSThttps://api.repliz.com/public/chat/{chatId}/pause

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

Endpoint Details ​

  • Authentication: Basic Auth (Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Repliz
  • Scope (Bearer only): chat:write
  • Access Tier: Gold+

Parameters ​

ParameterTypeRequiredDescription
chatIdstringYesID of the chat, the _id from Get Chat.

Request Body ​

FieldTypeRequiredDescription
valuenumberYesHow 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.

How it works ​

  • Pausing again replaces the current pause, also when it is shorter.
  • Get Chat and Get One Chat return pausedUntil. The chat is paused while it is in the future; 9999-12-31T00:00:00.000Z means until resumed.
  • With pause on in Update Automation Account, a chat is also paused by itself when you reply to it by hand. See Pause on Reply.
  • Comment automations (reply, like, delete, message) keep running.

Example Request ​

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

Response ​

json
{
  "pausedUntil": "2026-11-14T04:00:00.000Z"
}
json
{
  "code": 400,
  "message": "value must be one of the following values: 0, 1800, 3600, 21600, 86400"
}
json
{
  "code": 404,
  "message": "chat not found"
}
json
{
  "code": 401,
  "message": "unauthorized"
}