Skip to navigation

Tests

View as Markdown

List tests

Retrieve Matrix test codes and descriptions for a customer. Maintain the mapping between your test identifiers and Matrix codes in your system.

Request: GET https://one.mtxsci.com/api/1.1/wf/tests-v2

Authentication: Authorization: Bearer <token>, using response.token from authenticate-v2.

Success: 200 OK with a JSON body recorded as text/plain;charset=utf-8.

Request body: None.

Query parameters

ParameterFormatRequirement and usage
pageInteger in query stringPage to retrieve; start at 1.
customer_idStringRequired. Authorized customer from customers-v2.
codeStringOptional Matrix test code filter.

Response envelope

FieldTypeDescription
pageStringReturned page number, for example "1".
hasNextPageBooleanWhether another page is available.
testsArray of objectsRecords in this page.

Keep the customer and filters unchanged while paging. Increment page while hasNextPage is true; stop when it is false.

Test fields

FieldTypeDescription
descriptionStringHuman-readable test name.
codeStringMatrix test code. Send it in tests on submission-v2; results-v2 returns it in each test’s code field.

Saved example

The 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.

Authentication

AuthorizationBearer

Use response.token from authenticate-v2. response.expires is the lifetime in seconds (86400 = 24 hours).

Query parameters

pageintegerOptional>=1Defaults to 1

Returned page number, for example "1".

customer_idstringRequired

Required authorized customer_id from customers-v2.

codestringOptional

Matrix test code. Send it in tests on submission-v2; results-v2 returns it in each test’s code field.

Response

OK