---
title: "Get a message by code"
method: GET
path: "/api/messages/codes"
tags: ["message-controller"]
---

# Get a message by code

`GET /api/messages/codes`

Get a message from the repository based on the code.

## Query parameters

- `code` string, required

## Response `200`

OK

- MessageMessageDestView
  - `code` string
  - `createdDtm` TimestampMessageDestView
  - `destId` string
  - `destName` string
  - `destType` 'CREDENTIAL_PROVIDER' | 'PERSON' | 'SERVICE_PROVIDER' | 'SYSTEM'
  - `emailTo` string
  - `footer` string
  - `id` string
  - `info` MessageInfoMessageDestView
  - `note` string
  - `previousMessageId` string
  - `secureContent` string
  - `sourceId` string
  - `sourceName` string
  - `sourceType` 'CREDENTIAL_PROVIDER' | 'PERSON' | 'SERVICE_PROVIDER' | 'SYSTEM'
  - `subject` string
  - `type` 'ASSOCIATION_REQUEST' | 'CREDENTIAL' | 'INVITATION' | 'NOTICE' | 'PERSON_NOTIFICATION'

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Unexpected error in processing the request.

---

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