Remove Account by ID

Remove a single account from your top account list by id.

Removes a single account from the workspace's top account list by its identifier. Returns 404 if no account with the given id exists. This route coexists with the batch Remove accounts route, which removes accounts by domain or LinkedIn URL.

Remove account by id

DELETE/api/v2/top-account-list/accounts/:id

Path parameters

ParameterTypeRequiredDescription
idintegerYesThe integer id returned by List accounts or Read top account list.

Example request

curl -X DELETE "https://api.getsillage.com/api/v2/top-account-list/accounts/4201" \
  -H "Authorization: Bearer $SILLAGE_API_KEY"
const response = await fetch(
  'https://api.getsillage.com/api/v2/top-account-list/accounts/4201',
  {
    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/top-account-list/accounts/4201'),
  {
    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/top-account-list/accounts/4201",
    headers={"Authorization": f"Bearer {os.environ['SILLAGE_API_KEY']}"},
    timeout=30,
)
response.raise_for_status()
result = response.json()

Example response

{
  "data": {
    "removed": true
  }
}

Response fields

FieldTypeDescription
data.removedbooleantrue if the account was removed, false otherwise. Returns 404 if the account was not found.

On this page