Skip to content
Start here

Time Travel

Get D1 database bookmark
GET/accounts/{account_id}/d1/database/{database_id}/time_travel/bookmark
Restore D1 Database to a bookmark or point in time
POST/accounts/{account_id}/d1/database/{database_id}/time_travel/restore
ModelsExpand Collapse
TimeTravelGetBookmarkResponse object { bookmark }
bookmark: optional string

A bookmark representing a specific state of the database at a specific point in time.

TimeTravelRestoreResponse object { bookmark, message, previous_bookmark }

Response from a time travel restore operation.

bookmark: optional string

The new bookmark representing the state of the database after the restore operation.

message: optional string

A message describing the result of the restore operation.

previous_bookmark: optional string

The bookmark representing the state of the database before the restore operation. Can be used to undo the restore if needed.