Skip to main content
GET
/
watchlist
/
history
Get Signal Agent configuration history
curl --request GET \
  --url https://api.lemlist.com/api/watchlist/history \
  --header 'Authorization: Basic <encoded-value>'
import requests

url = "https://api.lemlist.com/api/watchlist/history"

headers = {"Authorization": "Basic <encoded-value>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};

fetch('https://api.lemlist.com/api/watchlist/history', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
require 'uri'
require 'net/http'

url = URI("https://api.lemlist.com/api/watchlist/history")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'

response = http.request(request)
puts response.read_body
<?php

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_URL => "https://api.lemlist.com/api/watchlist/history",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => [
    "Authorization: Basic <encoded-value>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
{
  "data": [
    {
      "_id": "<string>",
      "startDate": "2023-11-07T05:31:56Z",
      "endDate": "2023-11-07T05:31:56Z",
      "createdBy": "<string>",
      "name": "<string>",
      "emoji": "<string>",
      "filters": [
        {
          "in": [
            "<string>"
          ],
          "out": [
            "<string>"
          ]
        }
      ],
      "stats": {
        "signalsCount": 123,
        "campaigns": [
          {}
        ]
      }
    }
  ],
  "meta": {
    "pagination": {
      "page": 123,
      "limit": 123,
      "totalRecords": 123,
      "totalPages": 123
    }
  }
}
"page must be a positive integer"
"Unauthorized"
"WatchList not found or access denied"
"Internal server error"
Each entry captures a past configuration version that was active during [startDate, endDate). The current, live configuration stays on the Signal Agent itself and is not part of the history.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

watchListId
string
required

Signal Agent id whose history to fetch

Minimum string length: 1
page
integer

Page number to retrieve

Required range: x >= 1
limit
integer

Number of records to retrieve. Maximum value: 100

Required range: 1 <= x <= 100

Response

Success

data
object[]
meta
object