Skip to content

Record a reading session

POST
/api/v1/reading-sessions
curl --request POST \
--url http://127.0.0.1:58259/api/v1/reading-sessions \
--header 'Content-Type: application/json' \
--data '{ "bookId": 1, "bookType": "PDF", "startTime": "2026-04-15T12:00:00Z", "endTime": "2026-04-15T12:00:00Z", "durationSeconds": 1, "durationFormatted": "example", "startProgress": 1, "endProgress": 1, "progressDelta": 1, "startLocation": "example", "endLocation": "example" }'

Receive telemetry from the reader client and persist or log the session.

Media type application/json
object
bookId
required
integer format: int64
bookType
string
Allowed values: PDF EPUB CBX FB2 MOBI AZW3 AUDIOBOOK
startTime
required
string format: date-time
endTime
required
string format: date-time
durationSeconds
required
integer format: int32
durationFormatted
string
startProgress
number format: float
endProgress
number format: float
progressDelta
number format: float
startLocation
string
endLocation
string

Reading session accepted

Invalid payload