Delete Watchlist

Delete a watchlist that is not bound to any agent.

Deletes a watchlist and its membership links (the canonical companies/people are shared and never deleted). A list that is still bound to one or more agents cannot be deleted — unbind it first (see Update agent, pass both watchlist_kind: null and watchlist_id: null).

Delete watchlist

DELETE/api/v2/watchlists/{kind}/{watchlist_id}

Path parameters

ParameterTypeDescription
kindstringWatchlist kind: company or profile (matches the list type).
watchlist_idintegerIdentifier of the watchlist.

Example request

curl -X DELETE "https://api.getsillage.com/api/v2/watchlists/company/128" \
  -H "Authorization: Bearer $SILLAGE_API_KEY"
const response = await fetch('https://api.getsillage.com/api/v2/watchlists/company/128', {
  method: 'DELETE',
  headers: { Authorization: `Bearer ${process.env.SILLAGE_API_KEY}` },
})

const result = await response.json()
import { request } from 'node:https'

const req = request(
  new URL('https://api.getsillage.com/api/v2/watchlists/company/128'),
  {
    method: 'DELETE',
    headers: { Authorization: `Bearer ${process.env.SILLAGE_API_KEY}` },
  },
  (res) => {
    let data = ''
    res.on('data', (chunk) => {
      data += chunk
    })
    res.on('end', () => {
      console.log(JSON.parse(data))
    })
  },
)

req.end()
import os
import requests

response = requests.delete(
    "https://api.getsillage.com/api/v2/watchlists/company/128",
    headers={"Authorization": f"Bearer {os.environ['SILLAGE_API_KEY']}"},
    timeout=30,
)
response.raise_for_status()
result = response.json()

Example response

{
  "data": { "id": 128 }
}

Errors

StatusDescription
401The API key is missing or invalid.
404The watchlist does not exist in your workspace.
409The watchlist is bound to one or more agents; unbind them first.
422Invalid watchlist_id — must be a positive integer.
429Too many requests.

On this page