# Site checks

> Kontiga is document fraud detection by Bynn Intelligence for insurers, letting agents, lenders and HR screening teams: every document is compared with a proprietary library of more than 300 million original documents, gathered over 20 years.

Documentation index: https://kontiga.com/llms.txt

Section: Reference. URL: https://kontiga.com/docs/try

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 November 30, 2026

## 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](https://kontiga.com/docs/documents#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

| What | Limit |
| --- | --- |
| Files | One PDF, JPEG or PNG a check, up to 25 MB. Any other file is refused. |
| Checks | Three a day from one address. The fourth answers `429 rate_limited` until the day ends (UTC). |
| Token | Brings the document in once, within 48 hours. |
| Unclaimed | A check not brought in is deleted with its file 5 days after it began. |

## Start a check on the site

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.

`POST /v1/try/checks`. Who may: Anyone, with no account yet. CLI: `kontiga try create <file>`. MCP tool: `start_site_check`.

**Parameters**
- `file_name` (string, required): The file's name. At most 255 characters.
- `content_type` (enum, required): `application/pdf`, `image/jpeg` or `image/png`.
- `byte_size` (integer, required): The file's size in bytes, at most 25 MB.
- `sha256` (string, required): The file's SHA-256 in base64. The storage refuses other bytes.
- `checksum` (string, required): The file's MD5 in base64. The storage refuses other bytes.

**Returns** try check: The site check, the token that claims it after sign-up, and where to PUT the file within 5 minutes.

API:

```bash
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=="
  }'
```

CLI:

```bash
kontiga try create
```

MCP tool `start_site_check`:

```json
{
  "name": "start_site_check",
  "arguments": {
    "file_name": "payslip-oct.pdf",
    "content_type": "application/pdf",
    "byte_size": 248113,
    "sha256": "47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=",
    "checksum": "rL0Y20zC+Fzt72VPzMSk2A=="
  }
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";

const kontiga = new Kontiga(); // no key needed
const result = await kontiga.tryChecks.create();
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # no key needed
result = kontiga.try_checks.create()
```

Go:

```go
client := kontiga.NewClient() // no key needed
result, err := client.TryChecks.Create(ctx)
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // no key needed
var result = kontiga.tryChecks().create();
```

.NET:

```csharp
var kontiga = new KontigaClient(); // no key needed
var result = await kontiga.TryChecks.CreateAsync();
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // no key needed
$result = $kontiga->tryChecks->create();
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # no key needed
result = kontiga.try_checks.create
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // no key needed
let result = kontiga
    .try_checks()
    .create()
    .await?;
```

Response, 201 Created:

```json
{
  "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

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

`POST /v1/try/checks/{check_id}/submit`. Who may: Anyone, with no account yet. CLI: `kontiga try submit <check_id>`. MCP tool: `submit_site_check`.

**Parameters**
- `check_id` (id (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.

**Returns** try check: The site check, in the queue.

API:

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

CLI:

```bash
kontiga try submit try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e
```

MCP tool `submit_site_check`:

```json
{
  "name": "submit_site_check",
  "arguments": {
    "check_id": "try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e"
  }
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";

const kontiga = new Kontiga(); // no key needed
const result = await kontiga.tryChecks.submit("try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # no key needed
result = kontiga.try_checks.submit("try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e")
```

Go:

```go
client := kontiga.NewClient() // no key needed
result, err := client.TryChecks.Submit(ctx, "try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e")
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // no key needed
var result = kontiga.tryChecks().submit("try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // no key needed
var result = await kontiga.TryChecks.SubmitAsync("try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // no key needed
$result = $kontiga->tryChecks->submit('try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # no key needed
result = kontiga.try_checks.submit("try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // no key needed
let result = kontiga
    .try_checks()
    .submit("try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e".into())
    .await?;
```

Response, 200 OK:

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

## Read where a site check is

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.

`GET /v1/try/checks/{check_id}`. Who may: Anyone, with no account yet. CLI: `kontiga try get <check_id>`. MCP tool: `get_site_check`.

**Parameters**
- `check_id` (id (try_), required): The check. A check brought in or deleted answers `404 not_found`. In the path.

**Returns** try check: The site check's state and stage; never its result.

API:

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

CLI:

```bash
kontiga try get try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e
```

MCP tool `get_site_check`:

```json
{
  "name": "get_site_check",
  "arguments": {
    "check_id": "try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e"
  }
}
```

TypeScript:

```typescript
import Kontiga from "@kontiga/sdk";

const kontiga = new Kontiga(); // no key needed
const result = await kontiga.tryChecks.get("try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e");
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # no key needed
result = kontiga.try_checks.get("try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e")
```

Go:

```go
client := kontiga.NewClient() // no key needed
result, err := client.TryChecks.Get(ctx, "try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e")
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // no key needed
var result = kontiga.tryChecks().get("try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e");
```

.NET:

```csharp
var kontiga = new KontigaClient(); // no key needed
var result = await kontiga.TryChecks.GetAsync("try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e");
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // no key needed
$result = $kontiga->tryChecks->get('try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e');
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # no key needed
result = kontiga.try_checks.get("try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // no key needed
let result = kontiga
    .try_checks()
    .get("try_0193f6a2c5e27b3a9d4e1f6a7b8c9d0e".into())
    .await?;
```

Response, 200 OK:

```json
{
  "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

| Answer | Means | Do |
| --- | --- | --- |
| `422 unsupported_file` | Not 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_large` | The file is over 25 MB. | Send a smaller file, or sign up to check larger ones. |
| `429 rate_limited` | Three checks from this address today. | Try again tomorrow, or sign up. |
| `409 upload_not_received` | The file has not arrived at its address. | PUT it, then send it again. |
| `409 upload_expired` | An hour passed since the check began, and the file was not sent. | Start a new check. |
