---
title: "Returns a list of messages for a given command."
method: GET
path: "/commands/{commandId}/messages"
tags: ["Messages"]
---

# Returns a list of messages for a given command.

`GET /commands/{commandId}/messages`

## Query parameters

- `fromCreatedAtExclusive` number
- `count` integer

## Response `200`

List of message.

## Changes

- **2022-06-29** `a4e8a36890d5` — 1 warning
  - removed the optional property `messages/items/allOf[#/components/schemas/NewMessage]/targets` from the response with the `200` status

[Change history](https://skmtc.dev/aws-samples/apis/cdf-command-control-service/changes/commands/:commandId/messages/get.md)

---

[API](https://skmtc.dev/aws-samples/apis/cdf-command-control-service.md) · [All operations](https://skmtc.dev/aws-samples/apis/cdf-command-control-service/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/cdf-command-control-service/revisions/3c7940ca634e/schema)
