GET api/v1/Log?token={token}&page={page}&startDate={startDate}&endDate={endDate}&logId={logId}

Get the log records filtered by the login user name
The login user name is what you used to get the token.

Request Information

URI Parameters

NameDescriptionType/Additional information
token

The access token. This is the token that you use to access Caspit

string
page

The page you want. The default is 0. Each page contains 50 records

int32

Default value is 0

startDate

The period's start date. Optional. E.g. 2017-01-31

date
endDate

The periods end date. Optional. E.g. 2017-12-31

date
logId

The id of the log entry. Optional. E.g. 636376

int32

Body Parameters

None.

Response Description

A list of CaspitLog

CaspitResponse

A generic object used to return information from Caspit

Response Formats

application/json, text/json

Sample:
{
  "CurrentPage": 1,
  "TotalCount": 2,
  "TotalPages": 3,
  "PrevPageUrl": "sample string 4",
  "NextPageUrl": "sample string 5",
  "Results": [
    {
      "DateCreated": "2022-10-06T22:15:49.6192086+03:00",
      "UserCreated": "sample string 1",
      "DateUpdated": "2022-10-06T22:15:49.6192086+03:00",
      "UserUpdated": "sample string 2"
    },
    {
      "DateCreated": "2022-10-06T22:15:49.6192086+03:00",
      "UserCreated": "sample string 1",
      "DateUpdated": "2022-10-06T22:15:49.6192086+03:00",
      "UserUpdated": "sample string 2"
    }
  ]
}

application/xml, text/xml

Sample:
<CaspitResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.caspit.biz/2013/03">
  <CurrentPage>1</CurrentPage>
  <NextPageUrl>sample string 5</NextPageUrl>
  <PrevPageUrl>sample string 4</PrevPageUrl>
  <Results>
    <CaspitBase>
      <DateCreated>2022-10-06T22:15:49.6192086+03:00</DateCreated>
      <DateUpdated>2022-10-06T22:15:49.6192086+03:00</DateUpdated>
      <UserCreated>sample string 1</UserCreated>
      <UserUpdated>sample string 2</UserUpdated>
    </CaspitBase>
    <CaspitBase>
      <DateCreated>2022-10-06T22:15:49.6192086+03:00</DateCreated>
      <DateUpdated>2022-10-06T22:15:49.6192086+03:00</DateUpdated>
      <UserCreated>sample string 1</UserCreated>
      <UserUpdated>sample string 2</UserUpdated>
    </CaspitBase>
  </Results>
  <TotalCount>2</TotalCount>
  <TotalPages>3</TotalPages>
</CaspitResponse>