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:- SSN-based verification: Verifies both identity and Swedish personal number (personnummer)
- 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
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: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 withexpiresAt when creating the verification — it must be in the future:
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.
Security Considerations
Token security
Token security
Verification tokens are single-use and expire after completion or timeout.
SSN encryption
SSN encryption
SSNs are encrypted at rest and only accessible to authorized users with proper permissions.
Audit trail
Audit trail
Complete audit logs track every step of the verification process for compliance.
BankID security
BankID security
Leverages BankID’s robust security infrastructure for identity verification.
Best Practices
Reference IDs
Always include a
reference to link the verification to your workflowSet Expiration
Use
expiresAt to control how long the verification link stays validAppropriate 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

