---
title: "GET /didcomm/basic-messages"
method: GET
path: "/didcomm/basic-messages"
tags: ["DIDComm Basic Messages"]
---

# GET /didcomm/basic-messages

`GET /didcomm/basic-messages`

Retrieve basic messages by connection id

## Query parameters

- `connectionId` string
- `role` 'sender' | 'receiver'
- `threadId` string
- `parentThreadId` string

## Headers

- `x-tenant-id` string

## Response `200`

BasicMessageRecord[]

- DidCommBasicMessageRecord[]
  - `id` string, required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time
  - `type` string, required
  - `connectionId` string, required
  - `role` 'sender' | 'receiver', required
  - `content` string, required
  - `sentTime` string, required
  - `threadId` string
  - `parentThreadId` string

---

[API](https://skmtc.net/openwallet-foundation/apis/credo-rest-api.md) · [All operations](https://skmtc.net/openwallet-foundation/apis/credo-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openwallet-foundation/credo-rest-api/revisions/33596742b733/schema)
