Skip to main content
POST
Submit a replay batch

Authorizations

X-Lucent-Api-Key
string
header
required

Public key prefixed with luc_pk_. Safe to expose in client-side code. For navigator.sendBeacon callers that cannot set headers, the key may also be passed as the api_key query parameter.

Body

application/json
session
object
required
user
object
required
page
object
required
replay
object
required
metadata
object | null
flush
enum<string>
default:normal

final tells the server this is the last batch for the session — typically sent from a beforeunload handler. final batches trigger immediate session processing.

Available options:
normal,
final

Response

Batch accepted.

ok
boolean
required