message Query
Description
Retrieves a single message by its reference ID.
query message($messageRef: ID!) {
message(messageRef: $messageRef) {
_id
created
sender {
name
alias
email
ref
}
subject
message
fromBuyer
flagged
content
attachments {
_id
uri
title
}
read
orderId
orderIncId
uri
via
}
}
Variables
{
"messageRef": "98fe59b839896000e3297cc8"
}
Response
{
"message": {
"_id": "c766ef814e24ca3dafbf8e63",
"created": 1753201854748,
"sender": {
"name": "example",
"alias": "example",
"email": "email@example.com",
"ref": "8258fb9433a7e9278e2c07b6"
},
"subject": "example",
"message": "example",
"fromBuyer": true,
"flagged": true,
"content": "example",
"attachments": [
{
"_id": "5407d7b90f66095913bc8c8a",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"title": "example"
}
],
"read": true,
"orderId": "example",
"orderIncId": 42,
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"via": "example"
}
}
Arguments
| Name | Type | Description |
|---|---|---|
messageRef | ID! | Reference ID of the message to retrieve. |