PrizmDoc v13.3 - Updated
Image Stamps
API Reference > PrizmDoc Application Services (PAS) RESTful API > Image Stamps

Image Stamps

GET /ImageStampList

Routes key: GetImageStamps

GET pas_base_url/ImageStampList

Successful Response:

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

{
    imageStamps : [
        { id: "ZmlsZTEuZ2lm", displayName: "file1.gif" },
        { id: "ZmlsZTIucG5n", displayName: "file2.png" }
    ]
}

GET /ImageStamp/{imageStampId}/q?format={formatStr}

Routes key: GetImageStamp

Gets the image data from the server. The query string parameter format defined the format of the response, and supports the following values:

Getting Base64 data:

GET pas_base_url/ImageStamp/ZmlsZTIucG5n/q?format=Base64

Successful Response:

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

{
    "dataHash": "1ca8d2e80b6f8f2774f3bc0e6422bc653b0e4d80",
    "dataUrl": "data:image/png;base64,..."
}

Getting the image data:

GET pas_base_url/ImageStamp/ZmlsZTIucG5n/q?format=Image

Successful Response:

HTTP/1.1 200 OK
Content-Type: {content type of the image}

<<binary image data>>

Errored Responses:

When an invalid imageStampId is requested:

HTTP/1.1 400 Bad Request
Content-Type: application/json

{
    "errorCode": "BadRequest"
}

When a valid imageStampId is requested but it does not exist:

HTTP/1.1 404 Not Found
Content-Type: application/json

{
    "errorCode": "NotFound"
}