Get a document
curl --request GET \
--url https://app.sahlfinancial.com/api/v1/documents/{document_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/documents/{document_id}', 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}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "a8f1c3e5-6b2d-4974-8e0a-1d5c7b9f3e26",
"tenant_id": "0b6f5a3e-7c1d-4e0a-9d2f-3a1c5e8b7f10",
"external_reference": null,
"filename": "payslip-test.pdf",
"content_type": "application/pdf",
"file_size": 184320,
"upload_source": "api",
"document_type_hint": "payslip",
"document_type_detected": "payslip",
"document_type_final": null,
"status": "completed",
"page_count": 1,
"checksum_sha256": "9f2c...redacted",
"created_at": "2026-10-07T09:14:22Z",
"updated_at": "2026-10-07T09:14:22Z"
}{
"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."
}Get a document
Who can call it: Any signed-in member of the workspace.
Auth: dashboard session (Authorization: Bearer <access token>). Not available with a partner API key.
Get a document
curl --request GET \
--url https://app.sahlfinancial.com/api/v1/documents/{document_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/documents/{document_id}', 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}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "a8f1c3e5-6b2d-4974-8e0a-1d5c7b9f3e26",
"tenant_id": "0b6f5a3e-7c1d-4e0a-9d2f-3a1c5e8b7f10",
"external_reference": null,
"filename": "payslip-test.pdf",
"content_type": "application/pdf",
"file_size": 184320,
"upload_source": "api",
"document_type_hint": "payslip",
"document_type_detected": "payslip",
"document_type_final": null,
"status": "completed",
"page_count": 1,
"checksum_sha256": "9f2c...redacted",
"created_at": "2026-10-07T09:14:22Z",
"updated_at": "2026-10-07T09:14:22Z"
}{
"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.
Path Parameters
Response
OK