channels
email
email-templates

Upload email template attachment

Uploads an attachment to a specific email template.

post/email/1/templates/{templateId}/attachments

Request

  • Base URL
    https://api.infobip.com (the document declares no server; this is the origin it was published from)
  • Auth
    • OAuth 2
      Client credentials
      Token URL: https://api.infobip.com/auth/1/oauth2/token
    • or API key in header Authorization
    • or API key in header Authorization
    • or HTTP basic

Path parameters

templateIdinteger required

Unique identifier (ID) of the email template.

Request body multipart/form-data

contentTypestring required

Content type of the file.

fileNamestring required

Name of the file.

datastring required

Base64 encoded file data.

Example request

{
  "contentType": "application/pdf",
  "fileName": "attachment.pdf",
  "data": "base64encodeddata"
}

Response

OK

idstring required

Id of the attachment.

contentTypestring

Content type of the attachment.

fileNamestring

Name of the attachment.

sizeinteger

Size of the attachment in bytes.

urlstring

URL of the attachment.

Example response

{
  "id": "7BE07D39-C7DA-4ED4-9F45-33BDB8643AA1",
  "contentType": "application/pdf",
  "fileName": "attachment.pdf",
  "size": 1024,
  "url": "/email/1/templates/1000000000000000001/attachments/7BE07D39-C7DA-4ED4-9F45-33BDB8643AA1/download"
}

Changes

No recorded changes to this operation across all 1 revision of this API.