Logo
15_Days_of_Postman_-_for_testers_IvanKo API Documentation

Get a request

GET {{baseUrl}}/collections/{{collectionId}}/requests/{{requestId}}

Gets information about a request in a collection.

 

Body PARAM

Key Datatype Required Description 
ids
string If true, returns only the request 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 request's contents.



HEADERS

Key Datatype Required Description 




RESPONSES

status OK

{ "model_id": "c82dd02c-4870-4907-8fcb-593a876cf05b", "meta": { "model": "request", "populate": false, "changeset": false, "action": "find" }, "data": { "owner": "12345678", "lastUpdatedBy": "12345678", "lastRevision": 32206434799, "folder": null, "collection": "12345678-12ece9e1-2abf-4edc-8e34-de66e74114d2", "id": "12345678-c82dd02c-4870-4907-8fcb-593a876cf05b", "name": "Example GET Request", "dataMode": null, "data": null, "auth": null, "events": null, "rawModeData": null, "descriptionFormat": null, "description": "This is an example GET request.", "variables": null, "headers": null, "method": "GET", "pathVariables": {}, "url": "https://postman-echo.com/get", "preRequestScript": null, "tests": "var data = JSON.parse(responseBody);", "currentHelper": null, "helperAttributes": null, "queryParams": [ { "key": "id", "value": "{{id}}", "equals": true, "description": "Optional. The user's ID.", "enabled": true } ], "headerData": [], "pathVariableData": [], "protocolProfileBehavior": { "disableBodyPruning": true }, "dataDisabled": false, "responses_order": [], "createdAt": "2023-08-22T12:52:01.000Z", "updatedAt": "2023-08-22T12:52:11.000Z" } }



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

ENDPOINTS