Skip to content
FacebookYouTubeX (Twitter)

Audit Log

You can use the API to get audit log data.

GET https://api.pingstreams.com/v3/:project_id/activities

Allows an admin to list all the audit log entries for the project.

ParameterTypeDescription
project_idstringthe Project Id is a unique code assigned to your project when you create it in Pingstreams.
ParameterTypeDescription
agent_idstringThe agent identifier.
activitiesstringA comma separeted list of events to filter the results. Ex: “PROJECT_USER_DELETE,PROJECT_USER_INVITE”
sortFieldstringwhat field to sort the results by.
directionstringsort direction: 1 or -1. Return the results in ascending or descending order. defaults to desc
pagestringwhat page of results to fetch. defaults to first page.
HeaderTypeDescription
AuthorizationstringAuthorization token. Basic Auth or JWT. Minumun role: admin
{
"perPage":40,
"count":1,
"activities":[
{
"_id":"5cbf2eec5bf27612afc0c309",
"updatedAt":"2019-04-23T15:27:40.619Z",
"createdAt":"2019-04-23T15:27:40.619Z",
"actor":{
"type":"user",
"id":"5ac7521787f6b50014e0b592",
"name":"Nico Lanzilotto"
},
"verb":"PROJECT_USER_INVITE",
"actionObj":{
"email":"user@example.com",
"role":"agent",
"id_project":"5ad5bd52c975820014ba900a",
"project_name":"Pingstreams"
},
"target":{
"type":"pendinginvitation",
"id":"5cbf2eec5bf27612afc0c308",
"object":{
"_id":"5cbf2eec5bf27612afc0c308",
"createdBy":"5ac7521787f6b50014e0b592",
"id_project":"5ad5bd52c975820014ba900a",
"role":"agent",
"email":"user@example.com",
"createdAt":"2019-04-23T15:27:40.519Z",
"updatedAt":"2019-04-23T15:27:40.519Z",
"__v":0
}
},
"id_project":"5ad5bd52c975820014ba900a",
"__v":0
}
]
}