Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

Get a response

GET {{baseUrl}}/collections/{{collectionId}}/responses/{{responseId}}

Gets information about a response in a collection.

 

Body PARAM

Key Datatype Required Description 
ids
string If true, returns only the response properties that contain ID values.
uid
string If true, returns all IDs in UID format (`userId`-`id`).
populate
string If true, returns all of a response's contents.



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "model_id": "cc364734-7dfd-4bfc-897d-be763dcdbb07", "meta": { "model": "response", "populate": false, "changeset": false, "action": "find" }, "data": { "owner": "12345678", "lastUpdatedBy": "12345678", "lastRevision": 32528384460, "request": "12345678-c82dd02c-4870-4907-8fcb-593a876cf05b", "id": "12345678-cc364734-7dfd-4bfc-897d-be763dcdbb07", "name": "Not Found", "status": null, "responseCode": { "code": 404, "name": "Not Found" }, "time": null, "headers": [ { "key": "Content-Type", "name": "Content-Type", "value": "application/json", "description": "", "type": "text" } ], "cookies": null, "mime": null, "text": "{\n \"title\": \"Not Found\",\n \"detail\": \"Requested API does not exist\",\n \"type\": \"about:blank\"\n}", "language": "json", "rawDataType": null, "requestObject": "{\"data\":null,\"dataMode\":\"raw\",\"dataOptions\":{\"raw\":{\"language\":\"json\"}},\"headerData\":[{\"key\":\"Accept\",\"value\":\"application/vnd.example.v1+json\",\"description\":\"\",\"type\":\"text\",\"enabled\":true}],\"method\":\"GET\",\"pathVariableData\":[],\"queryParams\":[{\"key\":\"id\",\"value\":\"test-api\",\"equals\":true,\"description\":null,\"enabled\":true}],\"url\":\"https://postman-echo.com/v1/request?id=test-api\",\"headers\":\"Accept: application/vnd.example.v1+json\\n\",\"pathVariables\":{},\"protocolProfileBehavior\":{\"disableBodyPruning\":true},\"rawModeData\":\"\",\"graphqlModeData\":{}}", "createdAt": "2023-08-22T12:53:12.000Z", "updatedAt": "2023-09-12T18:23:42.000Z" } }



Curl
curl -X GET 'https://api.getpostman.com/collections/collectionId/responses/responseId?ids=<boolean>&uid=<boolean>&populate=<boolean>'

ENDPOINTS