Guides
List Sandboxes
Learn how to list and paginate through your sandboxes
Using the TypeScript SDK
List all sandboxes in your account:
Basic Listing
Get the first page of sandboxes with default pagination:
Custom Pagination
Specify page number and page size:
Iterating Through All Pages
Fetch all sandboxes by iterating through pages:
Filtering by Status
Filter sandboxes by their status:
Accessing Sandbox Details
Each sandbox object contains detailed information:
Counting Sandboxes
Get a quick count of your sandboxes:
Response Structure
The list() method returns a SandboxListResponse object:
Example Response
Sandbox Status
Sandboxes can have various statuses:
creating- Sandbox is being createdrunning- Sandbox is active and readystopped- Sandbox has been stoppeddeleting- Sandbox is being deleted
Parameters
Page number to retrieve (starts at 1)
Number of items per page (1-100)
Response Fields
Data Array
Each item in the data array is a Sandbox object:
Pagination Object
Examples
Find a Specific Sandbox by Name
Get All Running Sandboxes
Monitor Sandbox Count
Best Practices
- Use appropriate page sizes: Choose a
page_sizethat balances between too many requests and too much data per request - Cache pagination metadata: The
total_itemsandtotal_pagesvalues help you plan pagination without extra requests - Handle empty results: Always check if
dataarray is empty before processing - Respect rate limits: When iterating through pages, consider adding delays between requests if needed
- Filter client-side: Use client-side filtering for status or other properties rather than making multiple API calls