LogRocket
App · 2 actions
Keep LogRocket's user profiles current and read the project's audit log.
List audit logs
List entries from the project's audit log (who viewed a session or changed a setting, and when). Gets one page; to see more, run it again with the next page it gives.
Inputs
- Since
sincedate and time - Only entries from this time on.
- Page size
limitnumber - How many entries to return, 1 to 100.From 1 to 100.
- Next page cursor
cursortext - The 'next_cursor' from an earlier page, to get the page after it. Use instead of 'Since'.
Outputs
countnumber- How many entries this page holds
has_nexttrue/false- True if there are more entries
logslist- The audit log entries
next_cursortext- Pass as 'Next page cursor' to get the next page
Example output
{
"count": 1,
"has_next": false,
"logs": [
{
"action": "Viewed session",
"created_date": "2026-10-02T20:48:40.376852Z",
"description": "1-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/1",
"time": "10/02/26 08:48PM",
"user": "jo@example.com"
}
],
"next_cursor": ""
}Update user
Create a user in LogRocket, or update their name, email and traits (such as plan or company). Traits you send replace the old values, others stay, and a blank value removes a trait.
Inputs
- User ID
app_user_idtextRequired - The id your app gives the user, the same one it passes to LogRocket.identify().
- Name
nametext - The user's name, up to 1024 characters.
- Email
emailtext - The user's email address.
- Traits
traitsobject - Facts about the user, such as plan or company. Each value is text, a number or true/false, up to 1024 characters. Leave a value blank to remove that trait.
- Seen at
seen_atdate and time - When this was true of the user. LogRocket uses it for the user's first and last seen times. Defaults to now.
Outputs
userobject- The user as LogRocket now holds it
user_idtext- The user's id
Example output
{
"user": {
"email": "jo@example.com",
"name": "Jo Bloggs",
"traits": {
"plan": "free",
"seats": "3"
},
"userID": "user-1234"
},
"user_id": "user-1234"
}