Skip to content

ReferenceResources

Site checks

Check one document on Kontiga’s site before you have an account: send the file, follow its check, and bring the result into the workspace you make when you sign up. The result is read there, under the free start, never before.

Updated

Ask about this pageRead this page as Markdown

How a site check works

  1. Start the check with the file’s name, type, size and digests. No key is needed. The answer gives the check’s try_ id, a token to keep, and an address to PUT the file to within 5 minutes with exactly the headers given.
  2. PUT the file, then send it for its check. The check runs on the file as it arrived.
  3. Read where it is: waiting_for_file, checking with its stage (queued, reading, checking or deciding), done or failed. Nothing of the result is shown here.
  4. Sign up, then bring the document into your new workspace with the token (Bring in a document checked on the site). It shows as checked, under the free start, and counts as its first document.
Limits of a site check
WhatLimit
FilesOne PDF, JPEG or PNG a check, up to 25 MB. Any other file is refused.
ChecksThree a day from one address. The fourth answers 429 rate_limited until the day ends (UTC).
TokenBrings the document in once, within 48 hours.
UnclaimedA check not brought in is deleted with its file 5 days after it began.

Start a check on the site

Changes data

POST/v1/try/checks

Start checking one document from Kontiga’s site, before any account exists: get where to send the file, and a token that brings the result into the workspace made after sign-up. One PDF, JPEG or PNG up to 25 MB.

Who may
Anyone, with no account yet
CLI
kontiga try create <file>
MCP tool
start_site_check
Returns
The site check, the token that claims it after sign-up, and where to PUT the file within 5 minutes.

Parameters

  • file_namestringRequired

    The file’s name. At most 255 characters.

  • content_typeenumRequired

    application/pdf, image/jpeg or image/png.

  • byte_sizeintegerRequired

    The file’s size in bytes, at most 25 MB.

  • sha256stringRequired

    The file’s SHA-256 in base64. The storage refuses other bytes.

  • checksumstringRequired

    The file’s MD5 in base64. The storage refuses other bytes.

curl -X POST https://api.kontiga.com/v1/try/checks \
  -H "Content-Type: application/json" \
  -d '{
    "file_name": "payslip-oct.pdf",
    "content_type": "application/pdf",
    "byte_size": 248113,
    "sha256": "47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=",
    "checksum": "rL0Y20zC+Fzt72VPzMSk2A=="
  }'

POST /v1/try/checks

Response, 201 Created
{
  "id": "try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
  "object": "try_check",
  "state": "waiting_for_file",
  "stage": null,
  "expires_at": "2026-12-04T10:02:44Z",
  "token": "AZP2osXie3s9TR9qe4ycDhJ2l0Xy1xY0aVqWkP3bQ2c",
  "upload": {
    "url": "https://files.kontiga.com/uploads/ws_.../9c1f...?X-Amz-Signature=...",
    "method": "PUT",
    "headers": {
      "Content-Type": "application/pdf",
      "Content-MD5": "rL0Y20zC+Fzt72VPzMSk2A==",
      "If-None-Match": "*",
      "x-amz-checksum-sha256": "47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU="
    },
    "expires_at": "2026-11-29T10:07:44Z"
  }
}

Send the file for its check

Changes data

POST/v1/try/checks/{check_id}/submit

Once the file is sent to its address, start its check. The result stays for the workspace made after sign-up.

Who may
Anyone, with no account yet
CLI
kontiga try submit <check_id>
MCP tool
submit_site_check
Returns
The site check, in the queue.

Parameters

  • check_idid (try_)Required

    The check, once its file was PUT. Before that the answer is 409 upload_not_received; sending it again answers where it is. In the path.

curl -X POST https://api.kontiga.com/v1/try/checks/try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e/submit

POST /v1/try/checks/{check_id}/submit

Response, 200 OK
{
  "id": "try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
  "object": "try_check",
  "state": "checking",
  "stage": "queued",
  "expires_at": "2026-12-04T10:02:44Z"
}

Read where a site check is

Reads only

GET/v1/try/checks/{check_id}

Whether a site check is waiting for its file, being checked, done or failed, and the stage it is at. Its result is read only after sign-up.

Who may
Anyone, with no account yet
CLI
kontiga try get <check_id>
MCP tool
get_site_check
Returns
The site check’s state and stage; never its result.

Parameters

  • check_idid (try_)Required

    The check. A check brought in or deleted answers 404 not_found. In the path.

curl -X GET https://api.kontiga.com/v1/try/checks/try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e

GET /v1/try/checks/{check_id}

Response, 200 OK
{
  "id": "try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e",
  "object": "try_check",
  "state": "done",
  "stage": null,
  "expires_at": "2026-12-04T10:02:44Z"
}

When it does not go through

Refusals of a site check
AnswerMeansDo
422 unsupported_fileNot a PDF, JPEG or PNG, or its bytes are not the type it was sent as.Send a PDF, JPEG or PNG.
422 file_too_largeThe file is over 25 MB.Send a smaller file, or sign up to check larger ones.
429 rate_limitedThree checks from this address today.Try again tomorrow, or sign up.
409 upload_not_receivedThe file has not arrived at its address.PUT it, then send it again.
409 upload_expiredAn hour passed since the check began, and the file was not sent.Start a new check.