List Attachments

List attachments in a particular stream.

Get attachments in a particular stream.

GETyourpodURL.symphony.com/pod/v1/streams/{sid}/attachments
Path parameters
sid*string

Stream Id

Query parameters
Header parameters
Response

OK

Body
messageIdstring
Example: "PYLHNm/1K6p...peOpj+FbQ"
ingestionDateinteger (int64)
Example: 1548089933946
userIdinteger (int64)
Example: 14568529068038
fileIdstring

The attachment File ID.

Example: "internal_14362"
namestring

The file name.

Example: "butterfly.jpg"
sizeinteger (int64)

Size in bytes.

Example: 70186
content-typestring
Example: "image/jpeg"
previewsarray of AttachmentPreview (object)
Request
const response = await fetch('yourpodURL.symphony.com/pod/v1/streams/{sid}/attachments', {
    method: 'GET',
    headers: {
      "sessionToken": "text"
    },
});
const data = await response.json();
Response
[
  {
    "messageId": "PYLHNm/1K6p...peOpj+FbQ",
    "ingestionDate": 1548089933946,
    "userId": 14568529068038,
    "fileId": "internal_14362",
    "name": "butterfly.jpg",
    "size": 70186,
    "content-type": "image/jpeg",
    "previews": [
      {
        "fileId": "internal_14362",
        "width": 600
      }
    ]
  }
]

Last updated