Skip to main content

sajn ID - Identity Verification

sajn ID enables secure identity verification using Swedish BankID, allowing you to verify the identity of individuals before granting access to services or completing transactions.

Overview

sajn ID provides two verification methods:
  1. SSN-based verification: Verifies both identity and Swedish personal number (personnummer)
  2. Name-based verification: Verifies identity and name match without requiring SSN

How It Works

Verification Lifecycle

Creating a Verification

Creating a verification through the API immediately sends it to the recipient over the chosen channel. There is no create-without-send step.

SSN-Based Verification

Verify both identity and SSN:

Name-Based Verification

Verify identity without SSN requirement:

Delivery Channels

EMAIL

Send verification link via email:

SMS

Send verification link via SMS:
API-created verifications use EMAIL or SMS. The channel field returned by the API may also be IN_APP for verifications delivered inside the sajn app.

Verification Data

After successful verification, retrieve the BankID response data:
Sensitive information like SSN is encrypted and only accessible to authorized users.

Use Cases

Customer Onboarding

Verify customer identity during account creation:

Age Verification

Verify age without collecting SSN:

Contract Signing Prerequisites

Verify identity before allowing document signing:

Linking to Contacts

Link verifications to existing contacts:
This creates an audit trail connecting the verification to the contact’s profile.

Audit Logs

Every verification includes a complete audit log:

Expiration

The identity check and its verification link expire after a set period (default: 7 days from creation). Set a custom expiration with expiresAt when creating the verification — it must be in the future:
The current expiration is returned as expiresAt on the verification object.

Billing

Creating a sajn ID verification counts toward your monthly sajn ID quota and is billed according to your plan.
Each successful verification is tracked as a billable event, regardless of whether it completes successfully or fails.

Security Considerations

Verification tokens are single-use and expire after completion or timeout.
SSNs are encrypted at rest and only accessible to authorized users with proper permissions.
Complete audit logs track every step of the verification process for compliance.
Leverages BankID’s robust security infrastructure for identity verification.

Best Practices

Reference IDs

Always include a reference to link the verification to your workflow

Set Expiration

Use expiresAt to control how long the verification link stays valid

Appropriate Method

Use SSN-based only when legally required; prefer name-based for privacy

Use Webhooks

Subscribe to ID events instead of polling for a better user experience

Next Steps

Identity Verification Guide

Step-by-step guide to implementing ID checks

API Reference

Explore the sajn ID API