---
title: "Create a new Variable."
method: POST
path: "/v1/Services/{ServiceSid}/Environments/{EnvironmentSid}/Variables"
tags: ["ServerlessV1Variable"]
---

# Create a new Variable.

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

Create a new Variable.

## Path parameters

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

## Response `201`

Created

- 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.

---

[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)
