Skip to content

Dataset

Postman collection and test script datasets for AI training

A Postman dataset is a business's Postman workspaces exported as records: collections of API requests with their URLs, headers, bodies and auth settings, the example responses saved under each request, the pre-request and test scripts that run around them, and the environments, mock servers and monitors they use. SourceX sources it to a buyer's spec from established businesses that run Postman for their internal and partner APIs. Each dataset is de-identified, with keys and tokens removed from variables, headers and scripts, and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Collections of API requests with saved example responses and scripts, plus the environments, mock servers and monitors around them
Typical systems
Postman team workspaces: collections, environments, specifications in Spec Hub, mock servers, monitors, and Newman or Postman CLI runs
Typical history
Collections as they stand at export; earlier versions where forks or Git copies were kept; run results where saved
Modality
Collection Format v2.1 JSON, JavaScript in script blocks, request and response bodies as JSON, XML or form data
Delivery formats
One v2.1 JSON file per collection and environment, or JSONL with one request per line and inherited scripts and auth resolved
Preparation
Tokens, keys and passwords removed from variables, headers, auth blocks and scripts; hosts and customer values in bodies de-identified
Licensing
Scoped per workspace and collection; forked vendor collections and partner API details checked for ownership and confidentiality
Availability
Sourced to your spec from businesses that run Postman; supply is not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
collection_idstringPseudonymous ID of the Collection, from info._postman_id, with its name and the Workspace it sits in.
folder_patharrayThe Folders above the request, in the order of the nested item arrays, which the Collection Runner follows.
requestobjectThe Request: name, Markdown description, method, the url object with host, path, query and path variables, and the header list.
bodyobjectThe Request body with its mode (raw, urlencoded, formdata, file or graphql); file entries carry a src path, not the file.
authobjectThe auth type and settings in force, and whether they sit on the Request or are inherited from a Folder or the Collection.
pre_request_scriptstringThe Pre-request script: JavaScript from the event entry with listen set to prerequest, joined from its exec lines.
test_scriptstringThe Test script, which the app now labels the post-response script: JavaScript from the event entry with listen set to test, holding the pm.test and pm.expect assertions.
inherited_scriptsarrayScripts defined on the Collection and on each parent Folder, in the order Postman runs them.
examplesarrayExample responses from the request's response array: name, originalRequest, status, code, headers and body.
variable_refsarrayEach {{name}} placeholder the request uses and what resolves it: a collection Variable, an Environment, a global, a dynamic variable or nothing in the export.
environmentsarrayEach Environment's Variables: key, type (default or secret), enabled flag and whether a shared value was present; values are removed.
mocks_and_monitorsobjectMock servers and Monitors that point at the Collection, with the Environment each uses.
api_definitionobjectThe API specification the Collection was generated from or sits beside: a specification in Spec Hub, or an entry in the older API Builder, with its format such as OpenAPI.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "collection_id": "col_7d2e41",
  "folder_path": [
    "Invoices",
    "Refunds"
  ],
  "request": {
    "name": "Create refund",
    "method": "POST",
    "url": {
      "raw": "{{baseUrl}}/v2/invoices/:invoiceId/refunds",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "v2",
        "invoices",
        ":invoiceId",
        "refunds"
      ],
      "variable": [
        {
          "key": "invoiceId",
          "value": "{{invoiceId}}"
        }
      ]
    },
    "header": [
      {
        "key": "Idempotency-Key",
        "value": "{{$guid}}"
      }
    ]
  },
  "body": {
    "mode": "raw",
    "raw": "{\n  \"amount_cents\": 4500,\n  \"reason\": \"duplicate_charge\"\n}",
    "options": {
      "raw": {
        "language": "json"
      }
    }
  },
  "auth": {
    "type": "bearer",
    "token": "{{accessToken}}",
    "inherited_from": "collection"
  },
  "pre_request_script": "pm.variables.set('requestedAt', new Date().toISOString());",
  "test_script": "pm.test('refund is created', function () {\n  pm.response.to.have.status(201);\n  const refund = pm.response.json();\n  pm.expect(refund.status).to.eql('pending');\n  pm.environment.set('refundId', refund.id);\n});",
  "examples": [
    {
      "name": "201 Refund created",
      "status": "Created",
      "code": 201,
      "originalRequest": {
        "method": "POST",
        "url": "{{baseUrl}}/v2/invoices/:invoiceId/refunds"
      },
      "body": "{\"id\": \"rf_0193\", \"status\": \"pending\", \"amount_cents\": 4500}"
    },
    {
      "name": "409 Already refunded",
      "status": "Conflict",
      "code": 409,
      "originalRequest": {
        "method": "POST",
        "url": "{{baseUrl}}/v1/invoices/:invoiceId/refund"
      },
      "body": "{\"error\": \"invoice_already_refunded\"}"
    }
  ],
  "variable_refs": [
    {
      "name": "baseUrl",
      "resolved_by": "environment",
      "environment": "Staging"
    },
    {
      "name": "invoiceId",
      "resolved_by": "collection"
    },
    {
      "name": "accessToken",
      "resolved_by": null,
      "note": "key exists in Staging, shared value empty"
    }
  ]
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Tool calling against real endpoints

Requests show the method, path, headers and body an internal or partner API expects.

Writing API tests

A request with a test script is a worked pair: the call, and the pm.test assertions someone wrote for its response.

Multi-step API workflows

Ordered folders chain calls, with scripts passing a token or an ID from one response into the next request.

Documentation from usage

Descriptions and saved examples pair an endpoint with the prose and samples a team wrote for its consumers.

Evaluation sets

A request and its variables make a test item, scored by the collection's own assertions.

Use-case guides: Coding agents, Enterprise and computer-use agents, Private evaluation sets

What makes this data valuable

