User Tools

Site Tools


api:helpcenter:message:id:images

API : Helpcenter Case Images

Introduction

Fetches images related to a message in a Helpcenter Case. Images larger than 5 MB are skipped.

Request

URL https://api.telecomx.dk/helpcenter/message/MESSAGE_ID/images
Method GET
Access level RESELLER_ADMIN with HELPCENTER feature, or ADMIN.
Param MESSAGE_ID Id of the message (Microsoft Graph message id).

Query example

https://api.telecomx.dk/helpcenter/message/AAMkAGI2TAAA=/images

Response

JSON object
images Array Array of images, see definition below.
images[].attachment Boolean True when the image is an attachment, false when it is inline.
images[].contentBytes String Base64 encoded content of the image.
images[].contentType String Type of the image: image/jpeg, image/png, …
images[].contentId String The content ID of the image. Null for attachments.

Example

{
  "images": [
    {
      "attachment": true,
      "contentBytes": "iVBORw0KGgoAAAANSUhEUg...",
      "contentType": "image/png",
      "contentId": null
    },
    {
      "attachment": false,
      "contentBytes": "/9j/4AAQSkZJRgABAQEAYA...",
      "contentType": "image/jpeg",
      "contentId": "ii_abc123"
    }
  ]
}

Errors

Error code Message Description
400 messageId Invalid messageId
404 helpcenter Helpcenter not found
401 helpcenter Access token expired
404 attachments No attachments found
403 access_denied Insufficient access level
500 internal_error <Unspecified>
api/helpcenter/message/id/images.txt · Last modified: by Mikkel Meerwaldt Jørgensen

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki