Get details of a Document

Endpoint Name: getdocument

Request type : POST

Authorization: Bearer token as header.

Endpoint Details: The getdocument endpoint will be used to get details of a document.

Method

URL

POST

URL/access/klearstack/getdocument

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.

user_id

string

Yes

ID of user.

document_id

string

No

ID of document.

Shell (cURL)

  • Request Body

curl --location "URL/access/klearstack/getdocument" \
  --header "Authorization: Bearer your_token_here" \
  --form "company_name=Replace_Company_Name_Here" \
  --form "collection_name=Replace_Collection_Name_Here" \
  --form "user_id=Replace_User_ID_Here" \
  --form "document_id=Replace_Document_ID_Here"

Python

  • Request Body

Java (OkHttp)

  • Request Body

Node.js (Axios)

  • Request Body

JavaScript (XHR)

  • Request Body

API Response

Status code

Example Response

200

Json Response

Last updated