Support

List all Tickets attachments

Work with Ticket Attachments.Returns a list of your Tickets attachments.

get/admin/support/ticket-attachments

Request

  • Base URL: https://demo.splynx.com/api/2.0
  • URL: https://demo.splynx.com/api/2.0/admin/support/ticket-attachments
  • Auth: HTTP basic

Query parameters

with_contentnumber double required
Example:1

If 1 then attachments will be returned with content

Response

idnumber

Ticket Attachment ID

typestring

Attachment type.

filename_originalstring

Original filename of attachment.

filename_uploadedstring

Filename of attachment on server.

message_idnumber

Message ID.

content_typestring

Type of attachment file.

contentstring

Attachment content encoded in base64 format

download_linkstring

A directly link to this file

has_thumbnailboolean

Whether this file has a thumbnail.

thumbnail_linkstring

A link to the file's thumbnail.

sizeinteger

Contains the uploaded file size in bytes as a value, without any formatting

Example response

[
  {
    "id": 32,
    "type": "ticket_attachment",
    "filename_original": "rates.csv",
    "filename_uploaded": "0d76e3bfce7f60fb",
    "message_id": 123,
    "content_type": "text/plain",
    "content": "VBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9UeXBlIC9QYWdlC...",
    "download_link": "https://yourdomain/a",
    "has_thumbnail": true,
    "thumbnail_link": "https://yourdomain/b"
  }
]

Changes

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