dots.v2.snapshots.get()
Generated on 5 Nov 2026
from DoTs version
v1.23.0
Usage
client.v2.snapshots.get(requestConfiguration?: RequestConfiguration<SnapshotsRequestBuilderGetQueryParameters>): Promise<undefined | SnapshotsGetResponse>Description
To list all of the snapshots available on your account, send a GET request to
/v2/snapshots.
The response will be a JSON object with a key called snapshots. This will be
set to an array of snapshot objects, each of which will contain the standard
snapshot attributes.
Filtering Results by Resource Type
It’s possible to request filtered results by including certain query parameters.
List Droplet Snapshots
To retrieve only snapshots based on Droplets, include the resource_type
query parameter set to droplet. For example, /v2/snapshots?resource_type=droplet.
List Volume Snapshots
To retrieve only snapshots based on volumes, include the resource_type
query parameter set to volume. For example, /v2/snapshots?resource_type=volume.
Parameters
perPageinteger optionalExample:
2Number of items returned per page
pageinteger optionalExample:
1Which 'page' of paginated results to return.
resourceTypestring optionalUsed to filter snapshots by a resource type.
Request Sample
Pagination
This method returns paginated results. The response includes a links.pages object with URLs for navigating between pages. To retrieve the next page, parse the next URL and pass the page query parameter:
let response = await client.v2.snapshots.get();
let pages = response?.links?.pages;
while (pages && "next" in pages && typeof pages.next === "string") {
const page = Number(new URL(pages.next).searchParams.get("page"));
response = await client.v2.snapshots.get({
queryParameters: {
page,
},
});
pages = response?.links?.pages;
}Response Example
More Information
See /v2/snapshots in the API reference for additional detail on responses, headers, parameters, and more.