For the complete documentation index, see llms.txt. This page is also available as Markdown.

Retry Failed Documents

Endpoint Name: retry_failed_documents

Request type : POST

Authorization : None

Endpoint Details: The retry_failed_documents endpoint will be used to get the access token and the refresh token, The validity of the access token will be some minutes, and the refresh token will be days.

Method

URL

POST

URL/access/klearstack/retry_failed_documents

Request Body

Parameters

Values

Required

Description

company_name

string

Yes

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

batch_id

string

Yes

Batch id received from upload API

Request Code Samples

Shell

  • Request Body

curl --location "URL/access/klearstack/retry_failed_documents" \
  --form "company_name=Replace_Company_Name_Here" \
  --form "batch_id=Replace_batch_id_Here"

Python

  • Request Body

Java (OkHttp)

  • Request Body

Nodejs (Axios)

  • Request Body

Javascript (XHR)

  • Request Body

API Response

Status code

Example Response

200

{"success": True, "message": "Retry initiated successfully"}

500

{"success": False, "message": "Failed to initiate retry", "details": 'details'}

400

{"success": False, "message": "No batch found with the provided batch_id"}

400

{"success": False, "message": "Batch status is not 'failed'. Only failed batches can be retried."}

Last updated