PrizmDoc Viewer v13.9 - Updated
Attachments
API Reference > PrizmDoc Server API > Attachments

Introduction

The Attachments API allows you to view EML and MSG attachments using PrizmDoc Server.

Available URLs

URL Description
GET /PCCIS/V1/ViewingSession/u{ViewingSessionID}/Attachments Lists the attachments available in the source document.

GET /PCCIS/V1/ViewingSession/u{ViewingSessionID}/Attachments

This API returns a JSON List of object Attachments containing the collection of Attachment objects. If the return object list length has a zero count and no errors detected, there are no attachments. The status property of the List object denotes whether the list is completed or not thus whether the request must be retried again. Each Attachment object in the list contains displayName and viewingSessionId property. The displayName can be used to label an href link on a web page and the link points to the viewingSessionId URL for the attachment.

Request

URL Parameters

Parameter Description
{ViewingSessionID} The ID of the viewing session associated with the request.

Successful Response

Response Body

If successful, this method returns the following properties:

Error Responses

Status Code Description
500 Internal service error. This error can be returned for a number of different reasons. Please verify that your input is correct, and contact Support if the error persists.

Examples

Request

GET prizmdoc_server_base_url/PCCIS/V1/ViewingSession/uGcIsIsEGbLV2_V9yy4NzmK2HB-JuLOH--A9sZ16cla9txO0ZDBGfq1G4kKu0r_GyEps4wWCvDwn4dpnZAR76Uw/Attachments

Response

HTTP/1.1 200 OK
Content-Type: application/json

{
    "attachments": [
        {
            "displayName": "example-file.pdf",
            "viewingSessionId": "SC0fZEMYiiGdOPMKBqLY8P6EAnVLEqxeTHjUUYqqxgJJc3s3wsQ8Lw2qqvkD1uLKTpAlF1ce23EQ6BFpYb4E3LC9TsXxwHCgB-I1c5rPOt0"
        },
        {
            "displayName": "second-example.doc",
            "viewingSessionId": "33qQovKTjc0UKbNgOI-5POEyCpNw5x-uEzGMB13iUVhnCa_UHSSnOpRBEzPKeD7Maxq2RQu2SOOwJjl4X4iU_65OQjx2EI5-7h-bXlYc6uA"
        }
    ],
    "status": "complete"
}