Single Collection
GET
/collections/{collection_uid}
Collections
uid
).Requires API Key as X-Api-Key
request header orapikey
URL query parameter.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.getpostman.com/collections/'
Response Response Example
{
"collection": {
"info": {
"_postman_id": "f2e66c2e-5297-e4a5-739e-20cbb90900e3",
"description": "This is a sample collection that makes a tiny request to Postman Echo service to get the list of request headers sent by a HTTP client.",
"name": "Sample Collection",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"event": [
{
"listen": "test",
"script": {
"exec": "var responseJSON;\ntry {\n tests[\"Body contains headers\"] = responseBody.has(\"headers\");\n responseJSON = JSON.parse(responseBody);\n tests[\"Header contains host\"] = \"host\" in responseJSON.headers;\n tests[\"Header contains test parameter sent as part of request header\"] = \"my-sample-header\" in responseJSON.headers;\n}\ncatch (e) { }\n\n\n\n",
"type": "text/javascript"
}
}
],
"id": "82ee981b-e19f-962a-401e-ea34ebfb4848",
"name": "Request Headers",
"request": {
"body": {
"formdata": [],
"mode": "formdata"
},
"description": "",
"header": [
{
"description": "",
"key": "my-sample-header",
"value": "Lorem ipsum dolor sit amet"
}
],
"method": "GET",
"url": "https://echo.getpostman.com/headers"
},
"response": []
}
],
"variables": []
}
}
Request
Path Params
collection_uid
string
required
Responses
Modified at 2023-08-15 05:41:03