# Sign up as an agent

> 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: Agents. URL: https://kontiga.com/docs/agents

An agent signs up without a browser and goes from no account to a working key with no person involved: one call answers with a test key at once, and a one-time code sent to the email unlocks a live key and the free start, with no card.

Updated November 30, 2026

## From nothing to a live key

The agent's steps

| Step | What the agent does |
| --- | --- |
| Learn | Fetches `/agent-setup.md` and the API's specification at `https://api.kontiga.com/openapi.json`. |
| Sign up | Calls `POST /v1/signups` with no key, an email and a workspace name. The answer holds the workspace and a test key (`kt_test_`): samples only, never billed. |
| Prove the email | Reads the one-time code sent to that email and sends it to `POST /v1/signups/{signup_id}/verify`. The answer holds a live secret key and the free start. |
| Work | Creates restricted keys, registers webhooks and does any action a key may take through the API, the CLI or the MCP server. |
| Pay on | Once the free start is used, a `402 insufficient_credit` answer carries the payment challenges to buy credit by machine payment. |

> **No mailbox?** An agent with a payment method and no email can pay instead: a keyless machine payment on `POST /v1/credit` makes a workspace with one key. The money is the proof.

## Sign up

Create an account and its workspace with an email, and get a test key at once; a one-time code goes to the email for the live key.

`POST /v1/signups`. Who may: Anyone, with no account yet. CLI: `kontiga signup --email <email> --workspace-name <name> [--region <EU|US>]`. MCP tool: `sign_up`.

**Parameters**
- `email` (email, required): Where the one-time code goes. The person who later signs in with it owns the workspace.
- `workspace_name` (string, required): The workspace's name, as members see it. At most 80 characters.
- `region` (enum, default "EU"): Where the workspace's files are stored. One of `EU`, `US`.

**Returns** sign-up: The sign-up to verify, the workspace, and a test key shown once; test mode takes samples only and never bills.

API:

```bash
curl -X POST https://api.kontiga.com/v1/signups \
  -H "Content-Type: application/json" \
  -d '{
    "email": "ops-agent@harbourlend.example",
    "workspace_name": "Harbour Lending"
  }'
```

CLI:

```bash
kontiga signup \
  --email ops-agent@harbourlend.example \
  --workspace-name 'Harbour Lending'
```

MCP tool `sign_up`:

```json
{
  "name": "sign_up",
  "arguments": {
    "email": "ops-agent@harbourlend.example",
    "workspace_name": "Harbour Lending"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // no key needed
const result = await kontiga.account.signUp({
  email: "ops-agent@harbourlend.example",
  workspace_name: "Harbour Lending",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # no key needed
result = kontiga.account.sign_up(email="ops-agent@harbourlend.example", workspace_name="Harbour Lending")
```

Go:

```go
client := kontiga.NewClient() // no key needed
result, err := client.Account.SignUp(ctx, &kontiga.AccountSignUpParams{
	Email:         "ops-agent@harbourlend.example",
	WorkspaceName: "Harbour Lending",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // no key needed
var result = kontiga.account().signUp(AccountSignUpParams.builder()
    .email("ops-agent@harbourlend.example")
    .workspaceName("Harbour Lending")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // no key needed
var result = await kontiga.Account.SignUpAsync(new AccountSignUpOptions
{
    Email = "ops-agent@harbourlend.example",
    WorkspaceName = "Harbour Lending",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // no key needed
$result = $kontiga->account->signUp([
    'email' => 'ops-agent@harbourlend.example',
    'workspace_name' => 'Harbour Lending',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # no key needed
result = kontiga.account.sign_up(email: "ops-agent@harbourlend.example", workspace_name: "Harbour Lending")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // no key needed
let result = kontiga
    .account()
    .sign_up(kontiga::account::SignUpParams {
        email: "ops-agent@harbourlend.example".into(),
        workspace_name: "Harbour Lending".into(),
        ..Default::default()
    })
    .await?;
```

## Verify a sign-up

Send back the one-time code from the sign-up email and get a live secret key and the free start, with no card.

`POST /v1/signups/{signup_id}/verify`. Who may: Anyone, with no account yet. CLI: `kontiga signup verify <signup_id> --code <code>`. MCP tool: `verify_signup`.

**Parameters**
- `signup_id` (id (sgn_), required): The sign-up `POST /v1/signups` answered with. In the path.
- `code` (string, required): The one-time code from the email. At most 12 characters.

**Returns** sign-up, verified: The workspace and a live secret key shown once, on the free start.

API:

```bash
curl -X POST https://api.kontiga.com/v1/signups/sgn_7Kq2Xw9/verify \
  -H "Content-Type: application/json" \
  -d '{
    "code": "482913"
  }'
```

CLI:

```bash
kontiga signup verify sgn_7Kq2Xw9 --code 482913
```

MCP tool `verify_signup`:

```json
{
  "name": "verify_signup",
  "arguments": {
    "signup_id": "sgn_7Kq2Xw9",
    "code": "482913"
  }
}
```

TypeScript:

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

const kontiga = new Kontiga(); // no key needed
const result = await kontiga.account.verifySignup("sgn_7Kq2Xw9", {
  code: "482913",
});
```

Python:

```python
from kontiga import Kontiga

kontiga = Kontiga()  # no key needed
result = kontiga.account.verify_signup("sgn_7Kq2Xw9", code="482913")
```

Go:

```go
client := kontiga.NewClient() // no key needed
result, err := client.Account.VerifySignup(ctx, "sgn_7Kq2Xw9", &kontiga.AccountVerifySignupParams{
	Code: "482913",
})
if err != nil {
	return err
}
```

Java:

```java
Kontiga kontiga = Kontiga.fromEnv(); // no key needed
var result = kontiga.account().verifySignup("sgn_7Kq2Xw9", AccountVerifySignupParams.builder()
    .code("482913")
    .build());
```

.NET:

```csharp
var kontiga = new KontigaClient(); // no key needed
var result = await kontiga.Account.VerifySignupAsync("sgn_7Kq2Xw9", new AccountVerifySignupOptions
{
    Code = "482913",
});
```

PHP:

```php
$kontiga = new \Kontiga\Client(); // no key needed
$result = $kontiga->account->verifySignup('sgn_7Kq2Xw9', [
    'code' => '482913',
]);
```

Ruby:

```ruby
require "kontiga"

kontiga = Kontiga::Client.new # no key needed
result = kontiga.account.verify_signup("sgn_7Kq2Xw9", code: "482913")
```

Rust:

```rust
let kontiga = kontiga::Client::from_env()?; // no key needed
let result = kontiga
    .account()
    .verify_signup("sgn_7Kq2Xw9".into(), kontiga::account::VerifySignupParams {
        code: "482913".into(),
        ..Default::default()
    })
    .await?;
```

## Hand the workspace to a person

A person signs in at kontiga.com with the sign-up email and owns the workspace from then on, with every key the agent made. Until then the agent's keys work as any other on `https://api.kontiga.com`.
