# Introduction

> What Aqoonsi does, how an account is organised and how your app uses it.

## What Aqoonsi does

Aqoonsi is an identity verification API. You use it to:

- verify people against national registries, identity documents and a live selfie (KYC);
- verify businesses against company registries and work out who owns them (KYB);
- screen people and businesses against sanctions lists, once or continuously;
- assess risk, and route anything that needs human judgement to your team.

Aqoonsi reports what it found and where each fact came from. It does not approve or reject anyone: your app and your team make that decision.

The API lives at `https://api.aqoon.si/v1`. It follows [JSON:API 1.1](https://jsonapi.org/format/1.1/); see [Requests](requests.md).

## Who talks to the API

Aqoonsi is called from three places, each with its own credential:

| From                                              | Credential                                                                 | Used to                                                                                       |
| ------------------------------------------------- | -------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- |
| Your app                                          | [API key](authentication.md)                                               | Create people and businesses, start verifications, read results, run screenings               |
| Your app, on a person's phone or in their browser | [Capture or document token](authentication.md#capture-and-document-tokens) | Complete one verification: take a liveness test, photograph a document, enter a one-time code |
| Your team                                         | Dashboard sign-in                                                          | Manage keys, webhooks and members; review cases and screening matches                         |

The API key stays in the part of your app that you run yourself. The part that runs on a person's phone or in their browser only ever gets a token for one verification, which expires within 30 minutes.

## How an account is organised

```text
Account                 your organisation
├── Members             people who sign in to the dashboard, each with a role
└── Applications        one per app that calls the API
    ├── sandbox         aq_test_ keys, webhooks, real checks, data deleted after 24 hours
    └── live            aq_live_ keys, webhooks, real results
```

- **Account.** Everything you create belongs to your account. No other account can read it.
- **Members.** Your team. Each member has a [role](accounts-and-teams.md#roles) that limits what they can do.
- **Applications.** One per app that calls the API, for example a mobile app and a back-office tool. Every application has two [environments](environments.md), `sandbox` and `live`, and each has its own keys and webhooks.

Data never crosses environments: a sandbox person is invisible to a live key, and the reverse.

## Core concepts

| Concept                                      | Meaning                                                                                              |
| -------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| [Subject](glossary.md)                       | A person or a business. Verifications, screenings, assessments and cases are always about a subject. |
| [Verification](people.md#verifying-a-person) | One attempt to confirm who a subject is: a person's identity, or a company's registration.           |
| [Claim](people.md#claims)                    | A fact a verification confirmed, with its source. Kept apart from what the subject declared.         |
| [Screening](screening.md)                    | A search of sanctions lists for parties that resemble the subject.                                   |
| [Risk assessment](risk.md)                   | A level, score and reasons computed from what Aqoonsi knows about the subject.                       |
| [Case](cases.md)                             | A task for your team, opened when something needs a human decision.                                  |

## A typical flow

```text
your app (API key)                        Aqoonsi                    person's phone or browser
──────────────────                        ───────                    ─────────────────────────
POST /v1/people
POST /v1/consents
POST /v1/verifications
POST /v1/verifications/{id}/sessions  →   aqs_… token
send verificationId + token  ────────────────────────────────────►  SDK runs the capture
                                          verification completes
                              ◄── webhook verification.completed
GET  /v1/verifications/{id}
```

1. Your app creates a [person](people.md) and records their [consent](people.md#consent).
2. It starts a verification and issues a [capture token](capture.md#issuing-a-capture-token) for the person's phone or browser.
3. The person completes the check there, through the Aqoonsi SDK.
4. A [webhook](webhooks.md) tells your app the verification finished, and your app reads the result with its API key.
5. A verified person is [screened](screening.md) automatically. Potential matches open a [case](cases.md) for your team.

## Next steps

- Run a verification end to end in the [quickstart](quickstart.md).
- Read [environments](environments.md) before you write tests.
- Create your first [API key](authentication.md).
