> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://learning.postman.com/llms.txt.

# Create a system environment

POST https://api.postman.com/api-catalog/system-environments
Content-Type: application/json

Creates a system environment for the authenticated team.

Reference: https://learning.postman.com/api-docs/api-reference/api-catalog/create-api-catalog-system-environment

## Authentication

- `x-api-key` header (required)

## Servers

- `https://api.postman.com` (https://api.postman.com, default)
- `https://api.eu.postman.com` (https://api.eu.postman.com)

## Request

### Body (application/json)

- `name` (string, required) — The system environment's name. This value must be unique within the team.
- `color` (string, required) — A six-digit hex color code.
- `label` (string, optional) — A lowercase, terminal-friendly identifier for the system environment. Accepts only alphanumeric characters, hyphens, and underscores.
- `description` (string, optional) — A description of the system environment. To remove a description, pass this value as an empty string.
- `isProduction` (boolean, optional, default: false) — If true, the system environment is a production environment.

## Response

### 201

Successful Response

- `data` (object, required) — Information about the system environment.
  - `id` (string, required) — The system environment's ID.
  - `name` (string, required) — The system environment's name.
  - `label` (string, required) — A lowercase, terminal-friendly identifier for the system environment.
  - `color` (string, required) — A six-digit hex color code.
  - `description` (string, required) — A description of the system environment.
  - `isProduction` (boolean, required) — If true, the system environment is a production environment.
  - `createdAt` (datetime, required) — The date and time at which the system environment was created.
  - `updatedAt` (datetime, required) — The date and time at which the system environment was last updated.

## Examples

### Successful Response

**Request**

```json
undefined
```

**Response**

```json
{
  "data": {
    "id": "019d3dca-5e16-7bba-9f13-7abf00a6a443",
    "name": "ALPHA",
    "label": "alpha",
    "color": "#00FF00",
    "description": "This is the ALPHA environment",
    "isProduction": false,
    "createdAt": "2026-03-30T08:09:25.781Z",
    "updatedAt": "2026-03-30T08:09:25.781Z"
  }
}
```

**SDK Code**

```python Successful Response
import requests

url = "https://api.postman.com/api-catalog/system-environments"

headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, headers=headers)

print(response.json())
```

```javascript Successful Response
const url = 'https://api.postman.com/api-catalog/system-environments';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: undefined
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Successful Response
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/api-catalog/system-environments"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Successful Response
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/api-catalog/system-environments")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'

response = http.request(request)
puts response.read_body
```

```java Successful Response
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.postman.com/api-catalog/system-environments")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .asString();
```

```php Successful Response
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.postman.com/api-catalog/system-environments', [
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Successful Response
using RestSharp;

var client = new RestClient("https://api.postman.com/api-catalog/system-environments");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
IRestResponse response = client.Execute(request);
```

```swift Successful Response
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/api-catalog/system-environments")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### Create System Environment

**Request**

```json
{
  "name": "ALPHA",
  "color": "#00FF00",
  "label": "alpha",
  "description": "This is the ALPHA environment",
  "isProduction": false
}
```

**Response**

```json
{
  "data": {
    "id": "019d3dca-5e16-7bba-9f13-7abf00a6a443",
    "name": "ALPHA",
    "label": "alpha",
    "color": "#00FF00",
    "description": "This is the ALPHA environment",
    "isProduction": false,
    "createdAt": "2026-03-30T08:09:25.781Z",
    "updatedAt": "2026-03-30T08:09:25.781Z"
  }
}
```

**SDK Code**

```python Create System Environment
import requests

url = "https://api.postman.com/api-catalog/system-environments"

payload = {
    "name": "ALPHA",
    "color": "#00FF00",
    "label": "alpha",
    "description": "This is the ALPHA environment",
    "isProduction": False
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript Create System Environment
const url = 'https://api.postman.com/api-catalog/system-environments';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"name":"ALPHA","color":"#00FF00","label":"alpha","description":"This is the ALPHA environment","isProduction":false}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Create System Environment
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/api-catalog/system-environments"

	payload := strings.NewReader("{\n  \"name\": \"ALPHA\",\n  \"color\": \"#00FF00\",\n  \"label\": \"alpha\",\n  \"description\": \"This is the ALPHA environment\",\n  \"isProduction\": false\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Create System Environment
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/api-catalog/system-environments")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"name\": \"ALPHA\",\n  \"color\": \"#00FF00\",\n  \"label\": \"alpha\",\n  \"description\": \"This is the ALPHA environment\",\n  \"isProduction\": false\n}"

response = http.request(request)
puts response.read_body
```

```java Create System Environment
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.postman.com/api-catalog/system-environments")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"name\": \"ALPHA\",\n  \"color\": \"#00FF00\",\n  \"label\": \"alpha\",\n  \"description\": \"This is the ALPHA environment\",\n  \"isProduction\": false\n}")
  .asString();
```

```php Create System Environment
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.postman.com/api-catalog/system-environments', [
  'body' => '{
  "name": "ALPHA",
  "color": "#00FF00",
  "label": "alpha",
  "description": "This is the ALPHA environment",
  "isProduction": false
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Create System Environment
using RestSharp;

var client = new RestClient("https://api.postman.com/api-catalog/system-environments");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"ALPHA\",\n  \"color\": \"#00FF00\",\n  \"label\": \"alpha\",\n  \"description\": \"This is the ALPHA environment\",\n  \"isProduction\": false\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Create System Environment
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "name": "ALPHA",
  "color": "#00FF00",
  "label": "alpha",
  "description": "This is the ALPHA environment",
  "isProduction": false
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/api-catalog/system-environments")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```