How an upload works
- Call Upload files with each file’s name, type, size and MD5 checksum in base64. Up to 100 files at once.
PUTeach file’s bytes to itsurlwith exactly theheadersgiven, within 5 minutes. The storage refuses other bytes.- Pass its
upload_idto Check a document or Add a policy document within the hour.
File types and size limits
Each upload’s purpose sets the file types it takes and its size limit, per file.
The upload object
idThe upload’s id:
upl_and 32 hex digits. It works only in this workspace.objectAlways
upload.modeliveortest: the mode of the key or member that made it. A test upload is never used by a live call, and back.purposedocument,identityorpolicy.file_nameThe file’s name, as you gave it.
content_typeThe file’s type.
byte_sizeThe file’s size in bytes.
checksumThe MD5 you declared, in base64.
statependinguntil used,consumedonce a document, a verification or a policy used it,deletedwhen it was not used within the hour.storageWhere the file is kept: your workspace’s storage location.
created_byThe member or the API key that made it.
created_atWhen it was made.
expires_atWhen it can no longer be used: an hour after it was made.
used_byWhat used it, once consumed.
POST/v1/uploads
Get an address to send each file to, straight into your workspace’s storage location, then name the upload when you check a document or add one to a policy. An upload not used within the hour is deleted.
- Who may
- Owner, Admin and Analyst; Developer in test mode
- CLI
kontiga uploads create <file>... [--purpose <document|identity|policy>]- MCP tool
create_uploads- Returns
- One address per file, in the order given, each good for a PUT within 5 minutes; the upload is usable for an hour.
Parameters
purposeWhat the files are for. It sets the types and sizes they may have. One of
document,identity,policy.filesRequired1 to 100 files, each with its
file_name,content_type,byte_sizeandchecksum(MD5 in base64), andsha256in base64 when you have it. The CLI reads all of these from the files you name.
curl -X POST https://api.kontiga.com/v1/uploads \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"purpose": "document",
"files": [
{
"file_name": "payslip-october-2026.pdf",
"content_type": "application/pdf",
"byte_size": 184320,
"checksum": "c4HqQNNKufm8IDn8S7WG2A=="
},
{
"file_name": "bank-statement-october-2026.pdf",
"content_type": "application/pdf",
"byte_size": 402118,
"checksum": "Wbc2J2W4yXGqODeQdKZMWw=="
}
]
}'POST /v1/uploads
{
"object": "upload_list",
"uploads": [
{
"upload_id": "upl_5f2c8e1a9b7d4c3e6a0f1b2c3d4e5f60",
"url": "https://uploads.kontiga.com/eu-west-1/upl_5f2c8e1a9b7d4c3e6a0f1b2c3d4e5f60?X-Signature=7c41e0b9d2",
"method": "PUT",
"headers": {
"Content-Type": "application/pdf",
"Content-MD5": "c4HqQNNKufm8IDn8S7WG2A=="
},
"expires_at": "2026-11-26T09:20:00Z"
},
{
"upload_id": "upl_a3e19c4b7d20f85e6c1b9a4d2f7e3c08",
"url": "https://uploads.kontiga.com/eu-west-1/upl_a3e19c4b7d20f85e6c1b9a4d2f7e3c08?X-Signature=2e9f63a1c8",
"method": "PUT",
"headers": {
"Content-Type": "application/pdf",
"Content-MD5": "Wbc2J2W4yXGqODeQdKZMWw=="
},
"expires_at": "2026-11-26T09:20:00Z"
}
],
"expires_in": 300,
"storage": {
"region": "eu-west-1",
"region_name": "Ireland",
"kind": "regional"
}
}GET/v1/uploads/{upload_id}
Where an upload stands: waiting to be used, used and by what, or deleted, with its file’s name, type, size, where it is stored and who made it.
- Who may
- Owner, Admin, Analyst and Viewer; Developer in test mode
- CLI
kontiga uploads get <upload_id>- MCP tool
get_upload- Returns
- The upload, never its bytes.
Parameters
upload_idRequiredThe upload to read. Another workspace’s upload answers
404. In the path.
curl -X GET https://api.kontiga.com/v1/uploads/upl_5f2c8e1a9b7d4c3e6a0f1b2c3d4e5f60 \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/uploads/{upload_id}
{
"id": "upl_5f2c8e1a9b7d4c3e6a0f1b2c3d4e5f60",
"object": "upload",
"mode": "live",
"purpose": "document",
"file_name": "payslip-october-2026.pdf",
"content_type": "application/pdf",
"byte_size": 184320,
"checksum": "c4HqQNNKufm8IDn8S7WG2A==",
"state": "consumed",
"storage": {
"region": "eu-west-1",
"region_name": "Ireland",
"kind": "regional"
},
"created_by": {
"kind": "api_key",
"id": "key_4Qm8Zt2",
"name": "Loan origination server"
},
"created_at": "2026-11-26T09:15:00Z",
"expires_at": "2026-11-26T10:15:00Z",
"used_by": {
"object": "document",
"id": "doc_3Xe7Rk1"
}
}