---
title: "GET /channels/{channelName}/sample"
method: GET
path: "/channels/{channelName}/sample"
---

# GET /channels/{channelName}/sample

`GET /channels/{channelName}/sample`

Retrieves a sample of messages from the specified channel ingested during the specified timeframe. Up to 10 messages can be retrieved.

## Path parameters

- `channelName` string, required

## Query parameters

- `maxMessages` integer
- `startTime` string, date-time
- `endTime` string, date-time

## Response `200`

Success

- SampleChannelDataResponse
  - `payloads` MessagePayload[] — The list of message samples. Each sample message is returned as a base64-encoded string.

## Other responses

- `480` — InvalidRequestException
- `481` — ResourceNotFoundException
- `482` — InternalFailureException
- `483` — ServiceUnavailableException
- `484` — ThrottlingException

---

[API](https://skmtc.net/aws/apis/iotanalytics.md) · [All operations](https://skmtc.net/aws/apis/iotanalytics/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/iotanalytics/versions/e78558b7408d/schema)
