Number of APIs: 5
GET https://api.getpostman.com/environments
The The response contains an array of environments' information containing the Requires API Key as /environments
endpoint returns a list of all environments that belong to you..name
, id
, owner
and uid
of each environment.
X-Api-Key
request header or apikey
URL query parameter.
GET https://api.getpostman.com/environments/{{environment_uid}}
Access the contents of an environment that is accessible to you using its unique id ( Requires API Key as uid
).
X-Api-Key
request header or apikey
URL query parameter.
POST https://api.getpostman.com/environments
A sample body is added to the request that conforms to the following JSON schema: On successful creation of the environment, the API returns the environment name and You can also specify the context of a workspace to create an environment in directly by passing the Requires API Key as {
"type": "object",
"properties": {
"environment": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 254,
"minLength": 1
},
"values": {
"type": "array",
"maxItems": 100,
"additionalItems": false,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 254
"minLength": 1
},
"value": { "type": "string" },
"enabled": { "type": "boolean" }
},
"required": ["key", "value"]
}
}
},
"required": ["name"]
}
},
"required": ["environment"]
}
id
.workspace
as a query param.
X-Api-Key
request header or apikey
URL query parameter.
PUT https://api.getpostman.com/environments/{{environment_uid}}
This endpoint replaces an existing environment. A sample body is added to the request that conforms to the following JSON schema: On successful updation of the environment, the API returns the environment name and Requires API Key as {
"type": "object",
"properties": {
"environment": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 254,
"minLength": 1
},
"values": {
"type": "array",
"maxItems": 100,
"additionalItems": false,
"items": {
"type": "object",
"properties": {
"key": {
"type": "string",
"maxLength": 254,
"minLength": 1
},
"value": {
"type": "string",
"maxLength": 254,
"minLength": 1
},
"type": {
"type": "string"
},
"enabled": {
"type": "boolean"
}
},
"required": [
"key",
"value"
]
}
}
}
}
},
"required": [
"environment"
]
}
id
.
X-Api-Key
request header or apikey
URL query parameter.
DELETE https://api.getpostman.com/environments/{{environment_uid}}
This endpoint allows you to delete a single environment based on an environment's unique Requires API Key as uid
.
X-Api-Key
request header or apikey
URL query parameter.
ENDPOINTS