Logo
30 days challenge API Documentation

All Server Stubs

GET https://api.getpostman.com/mocks/{{mock_uid}}/server-responses

This endpoint fetches all the server responses that you have created on a mock server.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

[ { "id": "7a2cd600-cf51-4e8a-b802-5e458828f4e5", "name": "Internal server error", "statusCode": 500, "createdAt": "2022-05-02T09:38:04.000Z", "updatedAt": "2022-05-02T09:38:04.000Z", "createdBy": "1", "updatedBy": "1" }, { "id": "bf6bbf95-bebb-44ba-8edb-1f096f905774", "name": "Service Unavailable", "statusCode": 503, "createdAt": "2022-05-02T09:38:04.000Z", "updatedAt": "2022-05-02T09:38:04.000Z", "createdBy": "1", "updatedBy": "1" } ]



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

ENDPOINTS