Skip to navigation

List sandboxes

Returns the sandboxes of the key’s project, newest first, including ones that have ended. Filter by status and by labels. This call does not reset any sandbox’s idle timer, so it is the right call for a dashboard or a poller.

Scope: sandboxes.

Authentication

AuthorizationBearer

A Meadow API key, sent as Authorization: Bearer mdw_.... The header x-api-key: mdw_... is accepted in its place.

Query parameters

statusenumOptional
Return only sandboxes with this status. An unknown value returns 400.
Allowed values:
labellist of stringsOptional

Return only sandboxes that carry this label, written key=value. Repeat the parameter to require several labels. An entry without = returns 400.

limitintegerOptional<=200Defaults to 50
Page size, from 1 to 200. A value outside that range returns 400.
cursorstringOptional

The next_cursor of the previous page. Leave out for the first page. A value Meadow did not issue returns 400.

Response headers

x-request-idstringOptional

Meadow’s id for this request, req_ and 24 hex characters. Every response carries it, including errors, streams and unknown routes. Every error in the Error schema repeats it as request_id. Quote it when you report a problem.

Response

One page of sandboxes.
datalist of objects
The sandboxes on this page, newest first.
objectenumOptional

Always list, as on OpenAI and Stripe.

Allowed values:
has_morebooleanOptional

True when another page follows. Then next_cursor is set.

next_cursorstring or nullOptional

Pass as cursor to get the next page. null on the last page.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error