Skip to content

ReferenceResources

Uploads

Files never travel inside an API call. You announce each file, send its bytes straight to your workspace’s storage location at the address you get back, and then name the upload when you check a document, verify an identity or add a policy document. An upload not used within the hour is deleted.

Updated

Ask about this pageRead this page as Markdown

How an upload works

  1. Call Upload files with each file’s name, type, size and MD5 checksum in base64. Up to 100 files at once.
  2. PUT each file’s bytes to its url with exactly the headers given, within 5 minutes. The storage refuses other bytes.
  3. Pass its upload_id to 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.

What each purpose takes
PurposeFilesLargest
documentPDF, JPEG, PNG, HEIC, HEIF, TIFF and WebP64 MB
identityJPEG, PNG and WebP10 MB
policyPDF, Word, PowerPoint, Excel, text, Markdown and HTML50 MB

The upload object

  • idstring

    The upload’s id: upl_ and 32 hex digits. It works only in this workspace.

  • objectstring

    Always upload.

  • modeenum

    live or test: the mode of the key or member that made it. A test upload is never used by a live call, and back.

  • purposeenum

    document, identity or policy.

  • file_namestring

    The file’s name, as you gave it.

  • content_typestring

    The file’s type.

  • byte_sizenumber

    The file’s size in bytes.

  • checksumstring

    The MD5 you declared, in base64.

  • stateenum

    pending until used, consumed once a document, a verification or a policy used it, deleted when it was not used within the hour.

  • storageobject

    Where the file is kept: your workspace’s storage location.

  • created_byobject

    The member or the API key that made it.

  • created_atstring

    When it was made.

  • expires_atstring

    When it can no longer be used: an hour after it was made.

  • used_byobject

    What used it, once consumed.

Upload files

Changes data

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

  • purposeenumDefault "document"

    What the files are for. It sets the types and sizes they may have. One of document, identity, policy.

  • filesarray of objectRequired

    1 to 100 files, each with its file_name, content_type, byte_size and checksum (MD5 in base64), and sha256 in 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

Response, 201 Created
{
  "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"
  }
}

Read an upload

Reads only

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_idid (upl_)Required

    The 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}

Response, 200 OK
{
  "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"
  }
}