Get Documents of a Set

Endpoint Name: URL/access/klearstack/getdocumentsforset

Request type : POST

Authorization: Bearer token as header

Endpoint Details: The getdocumentsforsetendpoint will be used to fetch all the documents belonging to a certain set based on the Set Reference Number.

Method

URL

POST

URL/access/klearstack/getdocumentsforset

Request Body

Params

Values

Required

Description

company_name

string

Yes

Name of the company for which the user is logging in.

set_reference_number

string

Yes

set_reference_number for which documents are required.

userid

string

No

User ID

role

string

No

user role, e.g:Approver

Shell (cURL)

  • Request Body

curl --location "URL/access/klearstack/getdocumentsforset" \
  --header "Authorization: Bearer your_token_here" \
  --form "company_name=Replace_Company_Name_Here" \
  --form "username=Replace_Username_Here" \
  --form "set_reference_number=Replace_Set_Reference_Number_Here" \
  --form "role=Replace_Role_Here"

Python

  • Request Body

Java (OkHttp)

  • Request Body

Node.js (Axios)

  • Request Body

JavaScript (XHR)

  • Request Body

API Response

Status code

Example Response

200

Last updated