Skip to main content
GET
List Environments
Every request requires ?beta=true.

Authorizations

X-Api-Key
string
header
default:sk-ant-local-default
required

OMA workspace API key.

Headers

anthropic-beta
string

Optional header to specify the beta version(s) you want to use.

To use multiple betas, use a comma separated list like beta1,beta2 or specify the header multiple times for each beta.

anthropic-version
string

The version of the OMA API you want to use.

Read more about versioning and our version history here.

Query Parameters

beta
enum<boolean>
required

Selects the beta API contract for this endpoint. Must be true.

Available options:
true
limit
integer
default:20

Maximum number of environments to return

Required range: 1 <= x <= 1000
page
string | null

Opaque cursor from previous response for pagination. Pass the next_page value from the previous response.

include_archived
boolean
default:false

Include archived environments in the response

Response

Successful Response

Response when listing environments.

This response model uses opaque cursor-based pagination. Use the page query parameter with the value from next_page to fetch the next page.

data
Environment · object[]
required

List of environments.

next_page
string | null
required

Token for fetching the next page of results. If null, there are no more results available. Pass this value to the page parameter in the next request.

Example:

"page_MjAyNS0wNS0xNFQwMDowMDowMFo="