Skip to content

Resume Chat ​

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

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

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.

Example Request ​

bash
curl -X POST "https://api.repliz.com/public/chat/680affa5ce12f2f72916f67e/resume" \
  -H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"
javascript
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);
javascript
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);

Response ​

json
{
  "pausedUntil": null
}
json
{
  "code": 404,
  "message": "chat not found"
}
json
{
  "code": 401,
  "message": "unauthorized"
}