Skip to content

Remove Comment Sync ​

DELETEhttps://api.repliz.com/public/listener/{listenerId}

Remove a comment sync. Synced comments stay in the inbox. To stop it for a while, pause it instead.

Endpoint Details ​

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

Parameters ​

ParameterTypeRequiredDescription
listenerIdstringYesID of the comment sync to remove, the _id from Get Comment Sync or the listenerId from Create Comment Sync.

Example Request ​

bash
curl -X DELETE "https://api.repliz.com/public/listener/6913a5c2e4b0a1f2c3d4e5f6" \
  -H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"
javascript
import axios from 'axios';

const listenerId = '6913a5c2e4b0a1f2c3d4e5f6';

const response = await axios.delete(`https://api.repliz.com/public/listener/${listenerId}`, {
  auth: {
    username: 'YOUR_ACCESS_KEY',
    password: 'YOUR_SECRET_KEY',
  },
});

console.log(response.data);
javascript
const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');

const listenerId = '6913a5c2e4b0a1f2c3d4e5f6';

const response = await fetch(`https://api.repliz.com/public/listener/${listenerId}`, {
  method: 'DELETE',
  headers: {
    Authorization: `Basic ${credentials}`,
  },
});

console.log(response.status);

Response ​

json
// No content returned on success
json
{
  "code": 404,
  "message": "comment sync not found"
}
json
{
  "code": 401,
  "message": "unauthorized"
}