> ## Documentation Index
> Fetch the complete documentation index at: https://docs.checkin.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How an integration works

> The end-to-end sequence shared by every Checkin.com integration.

Every integration follows the same pattern: your backend authenticates, the applicant submits evidence, and your backend receives the result.

```mermaid theme={null}
sequenceDiagram
    participant A as Applicant
    participant F as Your frontend
    participant B as Your backend
    participant C as Checkin.com/GetID

    A->>F: Starts verification
    F->>B: Request session
    B->>C: POST /sdk/v2/token (X-SDK-Key)
    C-->>B: { token }
    B-->>F: token
    F->>C: SDK init with token and flowName
    A->>C: Completes the flow steps
    C-->>F: onComplete { applicationId }
    F->>B: applicationId
    C->>B: Webhook with result (signed)
    B-->>F: Next step for the applicant
```

## The three responsibilities of your backend

**1. Authenticate**

Keep the API key and SDK key on the server. For SDKs, create a [session token](https://docs.checkin.com/get-started/environments-and-authentication.md#create-an-sdk-session-token) for each verification. For verification links and the API, call Checkin.com with `X-API-Key`.

**2. Correlate**

Link the application to your customer. Pass your own ID as `metadata.externalId` when you start the session, and store the `applicationId` you receive on completion.

**3. Decide**

Receive the result by [webhook](https://docs.checkin.com/integrate/results/webhooks.md) (preferred) or [fetch it](https://docs.checkin.com/integrate/results/retrieve-results.md). Wait for `processingState: done`, then act on the status.

## Completion is not the decision

`onComplete` fires when all data is collected and no further input is needed from the applicant. The verification is usually still `processing` at that point. In the Web SDK, you can set [`onVerificationComplete`](https://docs.checkin.com/integrate/web-sdk/events#onverificationcomplete) to wait for the result. Either way, always take the decision on your backend.

Results are usually available within 9 seconds, occasionally within 30 seconds. You can continue the applicant's journey and show the result later, or show a loading state while you wait.

## Choose your path

> [card] [Web SDK](https://docs.checkin.com/integrate/web-sdk/quick-start.md)

> [card] [iOS](https://docs.checkin.com/integrate/mobile/ios.md)

> [card] [Android](https://docs.checkin.com/integrate/mobile/android.md)

> [card] [Verification links](https://docs.checkin.com/integrate/verification-links.md)

> [card] [Direct API](https://docs.checkin.com/integrate/api/submit-application.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.