{
  "info": {
    "_postman_id": "fdbdfcb4-d8fc-4077-a8bb-264d830ca01a",
    "name": "Customer Portal API",
    "description": "# Matrix Sciences Customer Portal API\n\nIntegrate customer catalogs, sample submissions, laboratory sample tracking, and test results with your own systems.\n\n## API reference\n\nAll request URLs use `https://one.mtxsci.com/api/1.1/wf` followed by the path below.\n\n| Endpoint | Method | Purpose |\n| --- | --- | --- |\n| `/authenticate-v2` | POST | Exchange a user's email and password for a Bearer token. |\n| `/customers-v2` | GET | List customers the authenticated user can access. |\n| `/product-ids-v2` | GET | Retrieve products, specifications, and mapped customer item codes. |\n| `/sites-v2` | GET | Retrieve sites and their EMP zones. |\n| `/tests-v2` | GET | Retrieve Matrix test codes and descriptions. |\n| `/submission-v2` | POST | Create a submission containing individual samples and optional composites. |\n| `/samples-v2` | GET | Retrieve sample records and status. |\n| `/results-v2` | GET | Retrieve samples with nested tests and analyte results. |\n\n## Authentication\n\nSend `POST https://one.mtxsci.com/api/1.1/wf/authenticate-v2` with `Content-Type: application/json` and your user's credentials in the JSON body:\n\n```json\n{\n  \"email\": \"user@example.com\",\n  \"password\": \"your-password\"\n}\n```\n\nThe saved response is:\n\n```json\n{\n  \"status\": \"success\",\n  \"response\": {\n    \"token\": \"string\",\n    \"user_id\": \"string\",\n    \"expires\": 86400\n  }\n}\n```\n\nUse `response.token` in the authorization header on every subsequent API request:\n\n```http\nAuthorization: Bearer <token>\n```\n\n`response.expires` is the token lifetime in seconds: `86400` seconds is 24 hours. Authenticate again to obtain a new token when it expires. The authentication request itself does not require a Bearer token. In Postman, supply the returned token as the collection's private local `token` value; requests inherit the collection's Bearer authentication.\n\n## Customer selection\n\nCall `GET https://one.mtxsci.com/api/1.1/wf/customers-v2?page=1` with the Bearer token. Each customer includes `company_name`, `division`, `customer_id`, and `lab`. Select an authorized `customer_id` for the intended division or plant and keep the mapping to your own organizational identifiers in your system.\n\n`customer_id` is required on all customer-scoped requests: include it in the query string for products, sites, tests, samples, and results, and in the JSON body for submissions. Authentication and customer discovery precede customer selection and do not take a `customer_id`.\n\n## Sample submission workflow\n\n1. Retrieve the authorized customer from **customers-v2**. Store the mapping between your division or plant and the Matrix `customer_id`.\n2. Retrieve **tests-v2** for that customer and map your test identifiers to Matrix test `code` values in your system. Retrieve **product-ids-v2** and **sites-v2** as needed.\n3. Build the **submission-v2** JSON body with the Matrix `customer_id`, laboratory, product IDs, and Matrix test codes. Assign a `client_sample_ref` to every sample and composite and store it with the corresponding sample in your system. References must be unique across both arrays within one submission; they may repeat in different submissions.\n4. Send the request. Check for `status: \"Success\"` and store the returned `sample_submission_id` alongside your internal request identifier. The authentication endpoint uses lowercase `\"success\"`; the submission example uses `\"Success\"`.\n5. Samples can take up to five minutes to appear after acceptance. Wait at least five minutes, then call **samples-v2** or **results-v2** with both `customer_id` and `sample_submission_id`. Use `client_sample_ref` to match individual samples and composites to your records within that submission.\n\nA customer result name is not required in the submission. Keep your result names and their Matrix test/analyte mappings in your own system. The saved request uses type placeholders; replace them with valid values, including distinct client references, before sending it.\n\n## Product specifications and customer items\n\n**product-ids-v2** returns `product_ids[]`. Each product has `product_id`, `description`, `loc_code`, and a `specification` object containing `name`, `description`, and `items[]`. Each item supplies `item_number` and `item_name`. Use these customer item codes to maintain the mapping to Matrix product IDs for specification management; submit the selected Matrix ID as `product_id`.\n\n## Results webhook workflow\n\nConfigure results delivery in the [Customer Portal integrations module](https://one.mtxsci.com). The webhook's shared secret is configured during setup and supplied in the agreed request header. Validate that header's secret before accepting or processing the payload. Each secret is tied to a division or plant; use your stored secret-to-division mapping to identify its customer context. The webhook secret is separate from the Bearer token used for API requests.\n\n1. Use the webhook's `SampleSubmissionID` to locate the internal request associated with the `sample_submission_id` saved from submission creation. These field names have different casing in the webhook and API responses.\n2. Within that submission, match samples to your records using `client_sample_ref`.\n3. Interpret test codes as the Matrix test codes used in the original submission. Maintain the mapping to your own test identifiers.\n4. Map each Matrix test code plus Matrix analyte to your result name. Where one pair maps to several result names, retain which name was originally requested with the submitted sample. For example, separate yeast or mold result names for 11 g and 25 g portions need that original context to select the correct destination field.\n\nThe results read response nests data at `samples[].tests[].results[]`: the test's `code` identifies the Matrix test, and each result's `analyte` identifies the analyte. Use the webhook's configured payload field names when receiving events.\n\n## Pagination and data conventions\n\nGET responses contain a string-valued `page`, a boolean `hasNextPage`, and a resource array (`customers`, `product_ids`, `sites`, `tests`, or `samples`). Start at page `1`, preserve the customer and filters, and increment the requested page while `hasNextPage` is `true`. Stop when it is `false`.\n\nPreserve exact field names, casing, and types. Identifiers and reported results are strings. Sample responses use `sample_submission_id` and `client_sample_ref`; submission inputs use `product_id`, `product_desc`, `lot`, and `request_number`, while read responses use `productId`, `prodDescription`, `lotNo`, and `customerRequestNo`.\n\nThe submission example represents `emp_zone` as a string; the site catalog represents `emp_zone` as an integer, and sample reads represent `empZone` as a string. Use the type documented for each payload. Date filters and submission collection dates use `YYYY-MM-DD`; read timestamps are strings. Preserve reported timestamps without assuming UTC.\n\nSaved read and submission responses contain JSON recorded as `text/plain;charset=utf-8`; authentication returns `application/json`. Parse the JSON body accordingly. Response examples document the available structure and do not establish every possible status or error response.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "11766879",
    "_collection_link": "https://go.postman.co/collection/59145524-fdbdfcb4-d8fc-4077-a8bb-264d830ca01a?source=collection_link"
  },
  "item": [
    {
      "name": "Authenticate",
      "request": {
        "auth": {
          "type": "noauth"
        },
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"email\": \"email@email.com\",\n  \"password\": \"password\"\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://one.mtxsci.com/api/1.1/wf/authenticate-v2",
          "protocol": "https",
          "host": [
            "one",
            "mtxsci",
            "com"
          ],
          "path": [
            "api",
            "1.1",
            "wf",
            "authenticate-v2"
          ]
        },
        "description": "## Authenticate\n\nExchange a Matrix Customer Portal user's email and password for a Bearer token.\n\n**Request:** `POST https://one.mtxsci.com/api/1.1/wf/authenticate-v2`\n\n**Authentication:** No existing token is required.\n\n**Headers:** `Content-Type: application/json` and `Accept: application/json`.\n\n### Request fields\n\n| Field | Type | Requirement |\n| --- | --- | --- |\n| `email` | String | Required. User's login email address. |\n| `password` | String | Required. User's password. |\n\n### Response fields\n\n`200 OK` returns JSON with `Content-Type: application/json`.\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `status` | String | `\"success\"` in the saved example. |\n| `response.token` | String | Bearer token for all subsequent API requests. |\n| `response.user_id` | String | Authenticated user identifier. |\n| `response.expires` | Integer | Token lifetime in seconds. `86400` is 24 hours. |\n\nPass `Authorization: Bearer <token>` using `response.token`. Authenticate again when the token expires. In Postman, supply it as the collection's private local `token` value. Customer selection follows authentication; this request does not take `customer_id`."
      },
      "response": [
        {
          "name": "200 OK",
          "originalRequest": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"email\": \"string\",\n  \"password\": \"string\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://one.mtxsci.com/api/1.1/wf/authenticate-v2",
              "protocol": "https",
              "host": [
                "one",
                "mtxsci",
                "com"
              ],
              "path": [
                "api",
                "1.1",
                "wf",
                "authenticate-v2"
              ]
            }
          },
          "status": "OK",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": ":status",
              "value": "200"
            },
            {
              "key": "date",
              "value": "Fri, 13 Nov 2026 02:30:59 GMT"
            },
            {
              "key": "content-type",
              "value": "application/json"
            },
            {
              "key": "x-powered-by",
              "value": "Express"
            },
            {
              "key": "x-content-type-options",
              "value": "nosniff"
            },
            {
              "key": "access-control-allow-origin",
              "value": "*"
            },
            {
              "key": "x-bubble-perf",
              "value": "{\"total\":237,\"percents\":{\"top\":{\"bubble_cpu\":15.9,\"block\":79.7,\"capacity_rl\":0,\"other_pause\":0,\"pre_fiber\":1.2},\"sub\":{\"pp_userdb\":0,\"pp_wait_userdb\":0,\"http_request\":0,\"serverjson\":73.9,\"appserver_cache_misses_time\":0,\"redis\":12.9,\"fiber_queue\":3,\"capacity_wait\":0}},\"counts\":{\"pp_userdb\":0,\"http_request\":0,\"derived_build\":0,\"derived_cache_attempts\":3,\"derived_cache_memory_misses\":3,\"serverjson\":140,\"appserver_cache_attempts\":2,\"appserver_mem_cache_hits\":0,\"appserver_cache_hits\":2,\"appserver_cache_misses\":0,\"redis\":23,\"fiber_queue\":312,\"blocks\":312},\"misc\":{\"userdb_results\":4,\"userdb_data\":2490,\"spent_time\":40716552}}"
            },
            {
              "key": "x-bubble-capacity-used",
              "value": "0.626 unit-seconds used"
            },
            {
              "key": "x-bubble-capacity-limit",
              "value": "0 ms slower"
            },
            {
              "key": "vary",
              "value": "Accept-Encoding"
            },
            {
              "key": "cf-cache-status",
              "value": "DYNAMIC"
            },
            {
              "key": "set-cookie",
              "value": "__cflb=04dToWAMj6wKyLMjjcQa6BpvypmyMykZU4dqy76vLd; HttpOnly; SameSite=None; Secure; Path=/; Expires=Fri, 13 Nov 2026 03:00:59 GMT"
            },
            {
              "key": "strict-transport-security",
              "value": "max-age=31536000"
            },
            {
              "key": "content-encoding",
              "value": "br"
            },
            {
              "key": "server",
              "value": "cloudflare"
            },
            {
              "key": "cf-ray",
              "value": "a59a5b88bdfde29d-GIG"
            },
            {
              "key": "alt-svc",
              "value": "h3=\":443\"; ma=86400"
            }
          ],
          "cookie": [],
          "body": "{\n  \"status\": \"success\",\n  \"response\": {\n    \"token\": \"string\",\n    \"user_id\": \"string\",\n    \"expires\": 86400\n  }\n}"
        }
      ]
    },
    {
      "name": "Customers",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "https://one.mtxsci.com/api/1.1/wf/customers-v2?page=1",
          "protocol": "https",
          "host": [
            "one",
            "mtxsci",
            "com"
          ],
          "path": [
            "api",
            "1.1",
            "wf",
            "customers-v2"
          ],
          "query": [
            {
              "key": "page",
              "value": "1"
            }
          ]
        },
        "description": "## List customers\n\nRetrieve the customers the authenticated user can access. Select the customer for the intended division or plant before making customer-scoped requests.\n\n**Request:** `GET https://one.mtxsci.com/api/1.1/wf/customers-v2`\n\n**Authentication:** `Authorization: Bearer <token>`, using `response.token` from **authenticate-v2**.\n\n**Success:** `200 OK` with a JSON body recorded as `text/plain;charset=utf-8`.\n\n**Request body:** None.\n\n### Query parameters\n\n| Parameter | Format | Requirement and usage |\n| --- | --- | --- |\n| `page` | Integer in query string | Page to retrieve; start at `1`. |\n\nThis discovery request does not take `customer_id`. Use each returned `customer_id` in subsequent catalog, sample, results, and submission requests. Keep the mapping to your own division or plant identifiers in your system.\n\n### Response envelope\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `page` | String | Returned page number, for example `\"1\"`. |\n| `hasNextPage` | Boolean | Whether another page is available. |\n| `customers` | Array of objects | Records in this page. |\n\nKeep the customer and filters unchanged while paging. Increment `page` while `hasNextPage` is `true`; stop when it is `false`.\n\n### Customer fields\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `company_name` | String | Company name. |\n| `division` | String | Division or plant associated with this customer. |\n| `customer_id` | String | Authorized Matrix customer identifier. |\n| `lab` | String | Laboratory associated with this customer. |\n\n### Saved example\n\nThe attached `200 OK` example preserves the documented field names, nesting, and types using generic placeholders. Use the actual `hasNextPage` flag to determine whether another page is available."
      },
      "response": [
        {
          "name": "200 OK",
          "originalRequest": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "https://one.mtxsci.com/api/1.1/wf/customers-v2?page=1",
              "protocol": "https",
              "host": [
                "one",
                "mtxsci",
                "com"
              ],
              "path": [
                "api",
                "1.1",
                "wf",
                "customers-v2"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1"
                }
              ]
            }
          },
          "status": "OK",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": ":status",
              "value": "200"
            },
            {
              "key": "date",
              "value": "Fri, 13 Nov 2026 02:28:27 GMT"
            },
            {
              "key": "content-type",
              "value": "text/plain;charset=utf-8"
            },
            {
              "key": "x-powered-by",
              "value": "Express"
            },
            {
              "key": "x-content-type-options",
              "value": "nosniff"
            },
            {
              "key": "access-control-allow-origin",
              "value": "*"
            },
            {
              "key": "x-bubble-perf",
              "value": "{\"total\":2489.9,\"percents\":{\"top\":{\"bubble_cpu\":2.3,\"block\":86.5,\"capacity_rl\":0,\"other_pause\":0,\"pre_fiber\":0},\"sub\":{\"pp_userdb\":0,\"pp_wait_userdb\":0,\"http_request\":0,\"serverjson\":94.5,\"appserver_cache_misses_time\":0,\"redis\":10.1,\"fiber_queue\":11,\"capacity_wait\":0}},\"counts\":{\"pp_userdb\":0,\"http_request\":0,\"derived_build\":1,\"derived_cache_attempts\":2,\"derived_cache_memory_misses\":2,\"derived_cache_redis_misses\":1,\"derived_cache_postgres_misses\":1,\"serverjson\":532,\"appserver_cache_attempts\":3,\"appserver_mem_cache_hits\":0,\"appserver_cache_hits\":1,\"appserver_cache_misses\":2,\"redis\":205,\"fiber_queue\":737,\"blocks\":737},\"misc\":{\"userdb_results\":0,\"userdb_data\":0,\"spent_time\":57522362,\"derived_build_time_spent\":50}}"
            },
            {
              "key": "x-bubble-capacity-used",
              "value": "0.885 unit-seconds used"
            },
            {
              "key": "x-bubble-capacity-limit",
              "value": "0 ms slower"
            },
            {
              "key": "vary",
              "value": "Accept-Encoding"
            },
            {
              "key": "cf-cache-status",
              "value": "DYNAMIC"
            },
            {
              "key": "strict-transport-security",
              "value": "max-age=31536000"
            },
            {
              "key": "content-encoding",
              "value": "br"
            },
            {
              "key": "server",
              "value": "cloudflare"
            },
            {
              "key": "cf-ray",
              "value": "a59a57c51ae0cb59-GIG"
            },
            {
              "key": "alt-svc",
              "value": "h3=\":443\"; ma=86400"
            }
          ],
          "cookie": [],
          "body": "{\n  \"page\": \"1\",\n  \"hasNextPage\": false,\n  \"customers\": [\n    {\n      \"company_name\": \"string\",\n      \"division\": \"string\",\n      \"customer_id\": \"string\",\n      \"lab\": \"string\"\n    },\n    {\n      \"company_name\": \"string\",\n      \"division\": \"string\",\n      \"customer_id\": \"string\",\n      \"lab\": \"string\"\n    }\n  ]\n}"
        }
      ]
    },
    {
      "name": "Products",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "https://one.mtxsci.com/api/1.1/wf/product-ids-v2?page=1&customer_id=&product_id=",
          "protocol": "https",
          "host": [
            "one",
            "mtxsci",
            "com"
          ],
          "path": [
            "api",
            "1.1",
            "wf",
            "product-ids-v2"
          ],
          "query": [
            {
              "key": "page",
              "value": "1"
            },
            {
              "key": "customer_id",
              "value": ""
            },
            {
              "key": "product_id",
              "value": ""
            }
          ]
        },
        "description": "## List products and specifications\n\nRetrieve customer products and their specification mappings. Use the selected Matrix `product_id` in **submission-v2**.\n\n**Request:** `GET https://one.mtxsci.com/api/1.1/wf/product-ids-v2`\n\n**Authentication:** `Authorization: Bearer <token>`, using `response.token` from **authenticate-v2**.\n\n**Success:** `200 OK` with a JSON body recorded as `text/plain;charset=utf-8`.\n\n**Request body:** None.\n\n### Query parameters\n\n| Parameter | Format | Requirement and usage |\n| --- | --- | --- |\n| `page` | Integer in query string | Page to retrieve; start at `1`. |\n| `customer_id` | String | Required. Authorized customer from **customers-v2**. |\n| `product_id` | String | Optional product identifier filter. |\n\n### Response envelope\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `page` | String | Returned page number, for example `\"1\"`. |\n| `hasNextPage` | Boolean | Whether another page is available. |\n| `product_ids` | Array of objects | Records in this page. |\n\nKeep the customer and filters unchanged while paging. Increment `page` while `hasNextPage` is `true`; stop when it is `false`.\n\n### Product fields\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `product_id` | String | Matrix product identifier used in submissions. |\n| `description` | String | Product description. |\n| `loc_code` | String | Location code. |\n| `specification` | Object | Specification associated with this product. |\n| `specification.name` | String | Specification name. |\n| `specification.description` | String | Specification description. |\n| `specification.items` | Array of objects | Customer items mapped to the product for specification management. |\n| `specification.items[].item_number` | String | Customer item code or number. |\n| `specification.items[].item_name` | String | Customer item name. |\n\nMaintain customer item code-to-Matrix product ID mappings using `specification.items`. Several items may map to the same product. Send the Matrix `product_id` in submissions; item metadata supplies the mapping context.\n\n### Saved example\n\nThe attached `200 OK` example preserves the documented field names, nesting, and types using generic placeholders. Use the actual `hasNextPage` flag to determine whether another page is available."
      },
      "response": [
        {
          "name": "200 OK",
          "originalRequest": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "https://one.mtxsci.com/api/1.1/wf/product-ids-v2?page=1&customer_id=&product_id=",
              "protocol": "https",
              "host": [
                "one",
                "mtxsci",
                "com"
              ],
              "path": [
                "api",
                "1.1",
                "wf",
                "product-ids-v2"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "customer_id",
                  "value": ""
                },
                {
                  "key": "product_id",
                  "value": ""
                }
              ]
            }
          },
          "status": "OK",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": ":status",
              "value": "200"
            },
            {
              "key": "date",
              "value": "Fri, 13 Nov 2026 18:27:12 GMT"
            },
            {
              "key": "content-type",
              "value": "text/plain;charset=utf-8"
            },
            {
              "key": "strict-transport-security",
              "value": "max-age=31536000"
            },
            {
              "key": "x-powered-by",
              "value": "Express"
            },
            {
              "key": "x-content-type-options",
              "value": "nosniff"
            },
            {
              "key": "access-control-allow-origin",
              "value": "*"
            },
            {
              "key": "x-bubble-perf",
              "value": "{\"total\":720.2,\"percents\":{\"top\":{\"bubble_cpu\":15.2,\"block\":74.4,\"capacity_rl\":0,\"other_pause\":0,\"pre_fiber\":0.1},\"sub\":{\"pp_userdb\":0,\"pp_wait_userdb\":0,\"http_request\":0,\"serverjson\":57.9,\"appserver_cache_misses_time\":0,\"redis\":51.3,\"fiber_queue\":9.8,\"capacity_wait\":0}},\"counts\":{\"pp_userdb\":0,\"http_request\":0,\"derived_build\":1,\"derived_cache_attempts\":2,\"derived_cache_memory_misses\":1,\"derived_cache_redis_misses\":1,\"derived_cache_postgres_misses\":1,\"serverjson\":538,\"appserver_cache_attempts\":3,\"appserver_mem_cache_hits\":0,\"appserver_cache_hits\":1,\"appserver_cache_misses\":2,\"redis\":214,\"fiber_queue\":768,\"blocks\":768},\"misc\":{\"userdb_results\":38,\"userdb_data\":16894,\"spent_time\":148523303,\"derived_build_time_spent\":69}}"
            },
            {
              "key": "x-bubble-capacity-used",
              "value": "2.285 unit-seconds used"
            },
            {
              "key": "x-bubble-capacity-limit",
              "value": "0 ms slower"
            },
            {
              "key": "vary",
              "value": "Accept-Encoding"
            },
            {
              "key": "content-encoding",
              "value": "gzip"
            },
            {
              "key": "cf-cache-status",
              "value": "DYNAMIC"
            },
            {
              "key": "server",
              "value": "cloudflare"
            },
            {
              "key": "cf-ray",
              "value": "a59fd43c1c646cc5-GRU"
            },
            {
              "key": "alt-svc",
              "value": "h3=\":443\"; ma=86400"
            }
          ],
          "cookie": [],
          "body": "{\n  \"page\": \"1\",\n  \"hasNextPage\": false,\n  \"product_ids\": [\n    {\n      \"product_id\": \"string\",\n      \"description\": \"string\",\n      \"loc_code\": \"string\",\n      \"specification\": {\n        \"name\": \"string\",\n        \"description\": \"string\",\n        \"items\": [\n          {\n            \"item_number\": \"string\",\n            \"item_name\": \"string\"\n          }\n        ]\n      }\n    }\n  ]\n}"
        }
      ]
    },
    {
      "name": "Results",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "https://one.mtxsci.com/api/1.1/wf/results-v2?page=1&customer_id=&sample_id=&sample_submission_id=&start_date=2026-08-19&end_date=2026-08-20",
          "protocol": "https",
          "host": [
            "one",
            "mtxsci",
            "com"
          ],
          "path": [
            "api",
            "1.1",
            "wf",
            "results-v2"
          ],
          "query": [
            {
              "key": "page",
              "value": "1"
            },
            {
              "key": "customer_id",
              "value": ""
            },
            {
              "key": "sample_id",
              "value": ""
            },
            {
              "key": "sample_submission_id",
              "value": ""
            },
            {
              "key": "start_date",
              "value": "2026-08-19"
            },
            {
              "key": "end_date",
              "value": "2026-08-20"
            }
          ]
        },
        "description": "## List test results\n\nRetrieve samples with nested laboratory tests and analyte results. Preserve the sample, test, and analyte context for each result.\n\n**Request:** `GET https://one.mtxsci.com/api/1.1/wf/results-v2`\n\n**Authentication:** `Authorization: Bearer <token>`, using `response.token` from **authenticate-v2**.\n\n**Success:** `200 OK` with a JSON body recorded as `text/plain;charset=utf-8`.\n\n**Request body:** None.\n\n### Query parameters\n\n| Parameter | Format | Requirement and usage |\n| --- | --- | --- |\n| `page` | Integer in query string | Page to retrieve; start at `1`. |\n| `customer_id` | String | Required. Authorized customer from **customers-v2**. |\n| `sample_id` | String | Optional downstream sample identifier filter. |\n| `sample_submission_id` | String | Optional submission filter: use `sample_submission_id` returned by **submission-v2**. |\n| `start_date` | `YYYY-MM-DD` | Date-range start filter. |\n| `end_date` | `YYYY-MM-DD` | Date-range end filter. |\n\n### Response envelope\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `page` | String | Returned page number, for example `\"1\"`. |\n| `hasNextPage` | Boolean | Whether another page is available. |\n| `samples` | Array of objects | Records in this page. |\n\nKeep the customer and filters unchanged while paging. Increment `page` while `hasNextPage` is `true`; stop when it is `false`.\n\n### Sample fields\n\nEach object in `samples` contains the sample fields documented on **samples-v2**, including `sample_submission_id` and `client_sample_ref`, plus `tests` (an array of objects).\n\n### Test fields\n\nThese fields appear in each object in `samples[].tests`.\n\n| Field | Observed type | Description |\n| --- | --- | --- |\n| `testDescription` | String | Human-readable test name. |\n| `code` | String | Test catalog code, corresponding to `code` in **tests-v2**. |\n| `aduedate` | String | Analysis due date and time as display text. |\n| `intelgroup` | String | Test grouping label returned by the service. |\n| `avaluser` | String | Analysis validation user reference. |\n| `avaldate` | String | Analysis validation date and time as display text. |\n| `analysisLateFlag` | String | Analysis late indicator encoded as text. |\n| `resultType` | String | Result classification. |\n| `nonreporting` | String | Nonreporting indicator encoded as text, not a JSON boolean. |\n| `rush` | Boolean | Rush indicator returned by the service. This response field does not make `rush` a supported **submission-v2** input. |\n| `quantity` | Integer | Quantity returned with the test. |\n| `tatAnalysis` | String | Analysis turnaround value as text. |\n| `testStatus` | String | Test status. |\n| `results` | Array of objects | Analyte results for this test. |\n\n### Result fields\n\nThese fields appear in each object in `samples[].tests[].results`.\n\n| Field | Observed type | Description |\n| --- | --- | --- |\n| `analyte` | String | Analyte name or description. |\n| `analyteGroup` | String | Analyte grouping label. |\n| `result` | String | Reported value; may contain numeric or qualitative text. |\n| `resultNumeric` | String | Numeric result representation encoded as text. Do not substitute it for the reported value. |\n| `unit` | String | Reported unit or basis of measurement. |\n| `mdl` | String | Detection-limit field returned by the service; may be empty. |\n| `violationValue` | String | Violation value returned by the service; may be empty. |\n| `violationType` | String | Violation type encoded as text. |\n| `violationFlag` | Boolean | Violation indicator returned by the service. |\n| `resultSortOrder` | String | Result sort-order value encoded as text. |\n\n### Correlation and result mapping\n\nTraverse `samples[].tests[].results[]`. Match the submission using `sample_submission_id` and the individual sample or composite using `client_sample_ref`. Use each test's `code` and each result's `analyte` to map the value to your system's result name. Preserve the originally requested result name when one Matrix test/analyte pair maps to several customer result names. Result names are maintained by your system and are not required in submission requests.\n\n`result`, `resultNumeric`, and `nonreporting` are strings; `rush` and `violationFlag` are booleans; `quantity` is an integer in the example. Preserve reported values, units, and field casing. Read timestamps have no offset; do not assume UTC.\n\n### Results webhook\n\nConfigure delivery in the [Customer Portal integrations module](https://one.mtxsci.com). Validate the shared secret in the header agreed during setup before processing a payload. The secret is tied to a division or plant and is separate from the API Bearer token.\n\nUse webhook `SampleSubmissionID` to find the internal request linked to the submission's returned `sample_submission_id`. Correlate samples by `client_sample_ref` within that submission. Maintain Matrix test code-to-customer test mappings and Matrix test code plus analyte-to-result-name mappings in your system. For a one-to-many mapping, retain which result name was originally requested, such as the applicable 11 g or 25 g yeast or mold result.\n\nThe webhook submission field is `SampleSubmissionID`; the read API field is `sample_submission_id`. Apply the webhook's configured payload field names when receiving events. The saved example below is the **results-v2 read response**.\n\n### Saved example\n\nThe attached `200 OK` example preserves the documented field names, nesting, and types using generic placeholders. Use the actual `hasNextPage` flag to determine whether another page is available."
      },
      "response": [
        {
          "name": "200 OK",
          "originalRequest": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "https://one.mtxsci.com/api/1.1/wf/results-v2?page=1&customer_id=&sample_id=&sample_submission_id=&start_date=2026-08-19&end_date=2026-08-20",
              "protocol": "https",
              "host": [
                "one",
                "mtxsci",
                "com"
              ],
              "path": [
                "api",
                "1.1",
                "wf",
                "results-v2"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "customer_id",
                  "value": ""
                },
                {
                  "key": "sample_id",
                  "value": ""
                },
                {
                  "key": "sample_submission_id",
                  "value": ""
                },
                {
                  "key": "start_date",
                  "value": "2026-08-19"
                },
                {
                  "key": "end_date",
                  "value": "2026-08-20"
                }
              ]
            }
          },
          "status": "OK",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": ":status",
              "value": "200"
            },
            {
              "key": "date",
              "value": "Fri, 13 Nov 2026 04:38:19 GMT"
            },
            {
              "key": "content-type",
              "value": "text/plain;charset=utf-8"
            },
            {
              "key": "strict-transport-security",
              "value": "max-age=31536000"
            },
            {
              "key": "x-powered-by",
              "value": "Express"
            },
            {
              "key": "x-content-type-options",
              "value": "nosniff"
            },
            {
              "key": "access-control-allow-origin",
              "value": "*"
            },
            {
              "key": "x-bubble-perf",
              "value": "{\"total\":3485,\"percents\":{\"top\":{\"bubble_cpu\":26.3,\"block\":71.1,\"capacity_rl\":0,\"other_pause\":0,\"pre_fiber\":0},\"sub\":{\"pp_userdb\":0,\"pp_wait_userdb\":0,\"http_request\":0,\"serverjson\":19.9,\"appserver_cache_misses_time\":0,\"redis\":6.2,\"fiber_queue\":2.3,\"capacity_wait\":0}},\"counts\":{\"pp_userdb\":0,\"http_request\":0,\"derived_build\":1,\"derived_cache_attempts\":2,\"derived_cache_memory_misses\":2,\"derived_cache_redis_misses\":1,\"derived_cache_postgres_misses\":1,\"serverjson\":545,\"appserver_cache_attempts\":4,\"appserver_mem_cache_hits\":0,\"appserver_cache_hits\":1,\"appserver_cache_misses\":3,\"redis\":348,\"fiber_queue\":1237,\"blocks\":1226},\"misc\":{\"userdb_results\":638,\"userdb_data\":1123677,\"spent_time\":1214089017,\"derived_build_time_spent\":49}}"
            },
            {
              "key": "x-bubble-capacity-used",
              "value": "18.678 unit-seconds used"
            },
            {
              "key": "x-bubble-capacity-limit",
              "value": "0 ms slower"
            },
            {
              "key": "vary",
              "value": "Accept-Encoding"
            },
            {
              "key": "content-encoding",
              "value": "gzip"
            },
            {
              "key": "cf-cache-status",
              "value": "DYNAMIC"
            },
            {
              "key": "set-cookie",
              "value": "__cflb=04dToWAMj6wKyLMjjcQa6BpvypmyMykSELG4xSnww3; HttpOnly; SameSite=None; Secure; Path=/; Expires=Fri, 13 Nov 2026 05:08:19 GMT"
            },
            {
              "key": "server",
              "value": "cloudflare"
            },
            {
              "key": "cf-ray",
              "value": "a59b15fc1db1a463-GRU"
            },
            {
              "key": "alt-svc",
              "value": "h3=\":443\"; ma=86400"
            }
          ],
          "cookie": [],
          "body": "{\n  \"page\": \"1\",\n  \"hasNextPage\": false,\n  \"samples\": [\n    {\n      \"sample_id\": \"string\",\n      \"client_sample_ref\": \"string\",\n      \"sampleNumber\": \"string\",\n      \"sample_submission_id\": \"string\",\n      \"email\": \"string\",\n      \"submitter\": \"string\",\n      \"locCode\": \"string\",\n      \"reportGroup\": \"string\",\n      \"productId\": \"string\",\n      \"prodDescription\": \"string\",\n      \"customerRequestNo\": \"string\",\n      \"lotNo\": \"string\",\n      \"sampleTemperature\": \"string\",\n      \"sampleCondition\": \"string\",\n      \"sampleDescription1\": \"string\",\n      \"sampleDueDate\": \"string\",\n      \"submittedAt\": \"string\",\n      \"collectedAt\": \"string\",\n      \"customerCollectedAt\": \"string\",\n      \"validatedAt\": \"string\",\n      \"reportedAt\": \"string\",\n      \"tatSample\": \"string\",\n      \"empZone\": \"string\",\n      \"sampleLateFlag\": \"string\",\n      \"sampleStatus\": \"string\",\n      \"tests\": [\n        {\n          \"testDescription\": \"string\",\n          \"code\": \"string\",\n          \"aduedate\": \"string\",\n          \"intelgroup\": \"string\",\n          \"avaluser\": \"string\",\n          \"avaldate\": \"string\",\n          \"analysisLateFlag\": \"string\",\n          \"resultType\": \"string\",\n          \"nonreporting\": \"string\",\n          \"rush\": false,\n          \"quantity\": 0,\n          \"tatAnalysis\": \"string\",\n          \"testStatus\": \"string\",\n          \"results\": [\n            {\n              \"analyte\": \"string\",\n              \"analyteGroup\": \"string\",\n              \"result\": \"string\",\n              \"resultNumeric\": \"string\",\n              \"unit\": \"string\",\n              \"mdl\": \"string\",\n              \"violationValue\": \"string\",\n              \"violationType\": \"string\",\n              \"violationFlag\": false,\n              \"resultSortOrder\": \"string\"\n            },\n            {\n              \"analyte\": \"string\",\n              \"analyteGroup\": \"string\",\n              \"result\": \"string\",\n              \"resultNumeric\": \"string\",\n              \"unit\": \"string\",\n              \"mdl\": \"string\",\n              \"violationValue\": \"string\",\n              \"violationType\": \"string\",\n              \"violationFlag\": false,\n              \"resultSortOrder\": \"string\"\n            }\n          ]\n        },\n        {\n          \"testDescription\": \"string\",\n          \"code\": \"string\",\n          \"aduedate\": \"string\",\n          \"intelgroup\": \"string\",\n          \"avaluser\": \"string\",\n          \"avaldate\": \"string\",\n          \"analysisLateFlag\": \"string\",\n          \"resultType\": \"string\",\n          \"nonreporting\": \"string\",\n          \"rush\": false,\n          \"quantity\": 0,\n          \"tatAnalysis\": \"string\",\n          \"testStatus\": \"string\",\n          \"results\": [\n            {\n              \"analyte\": \"string\",\n              \"analyteGroup\": \"string\",\n              \"result\": \"string\",\n              \"resultNumeric\": \"string\",\n              \"unit\": \"string\",\n              \"mdl\": \"string\",\n              \"violationValue\": \"string\",\n              \"violationType\": \"string\",\n              \"violationFlag\": false,\n              \"resultSortOrder\": \"string\"\n            }\n          ]\n        }\n      ]\n    }\n  ]\n}"
        }
      ]
    },
    {
      "name": "Samples",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "https://one.mtxsci.com/api/1.1/wf/samples-v2?page=1&customer_id=&sample_id=&sample_submission_id=&start_date=2026-10-01&end_date=2026-10-02",
          "protocol": "https",
          "host": [
            "one",
            "mtxsci",
            "com"
          ],
          "path": [
            "api",
            "1.1",
            "wf",
            "samples-v2"
          ],
          "query": [
            {
              "key": "page",
              "value": "1"
            },
            {
              "key": "customer_id",
              "value": ""
            },
            {
              "key": "sample_id",
              "value": ""
            },
            {
              "key": "sample_submission_id",
              "value": ""
            },
            {
              "key": "start_date",
              "value": "2026-10-01"
            },
            {
              "key": "end_date",
              "value": "2026-10-02"
            }
          ]
        },
        "description": "## List samples\n\nRetrieve sample identifiers, client references, product details, status, and dates for an authorized customer.\n\n**Request:** `GET https://one.mtxsci.com/api/1.1/wf/samples-v2`\n\n**Authentication:** `Authorization: Bearer <token>`, using `response.token` from **authenticate-v2**.\n\n**Success:** `200 OK` with a JSON body recorded as `text/plain;charset=utf-8`.\n\n**Request body:** None.\n\n### Query parameters\n\n| Parameter | Format | Requirement and usage |\n| --- | --- | --- |\n| `page` | Integer in query string | Page to retrieve; start at `1`. |\n| `customer_id` | String | Required. Authorized customer from **customers-v2**. |\n| `sample_id` | String | Optional downstream sample identifier filter. |\n| `sample_submission_id` | String | Optional submission filter: use `sample_submission_id` returned by **submission-v2**. |\n| `start_date` | `YYYY-MM-DD` | Date-range start filter. |\n| `end_date` | `YYYY-MM-DD` | Date-range end filter. |\n\n### Response envelope\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `page` | String | Returned page number, for example `\"1\"`. |\n| `hasNextPage` | Boolean | Whether another page is available. |\n| `samples` | Array of objects | Records in this page. |\n\nKeep the customer and filters unchanged while paging. Increment `page` while `hasNextPage` is `true`; stop when it is `false`.\n\n### Sample fields\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `client_sample_ref` | String | Your reference for this individual sample or composite; correlate within the submission. |\n| `collectedAt` | String | Collection date and time as display text. |\n| `customerCollectedAt` | String | Customer collection date and time as display text. |\n| `customerRequestNo` | String | Customer request reference; may be empty. **submission-v2** uses `request_number` instead. |\n| `email` | String | Email address returned with the sample. |\n| `empZone` | String | EMP zone encoded as text. |\n| `locCode` | String | Location code returned with the sample. |\n| `lotNo` | String | Lot reference. Preserve as text. **submission-v2** uses `lot` instead. |\n| `prodDescription` | String | Product description; may be empty. **submission-v2** uses `product_desc` instead. |\n| `productId` | String | Product identifier. Catalog and submission requests use `product_id` instead. |\n| `reportGroup` | String | Report grouping reference. |\n| `reportedAt` | String | Reporting date and time as display text. |\n| `sampleCondition` | String | Sample condition; may be empty. |\n| `sampleDescription1` | String | Sample description; may be empty. **submission-v2** uses `description` instead. |\n| `sampleDueDate` | String | Sample due date and time as display text. |\n| `sampleLateFlag` | String | Sample late indicator encoded as text. |\n| `sampleNumber` | String | Sample number returned alongside `sample_id`. Preserve both fields as returned. |\n| `sampleStatus` | String | Sample status. |\n| `sampleTemperature` | String | Sample temperature as text. |\n| `sample_id` | String | Downstream sample identifier. Preserve it separately from the submission and client references. |\n| `sample_submission_id` | String | Submission identifier returned by **submission-v2**. |\n| `submittedAt` | String | Submission date and time as display text. |\n| `submitter` | String | Submitter name returned with the sample. |\n| `tatSample` | String | Sample turnaround value as text. |\n| `validatedAt` | String | Validation date and time as display text. |\n\nUse `sample_submission_id` together with `client_sample_ref` to correlate samples to your records. The same client reference can occur in a different submission. Samples may take up to five minutes to appear after submission acceptance; wait at least five minutes before querying for a new submission.\n\nUse **results-v2** for nested tests and analyte results.\n\n### Saved example\n\nThe attached `200 OK` example preserves the documented field names, nesting, and types using generic placeholders. Use the actual `hasNextPage` flag to determine whether another page is available."
      },
      "response": [
        {
          "name": "200 OK",
          "originalRequest": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "https://one.mtxsci.com/api/1.1/wf/samples-v2?page=1&customer_id=&sample_id=&sample_submission_id=&start_date=&end_date=",
              "protocol": "https",
              "host": [
                "one",
                "mtxsci",
                "com"
              ],
              "path": [
                "api",
                "1.1",
                "wf",
                "samples-v2"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "customer_id",
                  "value": ""
                },
                {
                  "key": "sample_id",
                  "value": ""
                },
                {
                  "key": "sample_submission_id",
                  "value": ""
                },
                {
                  "key": "start_date",
                  "value": ""
                },
                {
                  "key": "end_date",
                  "value": ""
                }
              ]
            }
          },
          "status": "OK",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": ":status",
              "value": "200"
            },
            {
              "key": "date",
              "value": "Fri, 13 Nov 2026 04:04:01 GMT"
            },
            {
              "key": "content-type",
              "value": "text/plain;charset=utf-8"
            },
            {
              "key": "x-powered-by",
              "value": "Express"
            },
            {
              "key": "x-content-type-options",
              "value": "nosniff"
            },
            {
              "key": "access-control-allow-origin",
              "value": "*"
            },
            {
              "key": "x-bubble-perf",
              "value": "{\"total\":312.3,\"percents\":{\"top\":{\"bubble_cpu\":47.3,\"block\":26.3,\"capacity_rl\":0,\"other_pause\":0,\"pre_fiber\":0.2},\"sub\":{\"pp_userdb\":0,\"pp_wait_userdb\":0,\"http_request\":0,\"serverjson\":18,\"appserver_cache_misses_time\":0,\"redis\":10.1,\"fiber_queue\":26.2,\"capacity_wait\":0}},\"counts\":{\"pp_userdb\":0,\"http_request\":0,\"derived_build\":0,\"derived_cache_attempts\":2,\"derived_cache_memory_misses\":2,\"serverjson\":25,\"appserver_cache_attempts\":2,\"appserver_mem_cache_hits\":0,\"appserver_cache_hits\":2,\"appserver_cache_misses\":0,\"redis\":35,\"fiber_queue\":107,\"blocks\":90},\"misc\":{\"userdb_results\":200,\"userdb_data\":148605,\"spent_time\":152849776}}"
            },
            {
              "key": "x-bubble-capacity-used",
              "value": "2.352 unit-seconds used"
            },
            {
              "key": "x-bubble-capacity-limit",
              "value": "0 ms slower"
            },
            {
              "key": "vary",
              "value": "Accept-Encoding"
            },
            {
              "key": "content-encoding",
              "value": "gzip"
            },
            {
              "key": "cf-cache-status",
              "value": "DYNAMIC"
            },
            {
              "key": "strict-transport-security",
              "value": "max-age=31536000"
            },
            {
              "key": "server",
              "value": "cloudflare"
            },
            {
              "key": "cf-ray",
              "value": "a59ae3d05982e41d-GRU"
            },
            {
              "key": "alt-svc",
              "value": "h3=\":443\"; ma=86400"
            }
          ],
          "cookie": [],
          "body": "{\n  \"page\": \"1\",\n  \"hasNextPage\": false,\n  \"samples\": [\n    {\n      \"client_sample_ref\": \"string\",\n      \"collectedAt\": \"string\",\n      \"customerCollectedAt\": \"string\",\n      \"customerRequestNo\": \"string\",\n      \"email\": \"string\",\n      \"empZone\": \"string\",\n      \"locCode\": \"string\",\n      \"lotNo\": \"string\",\n      \"prodDescription\": \"string\",\n      \"productId\": \"string\",\n      \"reportGroup\": \"string\",\n      \"reportedAt\": \"string\",\n      \"sampleCondition\": \"string\",\n      \"sampleDescription1\": \"string\",\n      \"sampleDueDate\": \"string\",\n      \"sampleLateFlag\": \"string\",\n      \"sampleNumber\": \"string\",\n      \"sampleStatus\": \"string\",\n      \"sampleTemperature\": \"string\",\n      \"sample_id\": \"string\",\n      \"sample_submission_id\": \"string\",\n      \"submittedAt\": \"string\",\n      \"submitter\": \"string\",\n      \"tatSample\": \"string\",\n      \"validatedAt\": \"string\"\n    },\n    {\n      \"client_sample_ref\": \"string\",\n      \"collectedAt\": \"string\",\n      \"customerCollectedAt\": \"string\",\n      \"customerRequestNo\": \"string\",\n      \"email\": \"string\",\n      \"empZone\": \"string\",\n      \"locCode\": \"string\",\n      \"lotNo\": \"string\",\n      \"prodDescription\": \"string\",\n      \"productId\": \"string\",\n      \"reportGroup\": \"string\",\n      \"reportedAt\": \"string\",\n      \"sampleCondition\": \"string\",\n      \"sampleDescription1\": \"string\",\n      \"sampleDueDate\": \"string\",\n      \"sampleLateFlag\": \"string\",\n      \"sampleNumber\": \"string\",\n      \"sampleStatus\": \"string\",\n      \"sampleTemperature\": \"string\",\n      \"sample_id\": \"string\",\n      \"sample_submission_id\": \"string\",\n      \"submittedAt\": \"string\",\n      \"submitter\": \"string\",\n      \"tatSample\": \"string\",\n      \"validatedAt\": \"string\"\n    }\n  ]\n}"
        }
      ]
    },
    {
      "name": "Sites",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "https://one.mtxsci.com/api/1.1/wf/sites-v2?page=1&customer_id=&site_id=",
          "protocol": "https",
          "host": [
            "one",
            "mtxsci",
            "com"
          ],
          "path": [
            "api",
            "1.1",
            "wf",
            "sites-v2"
          ],
          "query": [
            {
              "key": "page",
              "value": "1"
            },
            {
              "key": "customer_id",
              "value": ""
            },
            {
              "key": "site_id",
              "value": ""
            }
          ]
        },
        "description": "## List sites\n\nRetrieve sites, EMP zones, area, and location. Send a site ID as `site_id` in **submission-v2**.\n\n**Request:** `GET https://one.mtxsci.com/api/1.1/wf/sites-v2`\n\n**Authentication:** `Authorization: Bearer <token>`, using `response.token` from **authenticate-v2**.\n\n**Success:** `200 OK` with a JSON body recorded as `text/plain;charset=utf-8`.\n\n**Request body:** None.\n\n### Query parameters\n\n| Parameter | Format | Requirement and usage |\n| --- | --- | --- |\n| `page` | Integer in query string | Page to retrieve; start at `1`. |\n| `customer_id` | String | Required. Authorized customer from **customers-v2**. |\n| `site_id` | String | Optional site identifier filter. |\n\n### Response envelope\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `page` | String | Returned page number, for example `\"1\"`. |\n| `hasNextPage` | Boolean | Whether another page is available. |\n| `sites` | Array of objects | Records in this page. |\n\nKeep the customer and filters unchanged while paging. Increment `page` while `hasNextPage` is `true`; stop when it is `false`.\n\n### Site fields\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `site_id` | String | Site identifier; preserve numeric-looking IDs as strings. |\n| `site_name` | String | Site display name. |\n| `emp_zone` | Integer | EMP zone in the site catalog. Submission `emp_zone` uses a string in its saved request. |\n| `custom_field_01` | String | Custom site field. |\n| `custom_field_02` | String | Custom site field. |\n| `custom_field_03` | String | Custom site field. |\n| `custom_field_04` | String | Custom site field. |\n| `custom_field_05` | String | Custom site field. |\n| `area` | String | Area the site belongs to. |\n| `location` | String | Location the site belongs to. |\n\n### Saved example\n\nThe attached `200 OK` example preserves the documented field names, nesting, and types using generic placeholders. Use the actual `hasNextPage` flag to determine whether another page is available."
      },
      "response": [
        {
          "name": "200 OK",
          "originalRequest": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "https://one.mtxsci.com/api/1.1/wf/sites-v2?page=1&customer_id=&site_id=",
              "protocol": "https",
              "host": [
                "one",
                "mtxsci",
                "com"
              ],
              "path": [
                "api",
                "1.1",
                "wf",
                "sites-v2"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "customer_id",
                  "value": ""
                },
                {
                  "key": "site_id",
                  "value": ""
                }
              ]
            }
          },
          "status": "OK",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": ":status",
              "value": "200"
            },
            {
              "key": "date",
              "value": "Fri, 13 Nov 2026 02:34:40 GMT"
            },
            {
              "key": "content-type",
              "value": "text/plain;charset=utf-8"
            },
            {
              "key": "x-powered-by",
              "value": "Express"
            },
            {
              "key": "x-content-type-options",
              "value": "nosniff"
            },
            {
              "key": "access-control-allow-origin",
              "value": "*"
            },
            {
              "key": "x-bubble-perf",
              "value": "{\"total\":205.7,\"percents\":{\"top\":{\"bubble_cpu\":54.8,\"block\":39.7,\"capacity_rl\":0,\"other_pause\":0,\"pre_fiber\":0.9},\"sub\":{\"pp_userdb\":0,\"pp_wait_userdb\":0,\"http_request\":0,\"serverjson\":21,\"appserver_cache_misses_time\":0,\"redis\":13.9,\"fiber_queue\":4.6,\"capacity_wait\":0}},\"counts\":{\"pp_userdb\":0,\"http_request\":0,\"derived_build\":0,\"derived_cache_attempts\":2,\"derived_cache_memory_misses\":2,\"serverjson\":19,\"appserver_cache_attempts\":2,\"appserver_mem_cache_hits\":0,\"appserver_cache_hits\":2,\"appserver_cache_misses\":0,\"redis\":48,\"fiber_queue\":97,\"blocks\":94},\"misc\":{\"userdb_results\":68,\"userdb_data\":157567,\"spent_time\":118645114}}"
            },
            {
              "key": "x-bubble-capacity-used",
              "value": "1.825 unit-seconds used"
            },
            {
              "key": "x-bubble-capacity-limit",
              "value": "0 ms slower"
            },
            {
              "key": "vary",
              "value": "Accept-Encoding"
            },
            {
              "key": "content-encoding",
              "value": "gzip"
            },
            {
              "key": "cf-cache-status",
              "value": "DYNAMIC"
            },
            {
              "key": "strict-transport-security",
              "value": "max-age=31536000"
            },
            {
              "key": "server",
              "value": "cloudflare"
            },
            {
              "key": "cf-ray",
              "value": "a59a60ef4e88e2a2-GIG"
            },
            {
              "key": "alt-svc",
              "value": "h3=\":443\"; ma=86400"
            }
          ],
          "cookie": [],
          "body": "{\n  \"page\": \"1\",\n  \"hasNextPage\": false,\n  \"sites\": [\n    {\n      \"site_id\": \"string\",\n      \"site_name\": \"string\",\n      \"emp_zone\": 1,\n      \"custom_field_01\": \"string\",\n      \"custom_field_02\": \"string\",\n      \"custom_field_03\": \"string\",\n      \"custom_field_04\": \"string\",\n      \"custom_field_05\": \"string\",\n      \"area\": \"string\",\n      \"location\": \"string\"\n    },\n    {\n      \"site_id\": \"string\",\n      \"site_name\": \"string\",\n      \"emp_zone\": 2,\n      \"custom_field_01\": \"string\",\n      \"custom_field_02\": \"string\",\n      \"custom_field_03\": \"string\",\n      \"custom_field_04\": \"string\",\n      \"custom_field_05\": \"string\",\n      \"area\": \"string\",\n      \"location\": \"string\"\n    }\n  ]\n}"
        }
      ]
    },
    {
      "name": "Submission",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"customer_id\": \"string\",\n  \"requested_by\": \"string\",\n  \"lab\": \"string\",\n  \"po_number\": \"string\",\n  \"submission_type\": \"string\",\n  \"additional_info\": \"string\",\n  \"special_instructions\": \"string\",\n  \"samples\": [\n    {\n      \"client_sample_ref\": \"string\",\n      \"description\": \"string\",\n      \"product_id\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"tests\": [\"string\",\"string\"]\n    },\n    {\n      \"client_sample_ref\": \"string\",\n      \"description\": \"string\",\n      \"product_id\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"tests\": [\"string\"]\n    }\n  ],\n  \"composites\": [\n    {\n      \"client_sample_ref\": \"string\",\n      \"description\": \"string\",\n      \"product_id\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"client_sample_refs\": [\"string\",\"string\"],\n      \"tests\": [\"string\"]\n    }\n  ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "https://one.mtxsci.com/api/1.1/wf/submission-v2",
          "protocol": "https",
          "host": [
            "one",
            "mtxsci",
            "com"
          ],
          "path": [
            "api",
            "1.1",
            "wf",
            "submission-v2"
          ]
        },
        "description": "## Create a submission\n\nCreate one submission containing individual samples and optional composites. Each composite has its own fields and tests and refers to individual samples by their client references.\n\n**Request:** `POST https://one.mtxsci.com/api/1.1/wf/submission-v2`\n\n**Success:** `200 OK` with a JSON body containing `sample_submission_id` and `status`. The recorded response media type is `text/plain;charset=utf-8`.\n\n**Authentication:** `Authorization: Bearer <token>`, using `response.token` from **authenticate-v2**.\n\n**Headers:** `Content-Type: application/json` and `Accept: application/json`.\n\n**Request body:** JSON containing submission fields, individual samples, and optional composites.\n\n### Before you submit\n\nObtain the lab enum supplied to the customer and the applicable catalog endpoints. The saved request uses type placeholders instead of real values. Replace them with authorized values before sending.\n\n### Submission fields\n\n| Field | Type | Requirement | Description |\n| --- | --- | --- | --- |\n| `customer_id` | String | Required | Authorized customer from **customers-v2**; identifies the division or plant. |\n| `requested_by` | String or null | Caller-derived | Requester identifier, such as an email address. `null` derives the requester from the authenticated caller. Arbitrary caller identities require authorization. |\n| `lab` | String | Required | Exact value from the lab enum supplied to the customer. |\n| `po_number` | String or null | Optional | Purchase order reference; preserve leading zeros. |\n| `submission_type` | String | Required | Exactly `Product` or `Environmental`. |\n| `additional_info` | String or null | Optional | Submission-level information. |\n| `special_instructions` | String or null | Optional | Submission-level instructions. |\n| `samples` | Array of objects | At least one | Individual samples, declared once each. |\n| `composites` | Array of objects | Optional | Composite definitions; omit or supply an empty array when none are needed. |\n\n### Sample and composite fields\n\nThese fields apply to each object in both `samples` and `composites`. Composite values are independent of the values on their members.\n\n| Field | Type | Requirement | Description |\n| --- | --- | --- | --- |\n| `client_sample_ref` | String | Required | Nonempty reference, unique across both arrays within this submission. May repeat in different submissions; store with the corresponding external sample record. |\n| `description` | String or null |  | Description of this individual sample or composite. |\n| `product_id` | String | Required for samples and composites | Product ID from **product-ids-v2**. |\n| `product_desc` | String or null |  | Product description. Read responses use `prodDescription` instead. |\n| `lot` | String or null |  | Lot reference, preserved as text. |\n| `collection_date` | String or null |  | Date in `YYYY-MM-DD` format, without an inferred timezone. |\n| `request_number` | String or null |  | Client request reference, distinct from the generated `sample_submission_id`. |\n| `site_id` | String or null | Optional | Site **ID** from **sites-v2**, not its name. Preserve numeric-looking IDs as strings, such as `\"4\"`. |\n| `emp_zone` | String or null | Optional | EMP zone encoded as a string, matching the saved request. Omit or use `null` when blank. |\n| `tests` | Array of strings |  | Tests for this row's material, as exact test **codes** (the `code` field of **tests-v2**) rather than test descriptions. |\n| `client_sample_refs` | Array of strings | Required for composites | Composite-only membership list, referencing `samples[].client_sample_ref`. |\n\nOptional nullable fields may be omitted or sent as `null`.\n\n### Environmental site and zone behavior\n\n`site_id` and `emp_zone` are optional for both submission types. For an `Environmental` row with a supplied `site_id` and omitted or null `emp_zone`, the application looks up the zone from that site's existing information. A composite uses its own site; its zone is not inferred from its members. Neither field becomes required when no site is supplied.\n\n### Composite membership and tests\n\n- Declare each individual sample once in `samples`.\n    \n- Each composite has its own unique `client_sample_ref` and a nonempty `client_sample_refs` membership list.\n    \n- Members must reference individual samples in this request. Missing references, self references, composite references, and duplicate members within one composite are rejected.\n    \n- A sample may belong to several composites.\n    \n- Composite tests apply to the combined material independently of tests on individual samples and other composites. Do not add tests to constituents unless this is the desired outcome.\n    \n\n### Response fields\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `sample_submission_id` | String | Server-generated submission identifier. Store beside your internal request identifier; use it as the `sample_submission_id` filter on **samples-v2** and **results-v2**. |\n| `status` | String | `\"Success\"` in the saved acceptance response. Preserve the capital `S`. |\n\nThe `200 OK` example is `{\"sample_submission_id\":\"string\",\"status\":\"Success\"}`. Check that `status` is `\"Success\"` before recording acceptance. Authentication uses lowercase `\"success\"` in its own response.\n\nSamples and composites are created after acceptance and can take up to five minutes to appear. Wait at least five minutes before querying with both `customer_id` and `sample_submission_id`. The response does not return per-sample identifiers. Webhook `SampleSubmissionID` refers to the submission saved from this response; correlate samples using `client_sample_ref` within that submission.\n\n### Customer mappings\n\nUse Matrix test codes from **tests-v2**. A customer result name is not required in the request. Maintain test mappings and Matrix test code plus analyte-to-result-name mappings in your own system, including the originally selected result name where a mapping is one-to-many.\n\n### Errors\n\nInspect both the HTTP response and submission `status`. The documented malformed-payload status is `BLOCKING_ERROR`; a full error response example is not supplied. Authentication failures return `401 Unauthorized`; obtain a new token as needed. Reconcile an uncertain submission outcome before resending a creation request."
      },
      "response": [
        {
          "name": "200 OK",
          "originalRequest": {
            "method": "POST",
            "header": [
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"customer_id\": \"string\",\n  \"requested_by\": \"string\",\n  \"lab\": \"string\",\n  \"po_number\": \"string\",\n  \"submission_type\": \"string\",\n  \"additional_info\": \"string\",\n  \"special_instructions\": \"string\",\n  \"samples\": [\n    {\n      \"client_sample_ref\": \"string\",\n      \"description\": \"string\",\n      \"product_id\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"tests\": [\"string\",\"string\"]\n    },\n    {\n      \"client_sample_ref\": \"string\",\n      \"description\": \"string\",\n      \"product_id\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"tests\": [\"string\"]\n    }\n  ],\n  \"composites\": [\n    {\n      \"client_sample_ref\": \"string\",\n      \"description\": \"string\",\n      \"product_id\": \"string\",\n      \"product_desc\": \"string\",\n      \"lot\": \"string\",\n      \"collection_date\": \"string\",\n      \"request_number\": \"string\",\n      \"site_id\": \"string\",\n      \"emp_zone\": \"string\",\n      \"client_sample_refs\": [\"string\",\"string\"],\n      \"tests\": [\"string\"]\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://one.mtxsci.com/api/1.1/wf/submission-v2",
              "protocol": "https",
              "host": [
                "one",
                "mtxsci",
                "com"
              ],
              "path": [
                "api",
                "1.1",
                "wf",
                "submission-v2"
              ]
            }
          },
          "status": "OK",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": ":status",
              "value": "200"
            },
            {
              "key": "date",
              "value": "Fri, 13 Nov 2026 05:36:46 GMT"
            },
            {
              "key": "content-type",
              "value": "text/plain;charset=utf-8"
            },
            {
              "key": "strict-transport-security",
              "value": "max-age=31536000"
            },
            {
              "key": "x-powered-by",
              "value": "Express"
            },
            {
              "key": "x-content-type-options",
              "value": "nosniff"
            },
            {
              "key": "access-control-allow-origin",
              "value": "*"
            },
            {
              "key": "x-bubble-perf",
              "value": "{\"total\":337,\"percents\":{\"top\":{\"bubble_cpu\":32.7,\"block\":54,\"capacity_rl\":0,\"other_pause\":0,\"pre_fiber\":0.2},\"sub\":{\"pp_userdb\":0,\"pp_wait_userdb\":0,\"http_request\":0,\"serverjson\":17.9,\"appserver_cache_misses_time\":0,\"redis\":15.2,\"fiber_queue\":12.1,\"capacity_wait\":0}},\"counts\":{\"pp_userdb\":0,\"http_request\":0,\"derived_build\":0,\"derived_cache_attempts\":3,\"derived_cache_memory_misses\":3,\"serverjson\":39,\"appserver_cache_attempts\":3,\"appserver_mem_cache_hits\":0,\"appserver_cache_hits\":3,\"appserver_cache_misses\":0,\"redis\":50,\"fiber_queue\":145,\"blocks\":140},\"misc\":{\"userdb_results\":9,\"userdb_data\":3955,\"spent_time\":127064937}}"
            },
            {
              "key": "x-bubble-capacity-used",
              "value": "1.955 unit-seconds used"
            },
            {
              "key": "x-bubble-capacity-limit",
              "value": "0 ms slower"
            },
            {
              "key": "vary",
              "value": "Accept-Encoding"
            },
            {
              "key": "cf-cache-status",
              "value": "DYNAMIC"
            },
            {
              "key": "content-encoding",
              "value": "br"
            },
            {
              "key": "server",
              "value": "cloudflare"
            },
            {
              "key": "cf-ray",
              "value": "a59b6bb16fb101c0-GRU"
            },
            {
              "key": "alt-svc",
              "value": "h3=\":443\"; ma=86400"
            }
          ],
          "cookie": [],
          "body": "{\n  \"sample_submission_id\": \"string\",\n  \"status\": \"Success\"\n}"
        }
      ]
    },
    {
      "name": "Tests",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "https://one.mtxsci.com/api/1.1/wf/tests-v2?page=1&customer_id=&code=",
          "protocol": "https",
          "host": [
            "one",
            "mtxsci",
            "com"
          ],
          "path": [
            "api",
            "1.1",
            "wf",
            "tests-v2"
          ],
          "query": [
            {
              "key": "page",
              "value": "1"
            },
            {
              "key": "customer_id",
              "value": ""
            },
            {
              "key": "code",
              "value": ""
            }
          ]
        },
        "description": "## List tests\n\nRetrieve Matrix test codes and descriptions for a customer. Maintain the mapping between your test identifiers and Matrix codes in your system.\n\n**Request:** `GET https://one.mtxsci.com/api/1.1/wf/tests-v2`\n\n**Authentication:** `Authorization: Bearer <token>`, using `response.token` from **authenticate-v2**.\n\n**Success:** `200 OK` with a JSON body recorded as `text/plain;charset=utf-8`.\n\n**Request body:** None.\n\n### Query parameters\n\n| Parameter | Format | Requirement and usage |\n| --- | --- | --- |\n| `page` | Integer in query string | Page to retrieve; start at `1`. |\n| `customer_id` | String | Required. Authorized customer from **customers-v2**. |\n| `code` | String | Optional Matrix test code filter. |\n\n### Response envelope\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `page` | String | Returned page number, for example `\"1\"`. |\n| `hasNextPage` | Boolean | Whether another page is available. |\n| `tests` | Array of objects | Records in this page. |\n\nKeep the customer and filters unchanged while paging. Increment `page` while `hasNextPage` is `true`; stop when it is `false`.\n\n### Test fields\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `description` | String | Human-readable test name. |\n| `code` | String | Matrix test code. Send it in `tests` on **submission-v2**; **results-v2** returns it in each test's `code` field. |\n\n### Saved example\n\nThe attached `200 OK` example preserves the documented field names, nesting, and types using generic placeholders. Use the actual `hasNextPage` flag to determine whether another page is available."
      },
      "response": [
        {
          "name": "200 OK",
          "originalRequest": {
            "method": "GET",
            "header": [],
            "url": {
              "raw": "https://one.mtxsci.com/api/1.1/wf/tests-v2?page=1&customer_id=&code=",
              "protocol": "https",
              "host": [
                "one",
                "mtxsci",
                "com"
              ],
              "path": [
                "api",
                "1.1",
                "wf",
                "tests-v2"
              ],
              "query": [
                {
                  "key": "page",
                  "value": "1"
                },
                {
                  "key": "customer_id",
                  "value": ""
                },
                {
                  "key": "code",
                  "value": ""
                }
              ]
            }
          },
          "status": "OK",
          "code": 200,
          "_postman_previewlanguage": "json",
          "header": [
            {
              "key": ":status",
              "value": "200"
            },
            {
              "key": "date",
              "value": "Fri, 13 Nov 2026 02:33:46 GMT"
            },
            {
              "key": "content-type",
              "value": "text/plain;charset=utf-8"
            },
            {
              "key": "x-powered-by",
              "value": "Express"
            },
            {
              "key": "x-content-type-options",
              "value": "nosniff"
            },
            {
              "key": "access-control-allow-origin",
              "value": "*"
            },
            {
              "key": "x-bubble-perf",
              "value": "{\"total\":84.7,\"percents\":{\"top\":{\"bubble_cpu\":38.1,\"block\":42.7,\"capacity_rl\":0,\"other_pause\":0,\"pre_fiber\":0.6},\"sub\":{\"pp_userdb\":0,\"pp_wait_userdb\":0,\"http_request\":0,\"serverjson\":30,\"appserver_cache_misses_time\":0,\"redis\":17.6,\"fiber_queue\":14.7,\"capacity_wait\":0}},\"counts\":{\"pp_userdb\":0,\"http_request\":0,\"derived_build\":0,\"derived_cache_attempts\":2,\"derived_cache_memory_misses\":2,\"serverjson\":17,\"appserver_cache_attempts\":2,\"appserver_mem_cache_hits\":0,\"appserver_cache_hits\":2,\"appserver_cache_misses\":0,\"redis\":27,\"fiber_queue\":66,\"blocks\":66},\"misc\":{\"userdb_results\":0,\"userdb_data\":0,\"spent_time\":32321649}}"
            },
            {
              "key": "x-bubble-capacity-used",
              "value": "0.497 unit-seconds used"
            },
            {
              "key": "x-bubble-capacity-limit",
              "value": "0 ms slower"
            },
            {
              "key": "vary",
              "value": "Accept-Encoding"
            },
            {
              "key": "cf-cache-status",
              "value": "DYNAMIC"
            },
            {
              "key": "strict-transport-security",
              "value": "max-age=31536000"
            },
            {
              "key": "content-encoding",
              "value": "br"
            },
            {
              "key": "server",
              "value": "cloudflare"
            },
            {
              "key": "cf-ray",
              "value": "a59a5f9dbc79e2a2-GIG"
            },
            {
              "key": "alt-svc",
              "value": "h3=\":443\"; ma=86400"
            }
          ],
          "cookie": [],
          "body": "{\n  \"page\": \"1\",\n  \"hasNextPage\": false,\n  \"tests\": [\n    {\n      \"description\": \"string\",\n      \"code\": \"string\"\n    },\n    {\n      \"description\": \"string\",\n      \"code\": \"string\"\n    }\n  ]\n}"
        }
      ]
    }
  ],
  "auth": {
    "type": "bearer",
    "bearer": [
      {
        "key": "token",
        "value": "{{token}}",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "token",
      "value": ""
    },
    {
      "key": "bearer_token_0i4p",
      "secret": true,
      "source": {
        "provider": "postman",
        "postman": {
          "type": "cloud",
          "secretId": "0dfbc5cb-3a91-4ad9-85cb-4caf84da44ad",
          "vaultId": "962118d1-97e4-4254-9d8a-8cb4dffee8de"
        }
      }
    }
  ]
}