Logo
30 Days of Postman exercises API Documentation

All Environments

GET https://api.getpostman.com/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.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "environments": [ { "id": "5daabc50-8451-43f6-922d-96b403b4f28e", "name": "Users API (prod)", "createdAt": "2020-09-23T14:31:18.000Z", "updatedAt": "2020-12-04T14:13:40.000Z", "owner": "10016724", "uid": "10016724-5daabc50-8451-43f6-922d-96b403b4f28e", "isPublic": false }, { "id": "7d786cc8-142b-4d62-b5a5-872afc37ad16", "name": "Environment Scanner", "createdAt": "2020-02-04T19:34:23.000Z", "updatedAt": "2020-08-12T13:34:06.000Z", "owner": "10016724", "uid": "10016724-7d786cc8-142b-4d62-b5a5-872afc37ad16", "isPublic": false } ] }



Curl
curl -X GET 'https://api.getpostman.com/environments'

ENDPOINTS