Reprocess a document
curl --request POST \
--url https://app.sahlfinancial.com/api/v1/documents/{document_id}/reprocess \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/documents/{document_id}/reprocess', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/documents/{document_id}/reprocess"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"document_id": "a8f1c3e5-6b2d-4974-8e0a-1d5c7b9f3e26",
"job_id": "3c9d7b1f-5e2a-4a86-9f4c-8b0e6d2a1c75",
"status": "queued",
"message": "Document queued for reprocessing"
}{
"detail": "Invalid or expired token"
}{
"detail": "Insufficient permissions"
}{
"detail": "Document not found"
}{
"detail": [
{
"type": "missing",
"loc": [
"body",
"bank_code"
],
"msg": "Field required",
"input": {}
}
]
}{
"code": "rate_limit_exceeded",
"message": "Too many requests. Please slow down."
}Reprocess a document
Who can call it: tenant_admin, tenant_reviewer, tenant_api_manager or platform_admin. A tenant_viewer is read-only and gets 403.
Queues a new job in the environment the document was filed in. Refused with 429 usage_limit_reached once the workspace is over its monthly quota.
Auth: dashboard session (Authorization: Bearer <access token>). Not available with a partner API key.
Reprocess a document
curl --request POST \
--url https://app.sahlfinancial.com/api/v1/documents/{document_id}/reprocess \
--header 'Authorization: Bearer <token>'const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/documents/{document_id}/reprocess', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.sahlfinancial.com/api/v1/documents/{document_id}/reprocess"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text){
"document_id": "a8f1c3e5-6b2d-4974-8e0a-1d5c7b9f3e26",
"job_id": "3c9d7b1f-5e2a-4a86-9f4c-8b0e6d2a1c75",
"status": "queued",
"message": "Document queued for reprocessing"
}{
"detail": "Invalid or expired token"
}{
"detail": "Insufficient permissions"
}{
"detail": "Document not found"
}{
"detail": [
{
"type": "missing",
"loc": [
"body",
"bank_code"
],
"msg": "Field required",
"input": {}
}
]
}{
"code": "rate_limit_exceeded",
"message": "Too many requests. Please slow down."
}Authorizations
The access token (JWT) of a signed-in console user, from POST /v1/auth/login. It lasts 30 minutes. It is not an API key: a partner API key is refused here. There is no cookie.