Get logs

GET {{baseUrl}}/v1/Logs?workspaceId=61551403&start=1952-01-06T22:56:01.709Z&end=1952-01-06T22:56:01.709Z&userExcluded=true&userId=61551403&type=DataSubjectMessage&channels=CommentMention&channels=UserInvitationValidated&refId=eu&select=eu&page=61551403&size=61551403&skip=61551403&sortBy=eu&asc=true&filters=eu

Request Params

KeyDatatypeRequiredDescription
workspaceIdnumber
startstring
endstring
userExcludedboolean
userIdnumber
typestring
channelsstring
channelsstring
refIdstring
selectstringComma separated list of fields
pagenumberPagination index (1 based, page 1 = 1, page 2 = 2...)
sizenumberSize of the result page (default: 20, max 500)
skipnumberThe number of items to skip (if not provided, it will use the default page and size prop)
sortBystringThe field to sort
ascbooleanTrue to sort ascending
filtersstringA serialized as json filter string using the JsonRuleEngine.net format
https://github.com/antoinebidault/JsonRuleEngine.Net
The filters is a query param, that's why he must be properly serialized as a json string and url encoded
e.g. {"field":"ProcessingType", "operator":"notEqual", "value": "Done"}
The field prop must match one property name of the object (present in the output results)
The operator can be equal,
notEqual,
lessThan,
lessThanInclusive,
greaterThan,
greaterThanInclusive,
in,
notIn,
contains,
doesNotContains,
isNull,
isNotNull,
isEmpty
You can combine the filters as following :
{ "separator":"Or","rules": [{"field":"ProcessingType", "operator":"notEqual", "value": "Done"},{"field":"ProcessingType", "operator":"isNull"}]}
Serialize the filter param as following:
?filters=${uriEncodeComponent(JSON.stringify({"field":"ProcessingType", "operator":"notEqual", "value": "Done"}))}

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"items":[{"data":{},"id":"urn:uuid:a7c3d13e-e1a9-b92f-4783-a59c4920ebd3","label":"aute sed","description":"pariatur ut sint enim","objectType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"priority":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"isDeletion":true,"channel":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"refId":"sunt magna ","recipients":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"user":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"workSpaceId":-35580714,"date":"1951-02-24T13:59:33.817Z","dateUserViewed":"1988-09-19T08:49:27.274Z","dateNotificationSent":"1957-02-27T10:38:10.536Z","sendNotification":false,"workSpace":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"url":"nostrud"},{"data":{},"id":"c50e79e7-8260-be9d-d0b5-53b9b3415864","label":"mollit minim","description":"consequat aute amet","objectType":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"priority":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"isDeletion":true,"channel":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"refId":"nisi proident dolore ipsum","recipients":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"user":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"workSpaceId":-14488154,"date":"1990-01-06T16:14:58.479Z","dateUserViewed":"2003-05-22T16:45:40.682Z","dateNotificationSent":"1959-02-08T04:41:46.946Z","sendNotification":false,"workSpace":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"url":"sunt aliqua nulla"}],"total":25761357,"size":43032120,"page":56730857}