Skip to main content
POST
/
api
/
email-drafts
/
attachments
/
upload
Upload attachment
curl --request POST \
  --url https://api.morphic.io/api/email-drafts/attachments/upload \
  --header 'Content-Type: multipart/form-data' \
  --header 'X-API-Key: <api-key>' \
  --form file='@example-file'
{}

Authorizations

X-API-Key
string
header
required

API key (sk_xxx) from Developer Settings. No X-Account-ID needed.

Headers

x-account-id
string | null

Body

multipart/form-data
file
file
required

Response

Successful Response

The response is of type Response Upload-Email-Attachment · object.