Fix all wrong-path artifacts identified by the audit: - Kobo sync endpoints (init/bookmark/markup/sync-from-server/analytics): add missing :token device segment (6 doc files incl. kobo-protocol.md) - Highlights/notes update+delete: add missing /:id media-item prefix - media-items/download_media_item.md: removed (static /uploads route, not an API endpoint; info about the file route is recoverable from OPDS docs) - Bruno: /libraries/visible -> /visibility, /collections/books missing id, /audio/0 -> track_index - operations/troubleshooting.md: same /libraries/visible -> /visibility fix - media-items/get_audio_track.md + get_audio_chapters.md: /audio/0 examples fixed - Deleted monolithic docs/developer/api-reference.md (duplicate of split docs) - Fixed 4 stale entries in docs/developer/api/api-reference.md (split index) Audit re-run: orphan docs 0, orphan Bruno 6 (all scenario files with literal IDs).
1.6 KiB
1.6 KiB
Bookmark Sync
Status: Coming Soon — Native Kobo sync is not yet supported on real devices; this endpoint is under active development and may change.
Sync bookmarks from Kobo device.
Endpoint: POST /api/sync/kobo/:token/bookmark
Auth: Required (Device authentication)
Device Authentication
This endpoint requires device authentication (not user JWT). Kobo devices authenticate using their device credentials and access tokens.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| bookmarks | array | Yes | Array of bookmark objects |
Bookmark Object
| Field | Type | Required | Description |
|---|---|---|---|
| BookmarkID | string | Yes | Unique bookmark ID |
| ContentID | string | Yes | Book content ID |
| StartPosition | integer | Yes | Bookmark position |
| Text | string | No | Bookmark text |
| DateCreated | string | Yes | ISO 8601 timestamp |
Example Request
{
"bookmarks": [
{
"BookmarkID": "bookmark123",
"ContentID": "book-uuid",
"StartPosition": 1234,
"Text": "Chapter 5",
"DateCreated": "2026-02-08T10:00:00Z"
}
]
}
Response (200 OK)
{
"message": "Bookmarks synced successfully",
"synced_count": 1
}
Error Responses
| Code | Description |
|---|---|
| 401 | Device authentication failed |
| 400 | Invalid request data |
| 404 | Device or book not found |