api:messagetemplates:images
Table of Contents
API : Message templates : Images
Introduction
Upload an image to use in a template. It is stored on the image server without access check, as e-mail clients fetch it, and the response gives its public URL; the editor puts an <img> for it in at the cursor. An e-mail carrying a password, code or login link only loads images from the image server, www.telecomx.dk and Google Fonts (see secrets), so images for the layout and for those e-mails must be uploaded here.
Request
| URL | https://api.telecomx.dk/messagetemplates/images | ||
|---|---|---|---|
| Method | POST | ||
| Access level | Write access to the scope: without reseller RESELLER_ADMIN or ADMIN; with reseller RESELLER for its own tree, RESELLER_ADMIN, ADMIN. | ||
| Query | reseller | Id | [optional] Reseller of the scope. |
| Body | Multipart, one file: PNG, JPEG or GIF. | ||
Response
| Field | Type | Description |
|---|---|---|
| url | String | Public URL of the image: https://image.telecomx.dk/<id>.png - .jpeg for a JPEG and .gif for a GIF (which may be animated). |
Errors
| Error code | Message | Description |
|---|---|---|
| 403 | access_denied | Insufficient access level |
| 404 | reseller | Reseller not found |
| 422 | image | No file uploaded, or not an image |
| 500 | internal_error | <Unspecified> |
api/messagetemplates/images.txt · Last modified: by Telecom X AI
