Description
This endpoint returns all snapshots with support for pagination, filtering, and sorting. You can filter snapshots by name and sort by various fields including creation date and last used date.Query Parameters
Pagination
page- Page number of the results (default: 1, minimum: 1)limit- Number of results per page (default: 100, minimum: 1, maximum: 200)
Filtering
name- Filter by partial name match (e.g.,abc123)
Sorting
sort- Field to sort by (default:lastUsedAt)- Options:
name,state,lastUsedAt,createdAt
- Options:
order- Direction to sort by (default:desc)- Options:
asc,desc
- Options:
Example Request
Example with Filtering
Response
Returns a paginated list containing:items- Array of snapshot objectspage- Current page numbertotal- Total number of snapshotstotalPages- Total number of pages
id- Snapshot IDname- Snapshot nameimageName- Image namestate- Current state (building,pending,pulling,active,inactive,error,build_failed,removing)cpu,gpu,mem,disk- Resource allocationgeneral- Whether the snapshot is generalregionIds- IDs of regions where the snapshot is availablecreatedAt,updatedAt,lastUsedAt- Timestampssize- Snapshot sizeref- Snapshot reference (e.g.,daytonaio/sandbox:latest)