Postman API
  1. Environments
Postman API
  • API
    • Get all APIs
      GET
    • Create API
      POST
    • Delete an API
      DELETE
    • Single API
      GET
    • Update an API
      PUT
    • Get All API Versions
      GET
    • Create API Version
      POST
    • Delete an API Version
      DELETE
    • Get an API Version
      GET
    • Update an API Version
      PUT
    • Get contract test relations
      GET
    • Get documentation relations
      GET
    • Get environment relations
      GET
    • Get integration test relations
      GET
    • Get monitor relations
      GET
    • Get linked relations
      GET
    • Create relations
      POST
    • Create Schema
      POST
    • Get Schema
      GET
    • Update Schema
      PUT
    • Create collection from schema
      POST
    • Get test suite relations
      GET
    • Sync relations with schema
      PUT
  • Collections
    • All Collections
    • Create Collection
    • Create a Fork
    • Merge a Fork
    • Delete Collection
    • Single Collection
    • Update Collection
  • Environments
    • All Environments
      GET
    • Create Environment
      POST
    • Delete Environment
      DELETE
    • Single Environment
      GET
    • Update Environment
      PUT
  • Import
    • Import exported data
    • Import external API specification
  • User
    • API Key Owner
  • Mocks
    • All Mocks
    • Create Mock
    • Delete Mock
    • Single Mock
    • Update Mock
    • Publish Mock
    • Unpublish Mock
  • Monitors
    • All Monitors
    • Create Monitor
    • Delete Monitor
    • Single Monitor
    • Update Monitor
    • Run a Monitor
  • Webhooks
    • Create Webhook
  • Workspaces
    • All workspaces
    • Create Workspace
    • Delete Workspace
    • Single workspace
    • Update Workspace
  1. Environments

All Environments

GET
/environments
Environments
The /environments endpoint returns a list of all environments that belong to you..
The response contains an array of environments' information containing the name, id, owner and uid of each environment.
Requires API Key as X-Api-Key request header or apikey URL query parameter.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.getpostman.com/environments'
Response Response Example
{
  "environments": [
    {
      "id": "357668d2-84f1-2264-438b-113095359f80",
      "name": "Postman Cloud API",
      "owner": "631643",
      "uid": "631643-357668d2-84f1-2264-438b-113095359f80"
    },
    {
      "id": "84a119b6-f4b1-9120-5f11-a73b17818d70",
      "name": "Postman Cloud API.template",
      "owner": "631643",
      "uid": "631643-84a119b6-f4b1-9120-5f11-a73b17818d70"
    }
  ]
}

Request

None

Responses

🟢200Valid Response
application/json
Body
environments
array [object {4}] 
optional
id
string 
optional
Example:
357668d2-84f1-2264-438b-113095359f80
name
string 
optional
Example:
Postman Cloud API
owner
string 
optional
Example:
631643
uid
string 
optional
Example:
631643-357668d2-84f1-2264-438b-113095359f80
Previous
Update Collection
Next
Create Environment
Built with