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)- choices:
- all
- hidden
- visible
The visibility of the environments to filter by. Defaults to
visible
.
Scopes
You need to authenticate via bearer auth token.
<auth_token>
requires one of the following scopes:org:admin
org:read
org: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"
}
]