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

# Integration overview

> Mint SDK tokens, open the hosted verification flow, and confirm results from your server.

Integration endpoints connect your server to the idto verification flow. Your server mints a short-lived SDK token, your front end opens the flow with it, and your server learns the result from the session completed webhook or by reading the session state. None of these calls are billed; the verifications inside the flow are.

## How it works

```mermaid theme={null}
sequenceDiagram
    participant B as Your front end
    participant S as Your server
    participant I as idto
    S->>I: POST /auth/sdk/token (client_id, API key)
    I-->>S: access_token, 900 s
    S-->>B: access_token
    B->>I: idto SDK runs the verification steps
    I->>S: session.completed webhook
    S->>I: GET /sdk/v2/session/#lt;session_token#gt;/state
    I-->>S: status, outcome, steps
```

![idto SDK completion screen at the end of a verification flow](https://idto-sdk-usage-demo-bucket.s3.ap-south-1.amazonaws.com/docs/v1/img/sdk-workflow-complete.png)

## Endpoints

| Endpoint | Auth | Purpose |
| - | - | - |
| [`POST /auth/sdk/token`](https://idto.mintlify.site/api-reference/integration/sdk-token) | Client ID and API key in the body | Mint a 15 minute token |
| [`GET /sdk/v2/session/{session_token}/state`](https://idto.mintlify.site/api-reference/integration/session-state) | `Authorization: Bearer <SDK token>` | Read status and verdict |
| [`POST /merchant/verification-links`](https://idto.mintlify.site/api-reference/integration/verification-links-create) | `Authorization: Bearer <dashboard login token>` | Create a shareable link that runs a workflow |
| [`GET /merchant/verification-links`](https://idto.mintlify.site/api-reference/integration/verification-links-list) | `Authorization: Bearer <dashboard login token>` | List links with status and runs left |
| [`DELETE /merchant/verification-links/{link_id}`](https://idto.mintlify.site/api-reference/integration/verification-links-revoke) | `Authorization: Bearer <dashboard login token>` | Revoke a link |
| [`POST /verify/name_match`](https://idto.mintlify.site/api-reference/integration/name-match) | `X-Client-ID` and `X-API-Key` | Score how closely two names match (v1, charged only when `status` is `success`) |
| [session.completed webhook](https://idto.mintlify.site/api-reference/webhooks/session-completed.md) | Signed with your webhook secret | Push on completion |

## Outcomes

| `status` | `outcome` | Meaning |
| - | - | - |
| `in_progress` | `null` | The user is still in the flow |
| `completed` | `verified` | All checks passed |
| `completed` | `needs_review` | A soft flag was raised, such as a low name match |
| `completed` | `not_verified` | A check failed |
| `abandoned` | `null` | The session was abandoned |

Error bodies follow [Error response shapes](https://idto.mintlify.site/concepts/request-response.md#error-response-shapes), and charges follow the [billing rule](https://idto.mintlify.site/concepts/billing-consent.md#billing).

## Test scenarios

| Input | Expected | Billed |
| - | - | - |
| Correct client ID and API key | 200 with `access_token` | No |
| Wrong API key | 401 `Invalid client credentials` | No |
| Session state with a token older than 15 minutes | 401 `SDK session token expired` | No |
| Session state for another account's session | 403 | No |
| Session state for an unknown `session_token` | 404 | No |

Next: [SDK guides](https://idto.mintlify.site/sdks/web.md), [Webhooks](https://idto.mintlify.site/concepts/webhooks.md), [Integration FAQ](https://idto.mintlify.site/products/integration/faq.md).

***

Was this page helpful? Email us at [tech@idto.ai](mailto:tech@idto.ai?subject=Docs%20feedback%3A%20Integration%20overview) with the page link.


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