Logo
30 Days of Postman API Documentation

All Mocks

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

This endpoint fetches all the mocks that you have created.

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

{ "mocks": [ { "id": "e782b64e-406b-4a6c-8fe9-9ebe84aeb706", "owner": "1686168", "uid": "1686168-e782b64e-406b-4a6c-8fe9-9ebe84aeb706", "collection": "1686168-39fee52f-b806-3ffa-1173-00a6f5b183dc", "environment": "1686168-2b90cdd8-e9ac-4086-91c2-bc4cad659511", "mockUrl": "https://e782b64e-406b-4a6c-8fe9-9ebe84aeb706.mock.pstmn.io", "name": "mock1", "config": { "headers": [], "matchBody": false, "matchQueryParams": true, "matchWildcards": true, "delay": null }, "createdAt": "2020-12-15T06:44:37.000Z", "updatedAt": "2020-12-15T06:44:37.000Z", "isPublic": false }, { "id": "8f9d4b95-780d-455d-af38-772277bc9393", "owner": "1686168", "uid": "1686168-8f9d4b95-780d-455d-af38-772277bc9393", "collection": "1686168-37eeb72f-5d3e-48b4-8022-6b9cca6d2664", "mockUrl": "https://8f9d4b95-780d-455d-af38-772277bc93936.mock.pstmn.io", "name": "mock2", "config": { "headers": [], "matchBody": false, "matchQueryParams": true, "matchWildcards": true, "delay": null }, "createdAt": "2020-11-15T06:44:37.000Z", "updatedAt": "2020-12-15T06:48:37.000Z", "isPublic": true } ] }



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

ENDPOINTS