# LogRocket (/integrations/logrocket)



{/* MANUAL-CONTENT-START:intro */}

Use [LogRocket](https://logrocket.com/) to request Galileo Highlights for a user's sessions, update user names, emails, and traits, retrieve JSON Lines export URLs, inspect the session-access audit log, and register releases for source-map decoding.

**Request Highlights** returns an ID immediately. Poll **Get Highlights** while `status` is `PENDING`, then handle `READY` or `FAILED`. LogRocket says generation generally takes one to three minutes; this is an estimate, not a workflow deadline. See the [Galileo Highlights API](https://docs.logrocket.com/docs/session-highlights-api).

For session, issue, and metric queries beyond this block, inspect LogRocket's [MCP server](https://docs.logrocket.com/docs/mcp) at `https://mcp.logrocket.com/mcp` and add it as a separate MCP connection in Sim.

{/* MANUAL-CONTENT-END */}

## Use the block [#usage-instructions]

Request AI session highlights for a user, poll for the result, list exported session files, read the audit log, create or update user profiles, and register releases so source maps decode their stack traces.

## Actions [#actions]

### LogRocket Request Highlights [#logrocket-request-highlights]

Start a Galileo session highlights job for a user. Returns a request ID to poll with LogRocket's Get Highlights operation.

#### Input [#input]

| Parameter | Type | Required | Description |
| - | - | - | - |
| `apiKey` | string | Yes | LogRocket API key |
| `orgId` | string | Yes | LogRocket organization ID |
| `appId` | string | Yes | LogRocket project (app) ID |
| `apiHost` | string | No | API host override for Private Cloud deployments |
| `userEmail` | string | No | Email of the user to summarize. Required if no user ID is given. |
| `userID` | string | No | ID of the user to summarize. Required if no email is given. |
| `question` | string | No | Question to focus the highlights on |
| `startMs` | string | No | Start of the session window, in milliseconds since epoch |
| `endMs` | string | No | End of the session window, in milliseconds since epoch |
| `webhookURL` | string | No | URL notified when the highlights job finishes |

#### Output [#output]

| Parameter | Type | Description |
| - | - | - |
| `id` | string | Request ID used to retrieve the highlights result |

### LogRocket Get Highlights [#logrocket-get-highlights]

Retrieve the result of a Galileo session highlights request. Status is PENDING until generation finishes, then READY or FAILED.

#### Input [#input-1]

| Parameter | Type | Required | Description |
| - | - | - | - |
| `apiKey` | string | Yes | LogRocket API key |
| `orgId` | string | Yes | LogRocket organization ID |
| `appId` | string | Yes | LogRocket project (app) ID |
| `apiHost` | string | No | API host override for Private Cloud deployments |
| `id` | string | Yes | Request ID returned by the Request Highlights operation |

#### Output [#output-1]

| Parameter | Type | Description |
| - | - | - |
| `status` | string | Job status: PENDING, READY, or FAILED |
| `requestID` | string | ID of the highlights request |
| `appID` | string | LogRocket project the request belongs to |
| `highlights` | string | Markdown summary across the matched sessions. Present when status is READY. |
| `sessions` | array | Per-session highlights |
| ↳ `recordingID` | string | LogRocket recording ID |
| ↳ `sessionID` | number | Session number within the recording |
| ↳ `highlights` | string | Highlights for this session |

### LogRocket List Exported Sessions [#logrocket-list-exported-sessions]

List exported session files from the LogRocket Data Export API. Returns download URLs for JSON Lines exports, oldest first, plus a cursor for the next page.

#### Input [#input-2]

| Parameter | Type | Required | Description |
| - | - | - | - |
| `apiKey` | string | Yes | LogRocket API key |
| `orgId` | string | Yes | LogRocket organization ID |
| `appId` | string | Yes | LogRocket project (app) ID |
| `apiHost` | string | No | API host override for Private Cloud deployments |
| `cursor` | string | No | Cursor from a previous page, used to fetch newer sessions |
| `limit` | string | No | Results per page. Defaults to 10, maximum 100. |
| `date` | string | No | Unix timestamp in milliseconds to start listing from |

#### Output [#output-2]

| Parameter | Type | Description |
| - | - | - |
| `sessions` | array | Exported session files |
| ↳ `url` | string | Download URL for the JSON Lines export file |
| `cursor` | string | Opaque cursor for the next page of results |

### LogRocket Get Audit Logs [#logrocket-get-audit-logs]

Export audit log entries from LogRocket, recording who viewed sessions and what actions were taken. Paginated with a cursor.

#### Input [#input-3]

| Parameter | Type | Required | Description |
| - | - | - | - |
| `apiKey` | string | Yes | LogRocket API key |
| `orgId` | string | Yes | LogRocket organization ID |
| `appId` | string | Yes | LogRocket project (app) ID |
| `apiHost` | string | No | API host override for Private Cloud deployments |
| `limit` | string | No | Number of audit log records to return |
| `cursor` | string | No | Cursor from a previous page, used to fetch the next page |

#### Output [#output-3]

| Parameter | Type | Description |
| - | - | - |
| `logs` | array | Audit log entries |
| ↳ `time` | string | Formatted timestamp of the action |
| ↳ `createdDate` | string | ISO 8601 timestamp of the action |
| ↳ `user` | string | Email or system ID of the actor |
| ↳ `action` | string | Action taken, e.g. Viewed session |
| ↳ `description` | string | Action details, e.g. the session ID |
| `cursor` | string | Opaque cursor for the next page of results |
| `hasNext` | boolean | Whether more audit logs exist beyond this page |

### LogRocket Identify User [#logrocket-identify-user]

Create or update a LogRocket user profile with demographic, financial, and engagement traits.

#### Input [#input-4]

| Parameter | Type | Required | Description |
| - | - | - | - |
| `apiKey` | string | Yes | LogRocket API key |
| `orgId` | string | Yes | LogRocket organization ID |
| `appId` | string | Yes | LogRocket project (app) ID |
| `apiHost` | string | No | API host override for Private Cloud deployments |
| `userId` | string | Yes | ID of the user to create or update |
| `name` | string | No | Display name of the user. Maximum 1024 characters. |
| `email` | string | No | Email of the user. Maximum 1024 characters. |
| `timestamp` | string | No | Unix timestamp in milliseconds describing when the submitted data was true |
| `traits` | string | No | JSON object of custom traits. Each key and value is limited to 1024 characters and stored as a string. |

#### Output [#output-4]

| Parameter | Type | Description |
| - | - | - |
| `userID` | string | ID of the created or updated user |
| `name` | string | Display name stored on the profile |
| `email` | string | Email stored on the profile |
| `traits` | json | Custom traits stored on the profile, with every value coerced to a string |

### LogRocket Create Release [#logrocket-create-release]

Register a release version in LogRocket so uploaded source maps can decode stack traces for it. Fails with a conflict if the version already exists.

#### Input [#input-5]

| Parameter | Type | Required | Description |
| - | - | - | - |
| `apiKey` | string | Yes | LogRocket API key |
| `orgId` | string | Yes | LogRocket organization ID |
| `appId` | string | Yes | LogRocket project (app) ID |
| `apiHost` | string | No | API host override for Private Cloud deployments |
| `version` | string | Yes | Release version to register, e.g. 1.2.3 or a commit SHA |

#### Output [#output-5]

| Parameter | Type | Description |
| - | - | - |
| `version` | string | Release version that was registered |
