List the project's snapshots, newest first.
GET
/v0/projects/{id}/snapshots
const url = 'https://infra-hyphae.run/v0/projects/example/snapshots';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://infra-hyphae.run/v0/projects/example/snapshots \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “ Responses ”Snapshots.
Media typeapplication/json
object
snapshots
required
Array<object>
object
id
required
string
project
required
string
label
string | null
created_at
required
RFC 3339, UTC.
string format: date-time
engine_version
required
string
source_data_dir
required
string
backup_dir
required
Native backup directory (NATIVE_BACKUP.json + data/), under the snapshot root.
string
lineage
required
The snapshot object printed by hyphae status --data-dir. Field names are Native’s.
object
catalog_version
required
integer
directory_lineage
required
string
logical_time_micros
required
integer
root_digest
required
string
visible_csn
required
integer
backup
required
Output of hyphae backup create / backup verify. Field names are Native’s.
object
backup_path
required
string
checkpoint_digest
required
string
file_count
required
integer
total_bytes
required
integer
status
required
string
visible_csn
required
integer
Example
{ "snapshots": [ { "engine_version": "3.0.0", "backup": { "status": "created" } } ]}Missing, malformed, duplicate, or unknown credential (authentication_required).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}Headers
Section titled “Headers”WWW-Authenticate
string
Unknown route, or a project the caller does not own (not_found).
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
Example
{ "error": { "code": "invalid_request" }}