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

# Retrieve a list of all Variables.

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

Retrieve a list of all Variables.

## Path parameters

- `ServiceSid` string, required
- `EnvironmentSid` string, required

## Query parameters

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

## Response `200`

OK

- object
  - `variables` ServerlessV1ServiceEnvironmentVariable[]
    - `sid` string, nullable — The unique string that we created to identify the Variable resource.
    - `account_sid` string, nullable — The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Variable resource.
    - `service_sid` string, nullable — The SID of the Service that the Variable resource is associated with.
    - `environment_sid` string, nullable — The SID of the Environment in which the Variable exists.
    - `key` string, nullable — A string by which the Variable resource can be referenced.
    - `value` string, nullable — A string that contains the actual value of the Variable.
    - `date_created` string, date-time, nullable — The date and time in GMT when the Variable 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 Variable 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 Variable resource.
  - `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/versions/594d94b79d49/schema)
