List message attachments
Returns every attachment of the given message, newest first. A message's attachments all ride that one email, so the list is never paged.
GET
Returns every attachment of the given message, newest first. A message's attachments all ride that one email, so the list is never paged.
apiKeyheader
x-api-key<token>messageId*stringMatch
^msg_[0-9a-hjkmnp-tv-z]{16,24}$AttachmentList
application/json- response
items*array<>import { createClient } from "samva";
const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });
const result = await samva.attachments.list({
"messageId": "example"
});Example Response
{
"items": [
{
"id": "string",
"messageId": "string",
"organizationId": "string",
"filename": "string",
"contentType": "string",
"size": 0,
"contentId": "string",
"isInline": true,
"createdAt": "string"
}
]
}