Get Image of Document

Endpoint Name: getimage

Request type : POST

Authorization: Bearer token as header

Endpoint Details: The getimage endpoint will be used to get image of document.

Method

URL

POST

URL/access/klearstack/getimage

Request Body

Params

Values

Required

Description

company_name

string

Yes

Name of the company for which the user is logging in

collection_name

string

Yes

Name of collection of document

id

string

Yes

ID received from key “image_id” of response from api getdocument

ui_image_path

string

Yes

ID received from key “ui_image_list” of response from api getdocument

Shell (cURL)

  • Request Body

curl --location "URL/access/klearstack/getimage" \
  --header "Authorization: Bearer your_token_here" \
  --form "company_name=Replace_Company_Name_Here" \
  --form "collection_name=Replace_Collection_Name_Here" \
  --form "id=Replace_Image_ID_Here" \
  --form "ui_image_path=Replace_UI_Image_Path_Here"

Python

  • Request Body

Java (OkHttp)

  • Request Body

Node.js (Axios)

  • Request Body

JavaScript (XHR)

  • Request Body

API Response

Status code

Example Response

200

Binary Image string

Last updated