List  logs
In order to list logs, you will need to send a POST request. However, before doing so, you must provide your account's API Key and API Secret. You can find these credentials by navigating to the "Developers" tab on your account settings page.

URL


https://client.logoom.io/api/data/list

NPM


https://www.npmjs.com/package/logoom

Parameters


sources REQUIRED
sources is a required field, and you can specify one or more sources to filter logs under these sources.

startDate REQUIRED
startDate is a required field, and it is used to filter logs based on the date they were created.

endDate REQUIRED
endDate is a required field, and it is used to filter logs based on the date they were created before this date.

limit optional
Limit field description: The "limit" field is optional, but it has a maximum value of 500.



  • cURL
  • Node.js
  • PHP
  • C#
POST/CreateLandscape picture
curl -X POST \
  https://client.logoom.io/api/data/list \
  -H 'Content-Type: application/json' \
  -H 'apikey: your-api-key' \
  -H 'apisecret: your-api-secret' \
  -d '{
          "sources": ["source key"],
          "startDate": "2023-02-16",
          "endDate": "2023-03-24",
          "limit": 50
}'
Response
{
  "success": true,
  "message": "LOGOOM.SUCCESS",
  "statusCode": 201,
  "data": [
    {
      "id": 1,
      "message": "Lorem ipsum dolor sit amet",
      "metadata": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. ",
      "group": "Test",
      "date_created": "2023-03-23T19:47:13.415Z",
      "source": {
        "id": 1,
        "key": "Source key",
        "type": "Source type",
        "name": "Source name",
        "description": "Description"
      },
      "category": {
        "id": 1,
        "name": "Category name"
      }
    }
  ]
}