---
title: "Retrieve a list of all environments."
method: GET
path: "/v1/Services/{ServiceSid}/Environments"
tags: ["ServerlessV1Environment"]
---

# Retrieve a list of all environments.

`GET /v1/Services/{ServiceSid}/Environments`

Retrieve a list of all environments.

## Path parameters

- `ServiceSid` string, required

## Query parameters

- `PageSize` integer
- `Page` integer
- `PageToken` string

## Response `200`

OK

- object
  - `environments` ServerlessV1ServiceEnvironment[]
    - `sid` string, nullable — The unique string that we created to identify the Environment resource.
    - `account_sid` string, nullable — The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Environment resource.
    - `service_sid` string, nullable — The SID of the Service that the Environment resource is associated with.
    - `build_sid` string, nullable — The SID of the build deployed in the environment.
    - `unique_name` string, nullable — A user-defined string that uniquely identifies the Environment resource.
    - `domain_suffix` string, nullable — A URL-friendly name that represents the environment and forms part of the domain name.
    - `domain_name` string, nullable — The domain name for all Functions and Assets deployed in the Environment, using the Service unique name, a randomly-generated Service suffix, and an optional Environment domain suffix.
    - `date_created` string, date-time, nullable — The date and time in GMT when the Environment resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    - `date_updated` string, date-time, nullable — The date and time in GMT when the Environment resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    - `url` string, uri, nullable — The absolute URL of the Environment resource.
    - `links` object, nullable — The URLs of the Environment resource's nested resources.
  - `meta` object
    - `first_page_url` string, uri
    - `key` string
    - `next_page_url` string, uri, nullable
    - `page` integer
    - `page_size` integer
    - `previous_page_url` string, uri, nullable
    - `url` string, uri

---

[API](https://skmtc.net/twilio/apis/serverless-v1.md) · [All operations](https://skmtc.net/twilio/apis/serverless-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/twilio/serverless-v1/revisions/74f59534eb42/schema)
