Get Snapshot
GET
/api/v1/projects/{project_id}/snapshots/{ref}
const url = 'https://aura.strangeworks.com/api/v1/projects/example/snapshots/example';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://aura.strangeworks.com/api/v1/projects/example/snapshots/example \ --header 'Authorization: Bearer <token>'Fetch a snapshot by ID or tag name (ID resolution tried first).
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”project_id
required
Project Id
string
ref
required
Ref
string
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
SnapshotDetailResponse
A snapshot plus the list of files captured in it (fetch view).
object
created_at
required
Created At
string format: date-time
file_count
required
File Count
integer
files
Files
Array<object>
SnapshotFileobject
path
required
Path
string
size
required
Size
integer
id
required
Id
string
kind
SnapshotKind
string
project_id
required
Project Id
string
tags
Tags
Array<string>
total_size_bytes
required
Total Size Bytes
integer
Example
{ "files": [], "kind": "solve", "tags": []}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}