Queries
Get the body and attachments of a message activity
This request allows us to fetch the details of a message activity.
- graphql
01query GetMessage($id: String!) {02 message(id: $id) {03 message {04 id05 body06 format07 subject08 attachments {09 id10 name11 url12 type13 }14 }15 }16}
An example id
for a message is "9rjfb9qE4pEY".
- json
01{02 "id": "{{MESSAGE_ID}}"03}
The id of the message can be found in the object.id
field of an activity.
- json
01{02 "activity": {03 "id": "{{ACTIVITY_ID}}",04 "object": {05 "id": "{{MESSAGE_ID}}",06 "type": "message"07 },08 ...09 }10}