Logo
30-day challenge API Documentation

Get all mock servers

GET https://api.getpostman.com/mocks

Gets all mock servers.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "mocks": [ { "id": "e3d951bf-873f-49ac-a658-b2dcb91d3289", "owner": "12345678", "uid": "12345678-e3d951bf-873f-49ac-a658-b2dcb91d3289", "collection": "12345678-12ece9e1-2abf-4edc-8e34-de66e74114d2", "mockUrl": "https://e3d951bf-873f-49ac-a658-b2dcb91d3289.mock.pstmn.io", "name": "Test Mock", "config": { "headers": [], "matchBody": false, "matchQueryParams": true, "matchWildcards": true, "delay": { "type": "fixed", "duration": 140000 }, "serverResponseId": null }, "createdAt": "2022-07-25T20:54:30.000Z", "updatedAt": "2022-07-25T20:54:30.000Z", "isPublic": false, "environment": "12345678-5daabc50-8451-43f6-922d-96b403b4f28e" } ] }



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

ENDPOINTS