Assertions on the body

Test scripts check fields, types or a JSON schema, not only the status code.

Examples on error paths

Saved examples cover 4xx and 5xx responses as well as the success case.

Variables resolve

Each placeholder is defined at collection, environment or global scope.

Chained requests

Scripts set variables that later requests read, so the collection runs as a sequence.

Written descriptions

Requests, folders and parameters carry descriptions, not just names.

Run results kept

Newman, Postman CLI or monitor output shows which assertions passed on which date.

System export

Postman dataset

This page covers postman API collections and test scripts.Illustrative

A collection keeps each request beside the script that judges its response

A Postman collection is one JSON document in Collection Format v2.1. Its item array nests folders and requests, and each request item carries the request (method, url object, header list and body), a response array of saved examples and an event array. The scripts live in the events: one entry with listen set to prerequest and one with listen set to test, which the app now labels the post-response script, each holding JavaScript as an exec array of lines. The test script runs in Postman's sandbox once the response arrives and states its claims through pm.test and pm.expect. The call and an executable statement of what a correct response looks like sit in one object.

A request item is not self-contained, because Postman resolves much by inheritance. Scripts can also be set on the collection and on any folder, and they run before the request's own, collection level first, then folder, for pre-request and post-response scripts alike. A request that inherits its auth has no auth block, and the bearer token or API key setting sits on a parent. Scripts also tie requests together: a login request's test script calls pm.environment.set with a token from the response, a later request reads it as {{token}}, and setNextRequest can change the order of a run. A request cut out of its collection loses its login, its shared assertions and often its base URL.

What the document does not hold is time. An export is the collection as it stands that day, and forks, pull requests and the changelog stay inside Postman. Teams on Postman's Native Git keep collections as files in a repository, so ask whether those files or v2.1 exports will be delivered. Nor does it show that a request was ever sent: each user's History is personal and not part of any collection. Outcomes exist only where the team ran the collection through the Collection Runner, Newman, the Postman CLI or a monitor and kept the output.

Saved examples are curated, and local variable values never reach an export

The response array under a request looks like captured traffic and is not. An example exists because someone saved a response, or typed one by hand so a mock server had something to return. Each holds a name, status, code, headers, body and originalRequest, a copy of the request as it stood when the example was saved. Examples lean toward the success case, since people save the call that worked. They go stale: originalRequest can differ from the live request above it, unmarked. An example written for a mock may describe an endpoint that was never built that way.

Variables are the second gap. Requests are written against placeholders such as {{baseUrl}} and {{apiKey}}, and every environment variable has two values: a shared value synced to the workspace, long labeled the initial value, and a local value that stays in the user's own app, once the current value. Requests sent from the app use the local value, while monitors, scheduled runs and the Postman CLI read the shared one. Teams keep secrets in the local one, and often hostnames. The Postman API can only return what was synced, so the values people really used are often blank. That keeps credentials out and leaves requests with no real host. The opposite failure also occurs: a token pasted into a header, a key typed into a script, or a shared value on a variable marked secret, which is masked on screen and still stored.

A sample can be tested with a few counts. List every placeholder in URLs, headers, bodies and scripts and check that a collection variable, an exported environment or a dynamic variable defines it. Count requests with a saved example, examples by status class, and test scripts that assert on the body and not only on the status code.

What to check before licensing

  • Have the data owner and your counsel check Postman's terms on exported data and on use of the Postman API.
  • Scan collections, environments and scripts for API keys, bearer tokens, passwords and OAuth client secrets, including secret-type variables and disabled headers.
  • Ask which collections document partner or vendor APIs, and whether third-party confidentiality terms cover those endpoints, payloads and examples.
  • List every {{variable}} a sample references and measure what share resolves from collection variables or exported environments.
  • Ask how saved examples were made (kept from a live call, edited, or written by hand for a mock) and compare each originalRequest with its current request.
  • Check which collections were forked from a public workspace or a vendor's published collection, and exclude work the business did not write.
  • Ask whether Newman, Postman CLI or monitor results were kept, for which dates, and whether they hold response bodies.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

What does a Postman dataset contain?

It contains a business's collections and the objects around them. A collection is a v2.1 JSON document of folders and requests, each with its URL, headers, body and auth settings, any saved example responses, and pre-request and test scripts in JavaScript. Environments, mock servers and monitors can be added. You specify the workspaces you need, and supply is not guaranteed.

Are the saved responses real API traffic?

No, not in the way a log is. A saved example is a response someone chose to keep under a request, and it can be edited or written by hand for a mock server. Examples lean toward successful calls and can describe an older version of the endpoint. For what the API returned over time, ask whether Newman, Postman CLI or monitor results were kept.

Why do exported collections have unresolved variables?

Because Postman syncs only the variable values a user chose to share. Each environment variable has a shared value, synced to the workspace, and a local value kept in the user's own app, and secrets, and often hostnames, live in the local one. An export through the Postman API returns shared values only. Count unresolved placeholders in a sample and decide whether that is acceptable for your use.

Can the test scripts be run after delivery?

Only against a service you can reach, and a licensed dataset does not include the business's API. The scripts are JavaScript written for Postman's sandbox and use the pm object, so they run in Postman, Newman or the Postman CLI. Without the live service they still work as assertions paired with a request and a saved example.

Does an export include version history or request history?

No. A collection file is the current state of that collection. Forks, pull requests and the changelog stay inside Postman, and each user's History of sent requests is personal and not part of a collection. Earlier versions exist only where the team kept forks, committed collection files to Git or works through Postman's Native Git. Ask which exist before writing a history requirement.

Is SourceX affiliated with Postman, Inc.?

Postman is named to identify the system the records come from. That does not imply a partnership with or endorsement by Postman, Inc. The records belong to the business that runs Postman, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies