Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: LogRocket REST Highlights API
description: The LogRocket REST API provides programmatic access to LogRocket session replay and monitoring data. It enables developers to manage user identification by sending demographic and engagement data via PUT requests to contextualize user behavior. The API also supports retrieving session highlights and exported session data. All endpoints require an API access key available from the LogRocket dashboard under Settings.
version: '1.0'
contact:
name: LogRocket Support
url: https://logrocket.com/support
termsOfService: https://logrocket.com/terms
servers:
- url: https://api.logrocket.com/v1
description: LogRocket Production API
security:
- tokenAuth: []
tags:
- name: Highlights
description: Access Galileo AI-generated session highlights and summaries.
paths:
/orgs/{orgId}/apps/{appId}/highlights/:
post:
operationId: createHighlights
summary: Request Galileo AI session highlights
description: Initiates a request for Galileo AI to generate session highlights and summaries. You can specify a user by email or user ID, and optionally limit the time range. The response includes a request ID that can be used to poll for results. Optionally provide a webhook URL to receive results via POST when they are ready.
tags:
- Highlights
parameters:
- $ref: '#/components/parameters/orgId'
- $ref: '#/components/parameters/appId'
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/HighlightsRequest'
responses:
'200':
description: Highlights request accepted.
content:
application/json:
schema:
$ref: '#/components/schemas/HighlightsResponse'
'400':
description: Invalid request body or parameters.
'401':
description: Missing or invalid API key.
'404':
description: Organization or application not found.
get:
operationId: getHighlights
summary: Retrieve Galileo AI session highlights
description: Retrieves the status and results of a previously submitted highlights request. If highlights are still being generated, the result field will be null and the status will be PENDING. When complete, the result includes overall highlights across all sessions and per-session highlights with Markdown-formatted links to relevant session times.
tags:
- Highlights
parameters:
- $ref: '#/components/parameters/orgId'
- $ref: '#/components/parameters/appId'
- name: id
in: query
required: true
description: The request ID returned from the POST highlights endpoint.
schema:
type: string
responses:
'200':
description: Highlights result or pending status.
content:
application/json:
schema:
$ref: '#/components/schemas/HighlightsResponse'
'401':
description: Missing or invalid API key.
'404':
description: Highlights request not found.
components:
schemas:
SessionHighlight:
type: object
description: Highlights for an individual session.
properties:
sessionId:
type: string
description: The unique identifier for the session.
highlights:
type: string
description: Markdown-formatted highlights for this specific session, with links to relevant times.
HighlightsResponse:
type: object
description: Response containing Galileo AI highlights status and results.
properties:
requestID:
type: string
description: Unique identifier for the highlights request.
appID:
type: string
description: The application ID associated with the request.
status:
type: string
description: Current status of the highlights generation.
enum:
- PENDING
- COMPLETE
- FAILED
result:
description: The highlights result, or null if still pending.
oneOf:
- type: 'null'
- $ref: '#/components/schemas/HighlightsResult'
HighlightsResult:
type: object
description: The generated highlights across all matched sessions.
properties:
highlights:
type: string
description: Markdown-formatted summary across all sessions, with links to relevant times in the referenced sessions.
sessions:
type: array
description: Individual session summaries.
items:
$ref: '#/components/schemas/SessionHighlight'
HighlightsRequest:
type: object
description: Request body for generating Galileo AI session highlights.
properties:
userEmail:
type: string
format: email
description: Email address of the user whose sessions to summarize. Up to 10 most recent sessions from the last 30 days will be included.
userID:
type: string
description: User ID of the user whose sessions to summarize. Alternative to userEmail.
timeRange:
type: object
description: Time range to limit the sessions included in the highlights.
properties:
startMs:
type: integer
format: int64
description: Start of the time range as a Unix timestamp in milliseconds.
endMs:
type: integer
format: int64
description: End of the time range as a Unix timestamp in milliseconds.
webhookURL:
type: string
format: uri
description: URL to receive a POST request with the highlights results when they are ready. If not provided, poll the GET endpoint with the request ID.
parameters:
appId:
name: appId
in: path
required: true
description: The application or project identifier found in the LogRocket dashboard URL.
schema:
type: string
orgId:
name: orgId
in: path
required: true
description: The organization identifier found in the LogRocket dashboard URL.
schema:
type: string
securitySchemes:
tokenAuth:
type: apiKey
in: header
name: Authorization
description: API token authentication. Use the format "token <your-api-key>". API keys are available from the LogRocket dashboard under Settings > General Settings.
externalDocs:
description: LogRocket API Reference
url: https://docs.logrocket.com/reference