Documents
Upload and Process (AWS)
View DocsAPI Reference
Authorization
ApiKeyAuth access-key<token>
Your unique access-key generated from the platform UI
In: header
Request Body
application/json
s3_uri*string
Full S3 URI in format: s3://bucket-name/path/to/file
aws_access_key_id*string
AWS IAM access key with S3 read permissions
aws_secret_access_key*string
AWS IAM secret access key
aws_region*string
AWS region where the S3 bucket is located (e.g., us-east-1, ap-south-1)
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://api.k-v.ai/api/doc/process_doc" \ -H "Content-Type: application/json" \ -d '{ "s3_uri": "s3://bucket-name/path/to/document.pdf", "aws_access_key_id": "YOUR_AWS_ACCESS_KEY", "aws_secret_access_key": "YOUR_AWS_SECRET_KEY", "aws_region": "us-east-1" }'{
"value": {
"data": {
"doc_process_id": "c71a96e072b581f1108dbc5f7a93cd54",
"transactions_utilised": 117
},
"message": "Document Processed Successfully"
}
}{
"value": {
"data": {},
"message": "Unsupported file"
}
}{
"value": {
"data": {},
"message": "Invalid or missing access key"
}
}{
"value": {
"data": {},
"message": "AWS credentials invalid or insufficient permissions"
}
}{
"value": {
"data": {},
"message": "File size exceeds maximum limit of 100 pages"
}
}{
"value": {
"data": {},
"message": "Something went wrong"
}
}