# Create a new environment. **POST /v1/Services/{ServiceSid}/Environments** Create a new environment. Represents a deployed build of a given set of Functions and/or Assets at a specific URL. ## Servers - https://serverless.twilio.com: https://serverless.twilio.com () ## Authentication methods - Account sid auth token ## Parameters ### Path parameters - **ServiceSid** (string) The SID of the Service to create the Environment resource under. ### Body: application/x-www-form-urlencoded (object) - **UniqueName** (string) A user-defined string that uniquely identifies the Environment resource. It can be a maximum of 100 characters. - **DomainSuffix** (string) A URL-friendly name that represents the environment and forms part of the domain name. It can be a maximum of 16 characters. ## Responses ### 201 Created #### Headers - **Access-Control-Allow-Origin** (string) Specify the origin(s) allowed to access the resource - **Access-Control-Allow-Methods** (string) Specify the HTTP methods allowed when accessing the resource - **Access-Control-Allow-Headers** (string) Specify the headers allowed when accessing the resource - **Access-Control-Allow-Credentials** (boolean) Indicates whether the browser should include credentials - **Access-Control-Expose-Headers** (string) Headers exposed to the client #### Body: application/json (object) - **sid** (string | null) The unique string that we created to identify the Environment resource. - **account_sid** (string | null) The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Environment resource. - **service_sid** (string | null) The SID of the Service that the Environment resource is associated with. - **build_sid** (string | null) The SID of the build deployed in the environment. - **unique_name** (string | null) A user-defined string that uniquely identifies the Environment resource. - **domain_suffix** (string | null) A URL-friendly name that represents the environment and forms part of the domain name. - **domain_name** (string | null) 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) | null) 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) | null) 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) | null) The absolute URL of the Environment resource. - **links** (object(uri-map) | null) The URLs of the Environment resource's nested resources. [Powered by Bump.sh](https://bump.sh)