Get the upload limits
curl --request GET \
--url https://app.sahlfinancial.com/api/v1/documents/limits \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/documents/limits', 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/limits"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"max_upload_mb": 30,
"max_upload_bytes": 31457280,
"max_pages_per_document": 200,
"allowed_mime_types": [
"application/pdf",
"image/jpeg",
"image/png",
"image/tiff",
"image/webp"
]
}{
"detail": "Invalid or expired token"
}{
"detail": "Insufficient permissions"
}{
"code": "rate_limit_exceeded",
"message": "Too many requests. Please slow down."
}Get the upload limits
Who can call it: Any signed-in member of the workspace.
File size, page count and accepted MIME types. The console reads its own checks from here.
Auth: dashboard session (Authorization: Bearer <access token>). Not available with a partner API key.
Get the upload limits
curl --request GET \
--url https://app.sahlfinancial.com/api/v1/documents/limits \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.sahlfinancial.com/api/v1/documents/limits', 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/limits"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"max_upload_mb": 30,
"max_upload_bytes": 31457280,
"max_pages_per_document": 200,
"allowed_mime_types": [
"application/pdf",
"image/jpeg",
"image/png",
"image/tiff",
"image/webp"
]
}{
"detail": "Invalid or expired token"
}{
"detail": "Insufficient permissions"
}{
"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.
Response
OK
The response is of type Response Get Upload Limits Api V1 Documents Limits Get · object.