Checkpoints API
Request Body
comment:optionalstring
Responses
Section titled “Responses”| Status | Description |
|---|---|
200 | Success - Streaming NDJSON response |
404 | Not Found - Resource not found |
500 | Internal Server Error |
Streaming Events
Section titled “Streaming Events”This endpoint returns streaming NDJSON. Each line is one of these event types:
| Field | Type | Description |
|---|---|---|
type | string | (const: "info") |
data | string | Status message |
time | time.Time | Timestamp |
{"data":"Creating checkpoint...","time":"2026-01-05T10:30:00Z","type":"info"}| Field | Type | Description |
|---|---|---|
type | string | (const: "error") |
error | string | Error description |
time | time.Time | Timestamp |
{"error":"Checkpoint failed: disk full","time":"2026-01-05T10:30:00Z","type":"error"}complete
Section titled “complete”| Field | Type | Description |
|---|---|---|
type | string | (const: "complete") |
data | string | Completion message |
time | time.Time | Timestamp |
{"data":"Checkpoint v3 created successfully","time":"2026-01-05T10:30:00Z","type":"complete"} Request
Response
[{ "data": "Creating checkpoint...", "time": "2026-01-05T10:30:00Z", "type": "info"},{ "data": "Stopping services...", "time": "2026-01-05T10:30:00Z", "type": "info"},{ "data": "Saving filesystem state...", "time": "2026-01-05T10:30:00Z", "type": "info"},{ "data": "Checkpoint v8 created", "time": "2026-01-05T10:30:00Z", "type": "complete"}]Responses
Section titled “Responses”| Status | Description |
|---|---|
200 | Success |
404 | Not Found - Resource not found |
500 | Internal Server Error |
Request
Response
[{ "comment": "Before database migration", "create_time": "2026-01-05T10:30:00Z", "id": "v7"},{ "comment": "Stable state", "create_time": "2026-01-04T15:00:00Z", "id": "v6"},{ "comment": "", "create_time": "2026-01-04T09:00:00Z", "id": "v5"}]Responses
Section titled “Responses”| Status | Description |
|---|---|
200 | Success |
404 | Not Found - Resource not found |
500 | Internal Server Error |
Request
Response
{"comment": "Before database migration","create_time": "2026-01-05T10:30:00Z","id": "v7"}Responses
Section titled “Responses”| Status | Description |
|---|---|
200 | Success - Streaming NDJSON response |
404 | Not Found - Resource not found |
500 | Internal Server Error |
Streaming Events
Section titled “Streaming Events”This endpoint returns streaming NDJSON. Each line is one of these event types:
| Field | Type | Description |
|---|---|---|
type | string | (const: "info") |
data | string | Status message |
time | time.Time | Timestamp |
{"data":"Creating checkpoint...","time":"2026-01-05T10:30:00Z","type":"info"}| Field | Type | Description |
|---|---|---|
type | string | (const: "error") |
error | string | Error description |
time | time.Time | Timestamp |
{"error":"Checkpoint failed: disk full","time":"2026-01-05T10:30:00Z","type":"error"}complete
Section titled “complete”| Field | Type | Description |
|---|---|---|
type | string | (const: "complete") |
data | string | Completion message |
time | time.Time | Timestamp |
{"data":"Checkpoint v3 created successfully","time":"2026-01-05T10:30:00Z","type":"complete"} Request
Response
[{ "data": "Restoring to checkpoint v5...", "time": "2026-01-05T10:30:00Z", "type": "info"},{ "data": "Stopping services...", "time": "2026-01-05T10:30:00Z", "type": "info"},{ "data": "Restoring filesystem...", "time": "2026-01-05T10:30:00Z", "type": "info"},{ "data": "Restored to v5", "time": "2026-01-05T10:30:00Z", "type": "complete"}]