---
title: "Get messages for TestCase"
method: GET
path: "/tests/{id}/messages/{testCaseId}"
tags: ["test"]
---

# Get messages for TestCase

`GET /tests/{id}/messages/{testCaseId}`

## Response `200`

List of request and response messages for this TestCase

- RequestResponsePair[]
  - `request` Request, required — A mock invocation or test request
    - `id` string — Unique identifier of Request
    - `name` string, required — Unique distinct name of this Request
    - `content` string — Body content for this request
    - `operationId` string, required — Identifier of Operation this Request is associated to
    - `testCaseId` string — Unique identifier of TestCase this Request is attached (in case of a test)
    - `headers` Header[] — Headers for this Request
      - `name` string, required — Unique distinct name of this Header
      - `values` string[], required — Values for this Header
  - `response` Response, required — A mock invocation or test response
    - `operationId` string, required — Identifier of Operation this Response is associated to
    - `content` string — Body content of this Response
    - `id` string — Unique identifier of Response
    - `name` string, required — Unique distinct name of this Response
    - `testCaseId` string — Unique identifier of TestCase this Response is attached (in case of a test)
    - `headers` Header[] — Headers for this Response
      - `name` string, required — Unique distinct name of this Header
      - `values` string[], required — Values for this Header
  - `type` 'reqRespPair' | 'unidirEvent', required — Discriminant type for identifying kind of exchange

---

[API](https://skmtc.dev/microcks/apis/microcks-api-v1-7.md) · [All operations](https://skmtc.dev/microcks/apis/microcks-api-v1-7/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/microcks/microcks-api-v1-7/revisions/cc062ec25192/schema)
