channels
email
email-message-sending

Upload binary content

This method allows you to upload binary content that you can reference when sending Email messages.

post/email/1/content

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

Headers

X-Content-Idstring required

Content ID that uniquely identifies the binary content.

X-Media-Typestring required

Content mime type. Should be populated by standard MIME types (IANA media types).

X-Validity-Period-Minutesstring

Validity period in minutes after which the content will be deleted.

Request body application/octet-stream

string binary required

Response

Successful Request

uploadedContentIdstring

The ID that uniquely identifies the uploaded content.

Example response

{
  "uploadedContentId": "B44419205B27012D82F3BAD7B7EB37..."
}

Changes

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