> This page is for Postman API Docs.

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://learning.postman.com/llms.txt.

# Create a response

POST https://api.postman.com/collections/{collectionId}/responses
Content-Type: application/json

Creates a request response in a collection. For a complete list of request body properties, refer to the **Response** entry in the [Postman Collection Format documentation](https://schema.postman.com/collection/json/v2.1.0/draft-07/docs/index.html).

**Note:**

It is recommended that you pass the `name` property in the request body. If you do not, the system uses a null value. As a result, this creates a response with a blank name.


Reference: https://learning.postman.com/api-docs/api-reference/collection-items/create-collection-response

## Authentication

- `x-api-key` header (required) — API Key authentication via header

## Servers

- `https://api.postman.com` (https://api.postman.com, default)
- `https://api.eu.postman.com` (https://api.eu.postman.com)

## Request

### Path parameters

- `collectionId` (string, required) — The collection's ID.

### Query parameters

- `request` (string, required) — The parent request's ID.

### Body (application/json)

This endpoint expects a createCollectionResponse.

- `name` (string, optional) — The response's name. It is recommended that you pass the `name` property in the request body. If you do not, the system uses a null value. As a result, this creates a response with a blank name.
- `description` (string, optional, nullable) — The response's description.
- `url` (string, optional, nullable) — The associated request's URL.
- `method` (enum, optional) — The associated request's HTTP method.
  - Allowed values: `GET`, `PUT`, `POST`, `PATCH`, `DELETE`, `COPY`, `HEAD`, `OPTIONS`, `LINK`, `UNLINK`, `PURGE`, `LOCK`, `UNLOCK`, `PROPFIND`, `VIEW`
- `headers` (list of header-2, optional) — The response's headers.
- `dataMode` (enum, optional) — The associated request body's data mode.
  - Allowed values: `raw`, `urlencoded`, `formdata`, `binary`, `graphql`
- `rawModeData` (string, optional, nullable) — The associated request body's raw mode data.
- `dataOptions` (request-data-options, optional) — Additional options for the associated request body data.
- `responseCode` (CreateCollectionResponseResponseCode, optional) — The response's HTTP response code information.
- `status` (string, optional, nullable) — The response's HTTP status text.
- `time` (string, optional) — The time taken by the request to complete, in milliseconds.
- `cookies` (string, optional, nullable) — The response's cookie data.
- `mime` (string, optional, nullable) — The response's MIME type.
- `text` (string, optional) — The raw text of the response body.
- `language` (string, optional) — The response body's language type.
- `rawDataType` (string, optional, nullable) — The response's raw data type.
- `requestObject` (string, optional) — A JSON-stringified representation of the associated request.

## Response

### 200

Successful Response

- `data` (CreateCollectionResponseResponseData, optional) — Information about the response. For a complete list of properties, refer to the **Response** entry in the [Postman Collection Format documentation](https://schema.postman.com/collection/json/v2.1.0/draft-07/docs/index.html).
- `meta` (map from string to any, optional) — A Postman-specific response that contains information about the internal performed operation.
- `model_id` (string, optional) — The response's ID.
- `revision` (double, optional) — An internal revision ID. Its value increments each time the resource changes. You can use this ID to track whether there were changes since the last time you fetched the resource.

## Errors

### 400 Bad Request Error

Bad Request

- `error` (CommonErrorNameMessageDetailsError, optional) — Information about the error.

### 401 Unauthorized Error

Unauthorized

- `error` (CommonErrorNameMessageDetailsError, optional) — Information about the error.

### 500 Internal Server Error

Internal Server Error

- `CreateCollectionResponseRequestInternalServerError`
  - Error (Type, Title, Detail): commonErrorTypeTitleDetail
  - Error (Type, Title, Detail, Status): commonErrorTypeTitleDetailStatus
  - Error (Name, Message): commonErrorNameMessage

## Types

### header-2

Information about the header.

- `key` (string, required) — The header's key, such as `Content-Type` or `X-Custom-Header`.
- `value` (string, required) — The header key's value.
- `description` (string, optional, nullable) — The header's description.

### request-data-options

Additional configurations and options set for the request body's various data modes.

- `raw` (RequestDataOptionsRaw, optional) — Options for the `raw` data mode.
- `urlencoded` (RequestDataOptionsUrlencoded, optional) — Options for the `urlencoded` data mode.
- `params` (RequestDataOptionsParams, optional) — Options for the `params` data mode.
- `binary` (RequestDataOptionsBinary, optional) — Options for the `binary` data mode.
- `graphql` (RequestDataOptionsGraphql, optional) — Options for the `graphql` data mode.

### CreateCollectionResponseResponseCode

The response's HTTP response code information.

- `code` (double, optional) — The response's HTTP response status code.
- `name` (string, optional) — The name of the status code.

### CreateCollectionResponseResponseData

Information about the response. For a complete list of properties, refer to the **Response** entry in the [Postman Collection Format documentation](https://schema.postman.com/collection/json/v2.1.0/draft-07/docs/index.html).

- `id` (string, optional) — The response's ID.
- `owner` (string, optional) — The user ID of the response's owner.
- `request` (string, optional) — The request ID of the response's associated request.
- `createdAt` (datetime, optional) — The date and time at which the response was created.
- `updatedAt` (datetime, optional) — The date and time at which the response was last updated.
- `lastUpdatedBy` (string, optional) — The user ID of the user who last updated the response.

### CommonErrorNameMessageDetailsError

Information about the error.

- `name` (string, optional) — The error name.
- `message` (string, optional) — The error message.
- `details` (CommonErrorNameMessageDetailsErrorDetails, optional) — Information about the error.

### commonErrorTypeTitleDetail

- `type` (string, optional) — The type of error.
- `title` (string, optional) — A short summary of the problem.
- `detail` (CommonErrorTypeTitleDetailDetail, optional) — Information about the error.

### commonErrorTypeTitleDetailStatus

- `type` (CommonErrorTypeTitleDetailStatusType, optional) — The type of error.
- `title` (string, optional) — A short summary of the problem.
- `detail` (string, optional) — Information about the error.
- `status` (integer, optional) — The error's HTTP status code.

### commonErrorNameMessage

- `error` (CommonErrorNameMessageError, optional) — Information about the error.

### RequestDataOptionsRaw

Options for the `raw` data mode.

- `language` (string, optional) — The raw mode data's language type.

### RequestDataOptionsUrlencoded

Options for the `urlencoded` data mode.

### RequestDataOptionsParams

Options for the `params` data mode.

### RequestDataOptionsBinary

Options for the `binary` data mode.

### RequestDataOptionsGraphql

Options for the `graphql` data mode.

### CommonErrorNameMessageDetailsErrorDetails

Information about the error.

- map from string to any
- list of string

### CommonErrorTypeTitleDetailDetail

Information about the error.

- string
- map from string to any

### CommonErrorTypeTitleDetailStatusType

The type of error.

- string
- string

### CommonErrorNameMessageError

Information about the error.

- `name` (string, optional) — The error name.
- `message` (string, optional) — The error message.

## Examples

### GET Response

**Request**

```json
{
  "name": "Example GET Response",
  "headers": [
    {
      "key": "content-type",
      "value": "application/json; charset=utf-8"
    },
    {
      "key": "content-length",
      "value": "370"
    },
    {
      "key": "etag",
      "value": "W/\"172-GDbDAS2r5X4Ypw2ia9AUhtyIyhk\""
    },
    {
      "key": "set-cookie",
      "value": "sails.sid=s%3A23szD8Az12345Vs7dMzU4hjUHqqA1LeX.x8Jbnx4BEVHgzajknZdH%2BqxW7Pctx47m%2FlduU5Q4TAI; Path=/ HttpOnly"
    }
  ],
  "responseCode": {
    "code": 200,
    "name": "OK"
  },
  "text": "{\n  \"args\": {\n    \"param\": \"value\"\n  },\n  \"headers\": {\n    \"x-forwarded-proto\": \"https\",\n    \"x-forwarded-port\": \"443\",\n    \"host\": \"postman-echo.com\",\n    \"x-amzn-trace-id\": \"Root=1-64f9cd12-62f18f3a048796d345508073\",\n    \"user-agent\": \"curl/7.88.1\",\n    \"accept\": \"*/*\",\n    \"content-type\": \"application/json\"\n  },\n  \"url\": \"https://postman-echo.com/get?param=value\"\n}\n",
  "language": "json",
  "requestObject": "{\n  \"name\": \"Request\",\n  \"description\": \"\",\n  \"url\": \"https://postman-echo.com/get?param=value\",\n  \"method\": \"GET\",\n  \"headers\": [\n    {\n      \"key\": \"Host\",\n      \"value\": \"postman-echo.com\"\n    },\n    {\n      \"key\": \"user-agent\",\n      \"value\": \"curl/7.88.1\"\n    },\n    {\n      \"key\": \"accept\",\n      \"value\": \"*/*\"\n    },\n    {\n      \"key\": \"content-type\",\n      \"value\": \"application/json\"\n    }\n  ],\n  \"dataMode\": \"raw\",\n  \"rawModeData\": null,\n  \"dataOptions\": {\n    \"raw\": {\n      \"language\": \"json\"\n    }\n  }\n}"
}
```

**Response**

```json
{
  "data": {
    "id": "cc364734-7dfd-4bfc-897d-be763dcdbb07",
    "owner": "12345678",
    "request": "c82dd02c-4870-4907-8fcb-593a876cf05b",
    "createdAt": "2023-09-07T13:33:18.700Z",
    "updatedAt": "2023-09-07T13:33:18.700Z",
    "lastUpdatedBy": "12345678",
    "headers": [
      {
        "key": "content-type",
        "value": "application/json; charset=utf-8"
      },
      {
        "key": "content-length",
        "value": "370"
      },
      {
        "key": "etag",
        "value": "W/\"172-GDbDAS2r5X4Ypw2ia9AUhtyIyhk\""
      },
      {
        "key": "set-cookie",
        "value": "sails.sid=s%3A23szD8Az12345Vs7dMzU4hjUHqqA1LeX.x8Jbnx4BEVHgzajknZdH%2BqxW7Pctx47m%2FlduU5Q4TAI; Path=/ HttpOnly"
      }
    ],
    "language": "json",
    "name": "Example GET Response",
    "requestObject": "{\n  \"name\": \"Request\",\n  \"description\": \"\",\n  \"url\": \"https://postman-echo.com/get?param=value\",\n  \"method\": \"GET\",\n  \"headers\": [\n    {\n      \"key\": \"Host\",\n      \"value\": \"postman-echo.com\"\n    },\n    {\n      \"key\": \"user-agent\",\n      \"value\": \"curl/7.88.1\"\n    },\n    {\n      \"key\": \"accept\",\n      \"value\": \"*/*\"\n    },\n    {\n      \"key\": \"content-type\",\n      \"value\": \"application/json\"\n    }\n  ],\n  \"dataMode\": \"raw\",\n  \"rawModeData\": null,\n  \"dataOptions\": {\n    \"raw\": {\n      \"language\": \"json\"\n    }\n  }\n}",
    "responseCode": {
      "code": 200,
      "name": "OK"
    },
    "text": "{\n  \"args\": {\n    \"param\": \"value\"\n  },\n  \"headers\": {\n    \"x-forwarded-proto\": \"https\",\n    \"x-forwarded-port\": \"443\",\n    \"host\": \"postman-echo.com\",\n    \"x-amzn-trace-id\": \"Root=1-64f9cd12-62f18f3a048796d345508073\",\n    \"user-agent\": \"curl/7.88.1\",\n    \"accept\": \"*/*\",\n    \"content-type\": \"application/json\"\n  },\n  \"url\": \"https://postman-echo.com/get?param=value\"\n}\n"
  },
  "meta": {
    "action": "create",
    "model": "response"
  },
  "model_id": "cc364734-7dfd-4bfc-897d-be763dcdbb07",
  "revision": 32456338262
}
```

**SDK Code**

```python GET Response
import requests

url = "https://api.postman.com/collections/12ece9e1-2abf-4edc-8e34-de66e74114d2/responses"

querystring = {"request":"c82dd02c-4870-4907-8fcb-593a876cf05b"}

payload = {
    "name": "Example GET Response",
    "headers": [
        {
            "key": "content-type",
            "value": "application/json; charset=utf-8"
        },
        {
            "key": "content-length",
            "value": "370"
        },
        {
            "key": "etag",
            "value": "W/\"172-GDbDAS2r5X4Ypw2ia9AUhtyIyhk\""
        },
        {
            "key": "set-cookie",
            "value": "sails.sid=s%3A23szD8Az12345Vs7dMzU4hjUHqqA1LeX.x8Jbnx4BEVHgzajknZdH%2BqxW7Pctx47m%2FlduU5Q4TAI; Path=/ HttpOnly"
        }
    ],
    "responseCode": {
        "code": 200,
        "name": "OK"
    },
    "text": "{
  \"args\": {
    \"param\": \"value\"
  },
  \"headers\": {
    \"x-forwarded-proto\": \"https\",
    \"x-forwarded-port\": \"443\",
    \"host\": \"postman-echo.com\",
    \"x-amzn-trace-id\": \"Root=1-64f9cd12-62f18f3a048796d345508073\",
    \"user-agent\": \"curl/7.88.1\",
    \"accept\": \"*/*\",
    \"content-type\": \"application/json\"
  },
  \"url\": \"https://postman-echo.com/get?param=value\"
}
",
    "language": "json",
    "requestObject": "{
  \"name\": \"Request\",
  \"description\": \"\",
  \"url\": \"https://postman-echo.com/get?param=value\",
  \"method\": \"GET\",
  \"headers\": [
    {
      \"key\": \"Host\",
      \"value\": \"postman-echo.com\"
    },
    {
      \"key\": \"user-agent\",
      \"value\": \"curl/7.88.1\"
    },
    {
      \"key\": \"accept\",
      \"value\": \"*/*\"
    },
    {
      \"key\": \"content-type\",
      \"value\": \"application/json\"
    }
  ],
  \"dataMode\": \"raw\",
  \"rawModeData\": null,
  \"dataOptions\": {
    \"raw\": {
      \"language\": \"json\"
    }
  }
}"
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
```

```javascript GET Response
const url = 'https://api.postman.com/collections/12ece9e1-2abf-4edc-8e34-de66e74114d2/responses?request=c82dd02c-4870-4907-8fcb-593a876cf05b';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"name":"Example GET Response","headers":[{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"370"},{"key":"etag","value":"W/\"172-GDbDAS2r5X4Ypw2ia9AUhtyIyhk\""},{"key":"set-cookie","value":"sails.sid=s%3A23szD8Az12345Vs7dMzU4hjUHqqA1LeX.x8Jbnx4BEVHgzajknZdH%2BqxW7Pctx47m%2FlduU5Q4TAI; Path=/ HttpOnly"}],"responseCode":{"code":200,"name":"OK"},"text":"{\n  \"args\": {\n    \"param\": \"value\"\n  },\n  \"headers\": {\n    \"x-forwarded-proto\": \"https\",\n    \"x-forwarded-port\": \"443\",\n    \"host\": \"postman-echo.com\",\n    \"x-amzn-trace-id\": \"Root=1-64f9cd12-62f18f3a048796d345508073\",\n    \"user-agent\": \"curl/7.88.1\",\n    \"accept\": \"*/*\",\n    \"content-type\": \"application/json\"\n  },\n  \"url\": \"https://postman-echo.com/get?param=value\"\n}\n","language":"json","requestObject":"{\n  \"name\": \"Request\",\n  \"description\": \"\",\n  \"url\": \"https://postman-echo.com/get?param=value\",\n  \"method\": \"GET\",\n  \"headers\": [\n    {\n      \"key\": \"Host\",\n      \"value\": \"postman-echo.com\"\n    },\n    {\n      \"key\": \"user-agent\",\n      \"value\": \"curl/7.88.1\"\n    },\n    {\n      \"key\": \"accept\",\n      \"value\": \"*/*\"\n    },\n    {\n      \"key\": \"content-type\",\n      \"value\": \"application/json\"\n    }\n  ],\n  \"dataMode\": \"raw\",\n  \"rawModeData\": null,\n  \"dataOptions\": {\n    \"raw\": {\n      \"language\": \"json\"\n    }\n  }\n}"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go GET Response
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/collections/12ece9e1-2abf-4edc-8e34-de66e74114d2/responses?request=c82dd02c-4870-4907-8fcb-593a876cf05b"

	payload := strings.NewReader("{\n  \"name\": \"Example GET Response\",\n  \"headers\": [\n    {\n      \"key\": \"content-type\",\n      \"value\": \"application/json; charset=utf-8\"\n    },\n    {\n      \"key\": \"content-length\",\n      \"value\": \"370\"\n    },\n    {\n      \"key\": \"etag\",\n      \"value\": \"W/\\\"172-GDbDAS2r5X4Ypw2ia9AUhtyIyhk\\\"\"\n    },\n    {\n      \"key\": \"set-cookie\",\n      \"value\": \"sails.sid=s%3A23szD8Az12345Vs7dMzU4hjUHqqA1LeX.x8Jbnx4BEVHgzajknZdH%2BqxW7Pctx47m%2FlduU5Q4TAI; Path=/ HttpOnly\"\n    }\n  ],\n  \"responseCode\": {\n    \"code\": 200,\n    \"name\": \"OK\"\n  },\n  \"text\": \"{\\n  \\\"args\\\": {\\n    \\\"param\\\": \\\"value\\\"\\n  },\\n  \\\"headers\\\": {\\n    \\\"x-forwarded-proto\\\": \\\"https\\\",\\n    \\\"x-forwarded-port\\\": \\\"443\\\",\\n    \\\"host\\\": \\\"postman-echo.com\\\",\\n    \\\"x-amzn-trace-id\\\": \\\"Root=1-64f9cd12-62f18f3a048796d345508073\\\",\\n    \\\"user-agent\\\": \\\"curl/7.88.1\\\",\\n    \\\"accept\\\": \\\"*/*\\\",\\n    \\\"content-type\\\": \\\"application/json\\\"\\n  },\\n  \\\"url\\\": \\\"https://postman-echo.com/get?param=value\\\"\\n}\\n\",\n  \"language\": \"json\",\n  \"requestObject\": \"{\\n  \\\"name\\\": \\\"Request\\\",\\n  \\\"description\\\": \\\"\\\",\\n  \\\"url\\\": \\\"https://postman-echo.com/get?param=value\\\",\\n  \\\"method\\\": \\\"GET\\\",\\n  \\\"headers\\\": [\\n    {\\n      \\\"key\\\": \\\"Host\\\",\\n      \\\"value\\\": \\\"postman-echo.com\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"user-agent\\\",\\n      \\\"value\\\": \\\"curl/7.88.1\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"accept\\\",\\n      \\\"value\\\": \\\"*/*\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"content-type\\\",\\n      \\\"value\\\": \\\"application/json\\\"\\n    }\\n  ],\\n  \\\"dataMode\\\": \\\"raw\\\",\\n  \\\"rawModeData\\\": null,\\n  \\\"dataOptions\\\": {\\n    \\\"raw\\\": {\\n      \\\"language\\\": \\\"json\\\"\\n    }\\n  }\\n}\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby GET Response
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/collections/12ece9e1-2abf-4edc-8e34-de66e74114d2/responses?request=c82dd02c-4870-4907-8fcb-593a876cf05b")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"name\": \"Example GET Response\",\n  \"headers\": [\n    {\n      \"key\": \"content-type\",\n      \"value\": \"application/json; charset=utf-8\"\n    },\n    {\n      \"key\": \"content-length\",\n      \"value\": \"370\"\n    },\n    {\n      \"key\": \"etag\",\n      \"value\": \"W/\\\"172-GDbDAS2r5X4Ypw2ia9AUhtyIyhk\\\"\"\n    },\n    {\n      \"key\": \"set-cookie\",\n      \"value\": \"sails.sid=s%3A23szD8Az12345Vs7dMzU4hjUHqqA1LeX.x8Jbnx4BEVHgzajknZdH%2BqxW7Pctx47m%2FlduU5Q4TAI; Path=/ HttpOnly\"\n    }\n  ],\n  \"responseCode\": {\n    \"code\": 200,\n    \"name\": \"OK\"\n  },\n  \"text\": \"{\\n  \\\"args\\\": {\\n    \\\"param\\\": \\\"value\\\"\\n  },\\n  \\\"headers\\\": {\\n    \\\"x-forwarded-proto\\\": \\\"https\\\",\\n    \\\"x-forwarded-port\\\": \\\"443\\\",\\n    \\\"host\\\": \\\"postman-echo.com\\\",\\n    \\\"x-amzn-trace-id\\\": \\\"Root=1-64f9cd12-62f18f3a048796d345508073\\\",\\n    \\\"user-agent\\\": \\\"curl/7.88.1\\\",\\n    \\\"accept\\\": \\\"*/*\\\",\\n    \\\"content-type\\\": \\\"application/json\\\"\\n  },\\n  \\\"url\\\": \\\"https://postman-echo.com/get?param=value\\\"\\n}\\n\",\n  \"language\": \"json\",\n  \"requestObject\": \"{\\n  \\\"name\\\": \\\"Request\\\",\\n  \\\"description\\\": \\\"\\\",\\n  \\\"url\\\": \\\"https://postman-echo.com/get?param=value\\\",\\n  \\\"method\\\": \\\"GET\\\",\\n  \\\"headers\\\": [\\n    {\\n      \\\"key\\\": \\\"Host\\\",\\n      \\\"value\\\": \\\"postman-echo.com\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"user-agent\\\",\\n      \\\"value\\\": \\\"curl/7.88.1\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"accept\\\",\\n      \\\"value\\\": \\\"*/*\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"content-type\\\",\\n      \\\"value\\\": \\\"application/json\\\"\\n    }\\n  ],\\n  \\\"dataMode\\\": \\\"raw\\\",\\n  \\\"rawModeData\\\": null,\\n  \\\"dataOptions\\\": {\\n    \\\"raw\\\": {\\n      \\\"language\\\": \\\"json\\\"\\n    }\\n  }\\n}\"\n}"

response = http.request(request)
puts response.read_body
```

```java GET Response
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.postman.com/collections/12ece9e1-2abf-4edc-8e34-de66e74114d2/responses?request=c82dd02c-4870-4907-8fcb-593a876cf05b")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"name\": \"Example GET Response\",\n  \"headers\": [\n    {\n      \"key\": \"content-type\",\n      \"value\": \"application/json; charset=utf-8\"\n    },\n    {\n      \"key\": \"content-length\",\n      \"value\": \"370\"\n    },\n    {\n      \"key\": \"etag\",\n      \"value\": \"W/\\\"172-GDbDAS2r5X4Ypw2ia9AUhtyIyhk\\\"\"\n    },\n    {\n      \"key\": \"set-cookie\",\n      \"value\": \"sails.sid=s%3A23szD8Az12345Vs7dMzU4hjUHqqA1LeX.x8Jbnx4BEVHgzajknZdH%2BqxW7Pctx47m%2FlduU5Q4TAI; Path=/ HttpOnly\"\n    }\n  ],\n  \"responseCode\": {\n    \"code\": 200,\n    \"name\": \"OK\"\n  },\n  \"text\": \"{\\n  \\\"args\\\": {\\n    \\\"param\\\": \\\"value\\\"\\n  },\\n  \\\"headers\\\": {\\n    \\\"x-forwarded-proto\\\": \\\"https\\\",\\n    \\\"x-forwarded-port\\\": \\\"443\\\",\\n    \\\"host\\\": \\\"postman-echo.com\\\",\\n    \\\"x-amzn-trace-id\\\": \\\"Root=1-64f9cd12-62f18f3a048796d345508073\\\",\\n    \\\"user-agent\\\": \\\"curl/7.88.1\\\",\\n    \\\"accept\\\": \\\"*/*\\\",\\n    \\\"content-type\\\": \\\"application/json\\\"\\n  },\\n  \\\"url\\\": \\\"https://postman-echo.com/get?param=value\\\"\\n}\\n\",\n  \"language\": \"json\",\n  \"requestObject\": \"{\\n  \\\"name\\\": \\\"Request\\\",\\n  \\\"description\\\": \\\"\\\",\\n  \\\"url\\\": \\\"https://postman-echo.com/get?param=value\\\",\\n  \\\"method\\\": \\\"GET\\\",\\n  \\\"headers\\\": [\\n    {\\n      \\\"key\\\": \\\"Host\\\",\\n      \\\"value\\\": \\\"postman-echo.com\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"user-agent\\\",\\n      \\\"value\\\": \\\"curl/7.88.1\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"accept\\\",\\n      \\\"value\\\": \\\"*/*\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"content-type\\\",\\n      \\\"value\\\": \\\"application/json\\\"\\n    }\\n  ],\\n  \\\"dataMode\\\": \\\"raw\\\",\\n  \\\"rawModeData\\\": null,\\n  \\\"dataOptions\\\": {\\n    \\\"raw\\\": {\\n      \\\"language\\\": \\\"json\\\"\\n    }\\n  }\\n}\"\n}")
  .asString();
```

```php GET Response
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.postman.com/collections/12ece9e1-2abf-4edc-8e34-de66e74114d2/responses?request=c82dd02c-4870-4907-8fcb-593a876cf05b', [
  'body' => '{
  "name": "Example GET Response",
  "headers": [
    {
      "key": "content-type",
      "value": "application/json; charset=utf-8"
    },
    {
      "key": "content-length",
      "value": "370"
    },
    {
      "key": "etag",
      "value": "W/\\"172-GDbDAS2r5X4Ypw2ia9AUhtyIyhk\\""
    },
    {
      "key": "set-cookie",
      "value": "sails.sid=s%3A23szD8Az12345Vs7dMzU4hjUHqqA1LeX.x8Jbnx4BEVHgzajknZdH%2BqxW7Pctx47m%2FlduU5Q4TAI; Path=/ HttpOnly"
    }
  ],
  "responseCode": {
    "code": 200,
    "name": "OK"
  },
  "text": "{\\n  \\"args\\": {\\n    \\"param\\": \\"value\\"\\n  },\\n  \\"headers\\": {\\n    \\"x-forwarded-proto\\": \\"https\\",\\n    \\"x-forwarded-port\\": \\"443\\",\\n    \\"host\\": \\"postman-echo.com\\",\\n    \\"x-amzn-trace-id\\": \\"Root=1-64f9cd12-62f18f3a048796d345508073\\",\\n    \\"user-agent\\": \\"curl/7.88.1\\",\\n    \\"accept\\": \\"*/*\\",\\n    \\"content-type\\": \\"application/json\\"\\n  },\\n  \\"url\\": \\"https://postman-echo.com/get?param=value\\"\\n}\\n",
  "language": "json",
  "requestObject": "{\\n  \\"name\\": \\"Request\\",\\n  \\"description\\": \\"\\",\\n  \\"url\\": \\"https://postman-echo.com/get?param=value\\",\\n  \\"method\\": \\"GET\\",\\n  \\"headers\\": [\\n    {\\n      \\"key\\": \\"Host\\",\\n      \\"value\\": \\"postman-echo.com\\"\\n    },\\n    {\\n      \\"key\\": \\"user-agent\\",\\n      \\"value\\": \\"curl/7.88.1\\"\\n    },\\n    {\\n      \\"key\\": \\"accept\\",\\n      \\"value\\": \\"*/*\\"\\n    },\\n    {\\n      \\"key\\": \\"content-type\\",\\n      \\"value\\": \\"application/json\\"\\n    }\\n  ],\\n  \\"dataMode\\": \\"raw\\",\\n  \\"rawModeData\\": null,\\n  \\"dataOptions\\": {\\n    \\"raw\\": {\\n      \\"language\\": \\"json\\"\\n    }\\n  }\\n}"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp GET Response
using RestSharp;

var client = new RestClient("https://api.postman.com/collections/12ece9e1-2abf-4edc-8e34-de66e74114d2/responses?request=c82dd02c-4870-4907-8fcb-593a876cf05b");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"Example GET Response\",\n  \"headers\": [\n    {\n      \"key\": \"content-type\",\n      \"value\": \"application/json; charset=utf-8\"\n    },\n    {\n      \"key\": \"content-length\",\n      \"value\": \"370\"\n    },\n    {\n      \"key\": \"etag\",\n      \"value\": \"W/\\\"172-GDbDAS2r5X4Ypw2ia9AUhtyIyhk\\\"\"\n    },\n    {\n      \"key\": \"set-cookie\",\n      \"value\": \"sails.sid=s%3A23szD8Az12345Vs7dMzU4hjUHqqA1LeX.x8Jbnx4BEVHgzajknZdH%2BqxW7Pctx47m%2FlduU5Q4TAI; Path=/ HttpOnly\"\n    }\n  ],\n  \"responseCode\": {\n    \"code\": 200,\n    \"name\": \"OK\"\n  },\n  \"text\": \"{\\n  \\\"args\\\": {\\n    \\\"param\\\": \\\"value\\\"\\n  },\\n  \\\"headers\\\": {\\n    \\\"x-forwarded-proto\\\": \\\"https\\\",\\n    \\\"x-forwarded-port\\\": \\\"443\\\",\\n    \\\"host\\\": \\\"postman-echo.com\\\",\\n    \\\"x-amzn-trace-id\\\": \\\"Root=1-64f9cd12-62f18f3a048796d345508073\\\",\\n    \\\"user-agent\\\": \\\"curl/7.88.1\\\",\\n    \\\"accept\\\": \\\"*/*\\\",\\n    \\\"content-type\\\": \\\"application/json\\\"\\n  },\\n  \\\"url\\\": \\\"https://postman-echo.com/get?param=value\\\"\\n}\\n\",\n  \"language\": \"json\",\n  \"requestObject\": \"{\\n  \\\"name\\\": \\\"Request\\\",\\n  \\\"description\\\": \\\"\\\",\\n  \\\"url\\\": \\\"https://postman-echo.com/get?param=value\\\",\\n  \\\"method\\\": \\\"GET\\\",\\n  \\\"headers\\\": [\\n    {\\n      \\\"key\\\": \\\"Host\\\",\\n      \\\"value\\\": \\\"postman-echo.com\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"user-agent\\\",\\n      \\\"value\\\": \\\"curl/7.88.1\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"accept\\\",\\n      \\\"value\\\": \\\"*/*\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"content-type\\\",\\n      \\\"value\\\": \\\"application/json\\\"\\n    }\\n  ],\\n  \\\"dataMode\\\": \\\"raw\\\",\\n  \\\"rawModeData\\\": null,\\n  \\\"dataOptions\\\": {\\n    \\\"raw\\\": {\\n      \\\"language\\\": \\\"json\\\"\\n    }\\n  }\\n}\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift GET Response
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "name": "Example GET Response",
  "headers": [
    [
      "key": "content-type",
      "value": "application/json; charset=utf-8"
    ],
    [
      "key": "content-length",
      "value": "370"
    ],
    [
      "key": "etag",
      "value": "W/\"172-GDbDAS2r5X4Ypw2ia9AUhtyIyhk\""
    ],
    [
      "key": "set-cookie",
      "value": "sails.sid=s%3A23szD8Az12345Vs7dMzU4hjUHqqA1LeX.x8Jbnx4BEVHgzajknZdH%2BqxW7Pctx47m%2FlduU5Q4TAI; Path=/ HttpOnly"
    ]
  ],
  "responseCode": [
    "code": 200,
    "name": "OK"
  ],
  "text": "{
  \"args\": {
    \"param\": \"value\"
  },
  \"headers\": {
    \"x-forwarded-proto\": \"https\",
    \"x-forwarded-port\": \"443\",
    \"host\": \"postman-echo.com\",
    \"x-amzn-trace-id\": \"Root=1-64f9cd12-62f18f3a048796d345508073\",
    \"user-agent\": \"curl/7.88.1\",
    \"accept\": \"*/*\",
    \"content-type\": \"application/json\"
  },
  \"url\": \"https://postman-echo.com/get?param=value\"
}
",
  "language": "json",
  "requestObject": "{
  \"name\": \"Request\",
  \"description\": \"\",
  \"url\": \"https://postman-echo.com/get?param=value\",
  \"method\": \"GET\",
  \"headers\": [
    {
      \"key\": \"Host\",
      \"value\": \"postman-echo.com\"
    },
    {
      \"key\": \"user-agent\",
      \"value\": \"curl/7.88.1\"
    },
    {
      \"key\": \"accept\",
      \"value\": \"*/*\"
    },
    {
      \"key\": \"content-type\",
      \"value\": \"application/json\"
    }
  ],
  \"dataMode\": \"raw\",
  \"rawModeData\": null,
  \"dataOptions\": {
    \"raw\": {
      \"language\": \"json\"
    }
  }
}"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/collections/12ece9e1-2abf-4edc-8e34-de66e74114d2/responses?request=c82dd02c-4870-4907-8fcb-593a876cf05b")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### POST Response

**Request**

```json
{
  "name": "POST response",
  "headers": [
    {
      "key": "date",
      "value": "Thu, 07 Sep 2023 12:41:59 GMT"
    },
    {
      "key": "content-type",
      "value": "application/json; charset=utf-8"
    },
    {
      "key": "content-length",
      "value": "468"
    },
    {
      "key": "etag",
      "value": "W/\"1d4-JuAIw8ssoFCtGzk/UwITxaiSbrc\""
    },
    {
      "key": "set-cookie",
      "value": "sails.sid=s%3A6p_NXpI3OZeGE35bI6i5Uq3XgHHxcsdJ.dQVpBE%2BJ9wHWainkqe6F6dkdv7UKoshSZY7sdZ5sbzo; Path=/; HttpOnly"
    }
  ],
  "responseCode": {
    "code": 200,
    "name": "OK"
  },
  "text": "{\n  \"args\": {},\n  \"data\": {\n    \"field\": \"Value\"\n  },\n  \"files\": {},\n  \"form\": {},\n  \"headers\": {\n    \"x-forwarded-proto\": \"https\",\n    \"x-forwarded-port\": \"443\",\n    \"host\": \"postman-echo.com\",\n    \"x-amzn-trace-id\": \"Root=1-64f9c517-36db304817c774d740619baa\",\n    \"content-length\": \"22\",\n    \"user-agent\": \"curl/7.88.1\",\n    \"accept\": \"*/*\",\n    \"content-type\": \"application/json\"\n  },\n  \"json\": {\n    \"field\": \"Value\"\n  },\n  \"url\": \"https://postman-echo.com/post\"\n}\n",
  "language": "json",
  "requestObject": "{\n  \"name\": \"Request\",\n  \"description\": \"\",\n  \"url\": \"https://postman-echo.com/post\",\n  \"method\": \"POST\",\n  \"headers\": [\n    {\n      \"key\": \"Host\",\n      \"value\": \"postman-echo.com\"\n    },\n    {\n      \"key\": \"user-agent\",\n      \"value\": \"curl/7.88.1\"\n    },\n    {\n      \"key\": \"accept\",\n      \"value\": \"*/*\"\n    },\n    {\n      \"key\": \"content-type\",\n      \"value\": \"application/json\"\n    },\n    {\n      \"key\": \"content-length\",\n      \"value\": \"22\"\n    }\n  ],\n  \"dataMode\": \"raw\",\n  \"rawModeData\": \"{\\n  \\\"field\\\": \\\"Value\\\"\\n}\",\n  \"dataOptions\": {\n    \"raw\": {\n      \"language\": \"json\"\n    }\n  }\n}"
}
```

**Response**

```json
{
  "data": {
    "id": "cc364734-7dfd-4bfc-897d-be763dcdbb07",
    "owner": "12345678",
    "request": "c82dd02c-4870-4907-8fcb-593a876cf05b",
    "createdAt": "2023-09-07T13:35:34.817Z",
    "updatedAt": "2023-09-07T13:35:34.817Z",
    "lastUpdatedBy": "12345678",
    "headers": [
      {
        "key": "date",
        "value": "Thu, 07 Sep 2023 12:41:59 GMT"
      },
      {
        "key": "content-type",
        "value": "application/json; charset=utf-8"
      },
      {
        "key": "content-length",
        "value": "468"
      },
      {
        "key": "etag",
        "value": "W/\"1d4-JuAIw8ssoFCtGzk/UwITxaiSbrc\""
      },
      {
        "key": "set-cookie",
        "value": "sails.sid=s%3A23szD8Az12345Vs7dMzU4hjUHqqA1LeX.x8Jbnx4BEVHgzajknZdH%2BqxW7Pctx47m%2FlduU5Q4TAI; Path=/ HttpOnly"
      }
    ],
    "language": "json",
    "name": "POST response",
    "requestObject": "{\n  \"name\": \"Request\",\n  \"description\": \"\",\n  \"url\": \"https://postman-echo.com/post\",\n  \"method\": \"POST\",\n  \"headers\": [\n    {\n      \"key\": \"Host\",\n      \"value\": \"postman-echo.com\"\n    },\n    {\n      \"key\": \"user-agent\",\n      \"value\": \"curl/7.88.1\"\n    },\n    {\n      \"key\": \"accept\",\n      \"value\": \"*/*\"\n    },\n    {\n      \"key\": \"content-type\",\n      \"value\": \"application/json\"\n    },\n    {\n      \"key\": \"content-length\",\n      \"value\": \"22\"\n    }\n  ],\n  \"dataMode\": \"raw\",\n  \"rawModeData\": null,\n  \"dataOptions\": {\n    \"raw\": {\n      \"language\": \"json\"\n    }\n  }\n}",
    "responseCode": {
      "code": 200,
      "name": "OK"
    },
    "text": "{\n  \"args\": {},\n  \"data\": {\n    \"field\": \"Value\"\n  },\n  \"files\": {},\n  \"form\": {},\n  \"headers\": {\n    \"x-forwarded-proto\": \"https\",\n    \"x-forwarded-port\": \"443\",\n    \"host\": \"postman-echo.com\",\n    \"x-amzn-trace-id\": \"Root=1-71bdd0e4-2ad8-45ab-be3c-3dde999711a6\",\n    \"content-length\": \"22\",\n    \"user-agent\": \"curl/7.88.1\",\n    \"accept\": \"*/*\",\n    \"content-type\": \"application/json\"\n  },\n  \"json\": {\n    \"field\": \"Value\"\n  },\n  \"url\": \"https://postman-echo.com/post\"\n}\n"
  },
  "meta": {
    "action": "create",
    "model": "response"
  },
  "model_id": "cc364734-7dfd-4bfc-897d-be763dcdbb07",
  "revision": 32456382761
}
```

**SDK Code**

```python POST Response
import requests

url = "https://api.postman.com/collections/12ece9e1-2abf-4edc-8e34-de66e74114d2/responses"

querystring = {"request":"c82dd02c-4870-4907-8fcb-593a876cf05b"}

payload = {
    "name": "POST response",
    "headers": [
        {
            "key": "date",
            "value": "Thu, 07 Sep 2023 12:41:59 GMT"
        },
        {
            "key": "content-type",
            "value": "application/json; charset=utf-8"
        },
        {
            "key": "content-length",
            "value": "468"
        },
        {
            "key": "etag",
            "value": "W/\"1d4-JuAIw8ssoFCtGzk/UwITxaiSbrc\""
        },
        {
            "key": "set-cookie",
            "value": "sails.sid=s%3A6p_NXpI3OZeGE35bI6i5Uq3XgHHxcsdJ.dQVpBE%2BJ9wHWainkqe6F6dkdv7UKoshSZY7sdZ5sbzo; Path=/; HttpOnly"
        }
    ],
    "responseCode": {
        "code": 200,
        "name": "OK"
    },
    "text": "{
  \"args\": {},
  \"data\": {
    \"field\": \"Value\"
  },
  \"files\": {},
  \"form\": {},
  \"headers\": {
    \"x-forwarded-proto\": \"https\",
    \"x-forwarded-port\": \"443\",
    \"host\": \"postman-echo.com\",
    \"x-amzn-trace-id\": \"Root=1-64f9c517-36db304817c774d740619baa\",
    \"content-length\": \"22\",
    \"user-agent\": \"curl/7.88.1\",
    \"accept\": \"*/*\",
    \"content-type\": \"application/json\"
  },
  \"json\": {
    \"field\": \"Value\"
  },
  \"url\": \"https://postman-echo.com/post\"
}
",
    "language": "json",
    "requestObject": "{
  \"name\": \"Request\",
  \"description\": \"\",
  \"url\": \"https://postman-echo.com/post\",
  \"method\": \"POST\",
  \"headers\": [
    {
      \"key\": \"Host\",
      \"value\": \"postman-echo.com\"
    },
    {
      \"key\": \"user-agent\",
      \"value\": \"curl/7.88.1\"
    },
    {
      \"key\": \"accept\",
      \"value\": \"*/*\"
    },
    {
      \"key\": \"content-type\",
      \"value\": \"application/json\"
    },
    {
      \"key\": \"content-length\",
      \"value\": \"22\"
    }
  ],
  \"dataMode\": \"raw\",
  \"rawModeData\": \"{\n  \\"field\\": \\"Value\\"\n}\",
  \"dataOptions\": {
    \"raw\": {
      \"language\": \"json\"
    }
  }
}"
}
headers = {
    "x-api-key": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers, params=querystring)

