List an Organization's Environments
GET /api/0/organizations/{organization_id_or_slug}/environments/
Lists an organization's environments.
Path Parameters
organization_id_or_slug(string)REQUIREDThe ID or slug of the organization the resource belongs to.
Query Parameters:
visibility(string)The visibility of the environments to filter by. The options are:
all,hidden,visible. Defaults tovisible.
Scopes
You need to authenticate via bearer auth token.
<auth_token> requires one of the following scopes:org:adminorg:readorg:write
curl https://sentry.io/api/0/organizations/{organization_id_or_slug}/environments/ \
-H 'Authorization: Bearer <auth_token>'RESPONSESCHEMA
[
{
"id": 1,
"name": "Production"
},
{
"id": 2,
"name": "Staging"
}
]