Attachments

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
/v1/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.

Authorization

apiKey
headerx-api-key<token>

Query Parameters

messageId*string
Match^msg_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

AttachmentList

application/json
  1. response
items*array<>
Example Request
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"    }  ]}

Related documentation