print(response.json())
```

```javascript POST Response
const url = 'https://api.postman.com/collections/12ece9e1-2abf-4edc-8e34-de66e74114d2/responses?request=c82dd02c-4870-4907-8fcb-593a876cf05b';
const options = {
  method: 'POST',
  headers: {'x-api-key': '<apiKey>', 'Content-Type': 'application/json'},
  body: '{"name":"POST response","headers":[{"key":"date","value":"Thu, 07 Sep 2023 12:41:59 GMT"},{"key":"content-type","value":"application/json; charset=utf-8"},{"key":"content-length","value":"468"},{"key":"etag","value":"W/\"1d4-JuAIw8ssoFCtGzk/UwITxaiSbrc\""},{"key":"set-cookie","value":"sails.sid=s%3A6p_NXpI3OZeGE35bI6i5Uq3XgHHxcsdJ.dQVpBE%2BJ9wHWainkqe6F6dkdv7UKoshSZY7sdZ5sbzo; Path=/; HttpOnly"}],"responseCode":{"code":200,"name":"OK"},"text":"{\n  \"args\": {},\n  \"data\": {\n    \"field\": \"Value\"\n  },\n  \"files\": {},\n  \"form\": {},\n  \"headers\": {\n    \"x-forwarded-proto\": \"https\",\n    \"x-forwarded-port\": \"443\",\n    \"host\": \"postman-echo.com\",\n    \"x-amzn-trace-id\": \"Root=1-64f9c517-36db304817c774d740619baa\",\n    \"content-length\": \"22\",\n    \"user-agent\": \"curl/7.88.1\",\n    \"accept\": \"*/*\",\n    \"content-type\": \"application/json\"\n  },\n  \"json\": {\n    \"field\": \"Value\"\n  },\n  \"url\": \"https://postman-echo.com/post\"\n}\n","language":"json","requestObject":"{\n  \"name\": \"Request\",\n  \"description\": \"\",\n  \"url\": \"https://postman-echo.com/post\",\n  \"method\": \"POST\",\n  \"headers\": [\n    {\n      \"key\": \"Host\",\n      \"value\": \"postman-echo.com\"\n    },\n    {\n      \"key\": \"user-agent\",\n      \"value\": \"curl/7.88.1\"\n    },\n    {\n      \"key\": \"accept\",\n      \"value\": \"*/*\"\n    },\n    {\n      \"key\": \"content-type\",\n      \"value\": \"application/json\"\n    },\n    {\n      \"key\": \"content-length\",\n      \"value\": \"22\"\n    }\n  ],\n  \"dataMode\": \"raw\",\n  \"rawModeData\": \"{\\n  \\\"field\\\": \\\"Value\\\"\\n}\",\n  \"dataOptions\": {\n    \"raw\": {\n      \"language\": \"json\"\n    }\n  }\n}"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go POST Response
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.postman.com/collections/12ece9e1-2abf-4edc-8e34-de66e74114d2/responses?request=c82dd02c-4870-4907-8fcb-593a876cf05b"

	payload := strings.NewReader("{\n  \"name\": \"POST response\",\n  \"headers\": [\n    {\n      \"key\": \"date\",\n      \"value\": \"Thu, 07 Sep 2023 12:41:59 GMT\"\n    },\n    {\n      \"key\": \"content-type\",\n      \"value\": \"application/json; charset=utf-8\"\n    },\n    {\n      \"key\": \"content-length\",\n      \"value\": \"468\"\n    },\n    {\n      \"key\": \"etag\",\n      \"value\": \"W/\\\"1d4-JuAIw8ssoFCtGzk/UwITxaiSbrc\\\"\"\n    },\n    {\n      \"key\": \"set-cookie\",\n      \"value\": \"sails.sid=s%3A6p_NXpI3OZeGE35bI6i5Uq3XgHHxcsdJ.dQVpBE%2BJ9wHWainkqe6F6dkdv7UKoshSZY7sdZ5sbzo; Path=/; HttpOnly\"\n    }\n  ],\n  \"responseCode\": {\n    \"code\": 200,\n    \"name\": \"OK\"\n  },\n  \"text\": \"{\\n  \\\"args\\\": {},\\n  \\\"data\\\": {\\n    \\\"field\\\": \\\"Value\\\"\\n  },\\n  \\\"files\\\": {},\\n  \\\"form\\\": {},\\n  \\\"headers\\\": {\\n    \\\"x-forwarded-proto\\\": \\\"https\\\",\\n    \\\"x-forwarded-port\\\": \\\"443\\\",\\n    \\\"host\\\": \\\"postman-echo.com\\\",\\n    \\\"x-amzn-trace-id\\\": \\\"Root=1-64f9c517-36db304817c774d740619baa\\\",\\n    \\\"content-length\\\": \\\"22\\\",\\n    \\\"user-agent\\\": \\\"curl/7.88.1\\\",\\n    \\\"accept\\\": \\\"*/*\\\",\\n    \\\"content-type\\\": \\\"application/json\\\"\\n  },\\n  \\\"json\\\": {\\n    \\\"field\\\": \\\"Value\\\"\\n  },\\n  \\\"url\\\": \\\"https://postman-echo.com/post\\\"\\n}\\n\",\n  \"language\": \"json\",\n  \"requestObject\": \"{\\n  \\\"name\\\": \\\"Request\\\",\\n  \\\"description\\\": \\\"\\\",\\n  \\\"url\\\": \\\"https://postman-echo.com/post\\\",\\n  \\\"method\\\": \\\"POST\\\",\\n  \\\"headers\\\": [\\n    {\\n      \\\"key\\\": \\\"Host\\\",\\n      \\\"value\\\": \\\"postman-echo.com\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"user-agent\\\",\\n      \\\"value\\\": \\\"curl/7.88.1\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"accept\\\",\\n      \\\"value\\\": \\\"*/*\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"content-type\\\",\\n      \\\"value\\\": \\\"application/json\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"content-length\\\",\\n      \\\"value\\\": \\\"22\\\"\\n    }\\n  ],\\n  \\\"dataMode\\\": \\\"raw\\\",\\n  \\\"rawModeData\\\": \\\"{\\\\n  \\\\\\\"field\\\\\\\": \\\\\\\"Value\\\\\\\"\\\\n}\\\",\\n  \\\"dataOptions\\\": {\\n    \\\"raw\\\": {\\n      \\\"language\\\": \\\"json\\\"\\n    }\\n  }\\n}\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby POST Response
require 'uri'
require 'net/http'

url = URI("https://api.postman.com/collections/12ece9e1-2abf-4edc-8e34-de66e74114d2/responses?request=c82dd02c-4870-4907-8fcb-593a876cf05b")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"name\": \"POST response\",\n  \"headers\": [\n    {\n      \"key\": \"date\",\n      \"value\": \"Thu, 07 Sep 2023 12:41:59 GMT\"\n    },\n    {\n      \"key\": \"content-type\",\n      \"value\": \"application/json; charset=utf-8\"\n    },\n    {\n      \"key\": \"content-length\",\n      \"value\": \"468\"\n    },\n    {\n      \"key\": \"etag\",\n      \"value\": \"W/\\\"1d4-JuAIw8ssoFCtGzk/UwITxaiSbrc\\\"\"\n    },\n    {\n      \"key\": \"set-cookie\",\n      \"value\": \"sails.sid=s%3A6p_NXpI3OZeGE35bI6i5Uq3XgHHxcsdJ.dQVpBE%2BJ9wHWainkqe6F6dkdv7UKoshSZY7sdZ5sbzo; Path=/; HttpOnly\"\n    }\n  ],\n  \"responseCode\": {\n    \"code\": 200,\n    \"name\": \"OK\"\n  },\n  \"text\": \"{\\n  \\\"args\\\": {},\\n  \\\"data\\\": {\\n    \\\"field\\\": \\\"Value\\\"\\n  },\\n  \\\"files\\\": {},\\n  \\\"form\\\": {},\\n  \\\"headers\\\": {\\n    \\\"x-forwarded-proto\\\": \\\"https\\\",\\n    \\\"x-forwarded-port\\\": \\\"443\\\",\\n    \\\"host\\\": \\\"postman-echo.com\\\",\\n    \\\"x-amzn-trace-id\\\": \\\"Root=1-64f9c517-36db304817c774d740619baa\\\",\\n    \\\"content-length\\\": \\\"22\\\",\\n    \\\"user-agent\\\": \\\"curl/7.88.1\\\",\\n    \\\"accept\\\": \\\"*/*\\\",\\n    \\\"content-type\\\": \\\"application/json\\\"\\n  },\\n  \\\"json\\\": {\\n    \\\"field\\\": \\\"Value\\\"\\n  },\\n  \\\"url\\\": \\\"https://postman-echo.com/post\\\"\\n}\\n\",\n  \"language\": \"json\",\n  \"requestObject\": \"{\\n  \\\"name\\\": \\\"Request\\\",\\n  \\\"description\\\": \\\"\\\",\\n  \\\"url\\\": \\\"https://postman-echo.com/post\\\",\\n  \\\"method\\\": \\\"POST\\\",\\n  \\\"headers\\\": [\\n    {\\n      \\\"key\\\": \\\"Host\\\",\\n      \\\"value\\\": \\\"postman-echo.com\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"user-agent\\\",\\n      \\\"value\\\": \\\"curl/7.88.1\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"accept\\\",\\n      \\\"value\\\": \\\"*/*\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"content-type\\\",\\n      \\\"value\\\": \\\"application/json\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"content-length\\\",\\n      \\\"value\\\": \\\"22\\\"\\n    }\\n  ],\\n  \\\"dataMode\\\": \\\"raw\\\",\\n  \\\"rawModeData\\\": \\\"{\\\\n  \\\\\\\"field\\\\\\\": \\\\\\\"Value\\\\\\\"\\\\n}\\\",\\n  \\\"dataOptions\\\": {\\n    \\\"raw\\\": {\\n      \\\"language\\\": \\\"json\\\"\\n    }\\n  }\\n}\"\n}"

response = http.request(request)
puts response.read_body
```

```java POST Response
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.postman.com/collections/12ece9e1-2abf-4edc-8e34-de66e74114d2/responses?request=c82dd02c-4870-4907-8fcb-593a876cf05b")
  .header("x-api-key", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{\n  \"name\": \"POST response\",\n  \"headers\": [\n    {\n      \"key\": \"date\",\n      \"value\": \"Thu, 07 Sep 2023 12:41:59 GMT\"\n    },\n    {\n      \"key\": \"content-type\",\n      \"value\": \"application/json; charset=utf-8\"\n    },\n    {\n      \"key\": \"content-length\",\n      \"value\": \"468\"\n    },\n    {\n      \"key\": \"etag\",\n      \"value\": \"W/\\\"1d4-JuAIw8ssoFCtGzk/UwITxaiSbrc\\\"\"\n    },\n    {\n      \"key\": \"set-cookie\",\n      \"value\": \"sails.sid=s%3A6p_NXpI3OZeGE35bI6i5Uq3XgHHxcsdJ.dQVpBE%2BJ9wHWainkqe6F6dkdv7UKoshSZY7sdZ5sbzo; Path=/; HttpOnly\"\n    }\n  ],\n  \"responseCode\": {\n    \"code\": 200,\n    \"name\": \"OK\"\n  },\n  \"text\": \"{\\n  \\\"args\\\": {},\\n  \\\"data\\\": {\\n    \\\"field\\\": \\\"Value\\\"\\n  },\\n  \\\"files\\\": {},\\n  \\\"form\\\": {},\\n  \\\"headers\\\": {\\n    \\\"x-forwarded-proto\\\": \\\"https\\\",\\n    \\\"x-forwarded-port\\\": \\\"443\\\",\\n    \\\"host\\\": \\\"postman-echo.com\\\",\\n    \\\"x-amzn-trace-id\\\": \\\"Root=1-64f9c517-36db304817c774d740619baa\\\",\\n    \\\"content-length\\\": \\\"22\\\",\\n    \\\"user-agent\\\": \\\"curl/7.88.1\\\",\\n    \\\"accept\\\": \\\"*/*\\\",\\n    \\\"content-type\\\": \\\"application/json\\\"\\n  },\\n  \\\"json\\\": {\\n    \\\"field\\\": \\\"Value\\\"\\n  },\\n  \\\"url\\\": \\\"https://postman-echo.com/post\\\"\\n}\\n\",\n  \"language\": \"json\",\n  \"requestObject\": \"{\\n  \\\"name\\\": \\\"Request\\\",\\n  \\\"description\\\": \\\"\\\",\\n  \\\"url\\\": \\\"https://postman-echo.com/post\\\",\\n  \\\"method\\\": \\\"POST\\\",\\n  \\\"headers\\\": [\\n    {\\n      \\\"key\\\": \\\"Host\\\",\\n      \\\"value\\\": \\\"postman-echo.com\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"user-agent\\\",\\n      \\\"value\\\": \\\"curl/7.88.1\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"accept\\\",\\n      \\\"value\\\": \\\"*/*\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"content-type\\\",\\n      \\\"value\\\": \\\"application/json\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"content-length\\\",\\n      \\\"value\\\": \\\"22\\\"\\n    }\\n  ],\\n  \\\"dataMode\\\": \\\"raw\\\",\\n  \\\"rawModeData\\\": \\\"{\\\\n  \\\\\\\"field\\\\\\\": \\\\\\\"Value\\\\\\\"\\\\n}\\\",\\n  \\\"dataOptions\\\": {\\n    \\\"raw\\\": {\\n      \\\"language\\\": \\\"json\\\"\\n    }\\n  }\\n}\"\n}")
  .asString();
```

```php POST Response
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.postman.com/collections/12ece9e1-2abf-4edc-8e34-de66e74114d2/responses?request=c82dd02c-4870-4907-8fcb-593a876cf05b', [
  'body' => '{
  "name": "POST response",
  "headers": [
    {
      "key": "date",
      "value": "Thu, 07 Sep 2023 12:41:59 GMT"
    },
    {
      "key": "content-type",
      "value": "application/json; charset=utf-8"
    },
    {
      "key": "content-length",
      "value": "468"
    },
    {
      "key": "etag",
      "value": "W/\\"1d4-JuAIw8ssoFCtGzk/UwITxaiSbrc\\""
    },
    {
      "key": "set-cookie",
      "value": "sails.sid=s%3A6p_NXpI3OZeGE35bI6i5Uq3XgHHxcsdJ.dQVpBE%2BJ9wHWainkqe6F6dkdv7UKoshSZY7sdZ5sbzo; Path=/; HttpOnly"
    }
  ],
  "responseCode": {
    "code": 200,
    "name": "OK"
  },
  "text": "{\\n  \\"args\\": {},\\n  \\"data\\": {\\n    \\"field\\": \\"Value\\"\\n  },\\n  \\"files\\": {},\\n  \\"form\\": {},\\n  \\"headers\\": {\\n    \\"x-forwarded-proto\\": \\"https\\",\\n    \\"x-forwarded-port\\": \\"443\\",\\n    \\"host\\": \\"postman-echo.com\\",\\n    \\"x-amzn-trace-id\\": \\"Root=1-64f9c517-36db304817c774d740619baa\\",\\n    \\"content-length\\": \\"22\\",\\n    \\"user-agent\\": \\"curl/7.88.1\\",\\n    \\"accept\\": \\"*/*\\",\\n    \\"content-type\\": \\"application/json\\"\\n  },\\n  \\"json\\": {\\n    \\"field\\": \\"Value\\"\\n  },\\n  \\"url\\": \\"https://postman-echo.com/post\\"\\n}\\n",
  "language": "json",
  "requestObject": "{\\n  \\"name\\": \\"Request\\",\\n  \\"description\\": \\"\\",\\n  \\"url\\": \\"https://postman-echo.com/post\\",\\n  \\"method\\": \\"POST\\",\\n  \\"headers\\": [\\n    {\\n      \\"key\\": \\"Host\\",\\n      \\"value\\": \\"postman-echo.com\\"\\n    },\\n    {\\n      \\"key\\": \\"user-agent\\",\\n      \\"value\\": \\"curl/7.88.1\\"\\n    },\\n    {\\n      \\"key\\": \\"accept\\",\\n      \\"value\\": \\"*/*\\"\\n    },\\n    {\\n      \\"key\\": \\"content-type\\",\\n      \\"value\\": \\"application/json\\"\\n    },\\n    {\\n      \\"key\\": \\"content-length\\",\\n      \\"value\\": \\"22\\"\\n    }\\n  ],\\n  \\"dataMode\\": \\"raw\\",\\n  \\"rawModeData\\": \\"{\\\\n  \\\\\\"field\\\\\\": \\\\\\"Value\\\\\\"\\\\n}\\",\\n  \\"dataOptions\\": {\\n    \\"raw\\": {\\n      \\"language\\": \\"json\\"\\n    }\\n  }\\n}"
}',
  'headers' => [
    'Content-Type' => 'application/json',
    'x-api-key' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp POST Response
using RestSharp;

var client = new RestClient("https://api.postman.com/collections/12ece9e1-2abf-4edc-8e34-de66e74114d2/responses?request=c82dd02c-4870-4907-8fcb-593a876cf05b");
var request = new RestRequest(Method.POST);
request.AddHeader("x-api-key", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"name\": \"POST response\",\n  \"headers\": [\n    {\n      \"key\": \"date\",\n      \"value\": \"Thu, 07 Sep 2023 12:41:59 GMT\"\n    },\n    {\n      \"key\": \"content-type\",\n      \"value\": \"application/json; charset=utf-8\"\n    },\n    {\n      \"key\": \"content-length\",\n      \"value\": \"468\"\n    },\n    {\n      \"key\": \"etag\",\n      \"value\": \"W/\\\"1d4-JuAIw8ssoFCtGzk/UwITxaiSbrc\\\"\"\n    },\n    {\n      \"key\": \"set-cookie\",\n      \"value\": \"sails.sid=s%3A6p_NXpI3OZeGE35bI6i5Uq3XgHHxcsdJ.dQVpBE%2BJ9wHWainkqe6F6dkdv7UKoshSZY7sdZ5sbzo; Path=/; HttpOnly\"\n    }\n  ],\n  \"responseCode\": {\n    \"code\": 200,\n    \"name\": \"OK\"\n  },\n  \"text\": \"{\\n  \\\"args\\\": {},\\n  \\\"data\\\": {\\n    \\\"field\\\": \\\"Value\\\"\\n  },\\n  \\\"files\\\": {},\\n  \\\"form\\\": {},\\n  \\\"headers\\\": {\\n    \\\"x-forwarded-proto\\\": \\\"https\\\",\\n    \\\"x-forwarded-port\\\": \\\"443\\\",\\n    \\\"host\\\": \\\"postman-echo.com\\\",\\n    \\\"x-amzn-trace-id\\\": \\\"Root=1-64f9c517-36db304817c774d740619baa\\\",\\n    \\\"content-length\\\": \\\"22\\\",\\n    \\\"user-agent\\\": \\\"curl/7.88.1\\\",\\n    \\\"accept\\\": \\\"*/*\\\",\\n    \\\"content-type\\\": \\\"application/json\\\"\\n  },\\n  \\\"json\\\": {\\n    \\\"field\\\": \\\"Value\\\"\\n  },\\n  \\\"url\\\": \\\"https://postman-echo.com/post\\\"\\n}\\n\",\n  \"language\": \"json\",\n  \"requestObject\": \"{\\n  \\\"name\\\": \\\"Request\\\",\\n  \\\"description\\\": \\\"\\\",\\n  \\\"url\\\": \\\"https://postman-echo.com/post\\\",\\n  \\\"method\\\": \\\"POST\\\",\\n  \\\"headers\\\": [\\n    {\\n      \\\"key\\\": \\\"Host\\\",\\n      \\\"value\\\": \\\"postman-echo.com\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"user-agent\\\",\\n      \\\"value\\\": \\\"curl/7.88.1\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"accept\\\",\\n      \\\"value\\\": \\\"*/*\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"content-type\\\",\\n      \\\"value\\\": \\\"application/json\\\"\\n    },\\n    {\\n      \\\"key\\\": \\\"content-length\\\",\\n      \\\"value\\\": \\\"22\\\"\\n    }\\n  ],\\n  \\\"dataMode\\\": \\\"raw\\\",\\n  \\\"rawModeData\\\": \\\"{\\\\n  \\\\\\\"field\\\\\\\": \\\\\\\"Value\\\\\\\"\\\\n}\\\",\\n  \\\"dataOptions\\\": {\\n    \\\"raw\\\": {\\n      \\\"language\\\": \\\"json\\\"\\n    }\\n  }\\n}\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift POST Response
import Foundation

let headers = [
  "x-api-key": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [
  "name": "POST response",
  "headers": [
    [
      "key": "date",
      "value": "Thu, 07 Sep 2023 12:41:59 GMT"
    ],
    [
      "key": "content-type",
      "value": "application/json; charset=utf-8"
    ],
    [
      "key": "content-length",
      "value": "468"
    ],
    [
      "key": "etag",
      "value": "W/\"1d4-JuAIw8ssoFCtGzk/UwITxaiSbrc\""
    ],
    [
      "key": "set-cookie",
      "value": "sails.sid=s%3A6p_NXpI3OZeGE35bI6i5Uq3XgHHxcsdJ.dQVpBE%2BJ9wHWainkqe6F6dkdv7UKoshSZY7sdZ5sbzo; Path=/; HttpOnly"
    ]
  ],
  "responseCode": [
    "code": 200,
    "name": "OK"
  ],
  "text": "{
  \"args\": {},
  \"data\": {
    \"field\": \"Value\"
  },
  \"files\": {},
  \"form\": {},
  \"headers\": {
    \"x-forwarded-proto\": \"https\",
    \"x-forwarded-port\": \"443\",
    \"host\": \"postman-echo.com\",
    \"x-amzn-trace-id\": \"Root=1-64f9c517-36db304817c774d740619baa\",
    \"content-length\": \"22\",
    \"user-agent\": \"curl/7.88.1\",
    \"accept\": \"*/*\",
    \"content-type\": \"application/json\"
  },
  \"json\": {
    \"field\": \"Value\"
  },
  \"url\": \"https://postman-echo.com/post\"
}
",
  "language": "json",
  "requestObject": "{
  \"name\": \"Request\",
  \"description\": \"\",
  \"url\": \"https://postman-echo.com/post\",
  \"method\": \"POST\",
  \"headers\": [
    {
      \"key\": \"Host\",
      \"value\": \"postman-echo.com\"
    },
    {
      \"key\": \"user-agent\",
      \"value\": \"curl/7.88.1\"
    },
    {
      \"key\": \"accept\",
      \"value\": \"*/*\"
    },
    {
      \"key\": \"content-type\",
      \"value\": \"application/json\"
    },
    {
      \"key\": \"content-length\",
      \"value\": \"22\"
    }
  ],
  \"dataMode\": \"raw\",
  \"rawModeData\": \"{\n  \\"field\\": \\"Value\\"\n}\",
  \"dataOptions\": {
    \"raw\": {
      \"language\": \"json\"
    }
  }
}"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://api.postman.com/collections/12ece9e1-2abf-4edc-8e34-de66e74114d2/responses?request=c82dd02c-4870-4907-8fcb-593a876cf05b")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```