Complete Canadian data protection with Social Insurance Number detection, PIPEDA and provincial privacy law compliance, bilingual support, and all provincial identifier formats.
All provinces, territories, and regulations
Social Insurance Number detection with Luhn validation and format verification.
Federal Personal Information Protection and Electronic Documents Act compliance support.
Quebec, Alberta, BC privacy laws plus provincial health insurance numbers (OHIP, RAMQ, etc.).
Native English and French language support for Quebec and bilingual federal documents.
Canadian phone numbers, postal codes, and address formats across all provinces.
Canadian bank transit numbers, account formats, and credit union identifiers.
Simple integration, powerful results
Send your documents, text, or files through our secure API endpoint or web interface.
Our AI analyzes content to identify all sensitive information types with 99.7% accuracy.
Sensitive data is automatically redacted based on your configured compliance rules.
Receive your redacted content with full audit trail and compliance documentation.
Get started with just a few lines of code
import requests
api_key = "your_api_key"
url = "https://api.redactionapi.net/v1/redact"
data = {
"text": "John Smith's SSN is 123-45-6789",
"redaction_types": ["ssn", "person_name"],
"output_format": "redacted"
}
response = requests.post(url,
headers={"Authorization": f"Bearer {api_key}"},
json=data
)
print(response.json())
# Output: {"redacted_text": "[PERSON_NAME]'s SSN is [SSN_REDACTED]"}
const axios = require('axios');
const apiKey = 'your_api_key';
const url = 'https://api.redactionapi.net/v1/redact';
const data = {
text: "John Smith's SSN is 123-45-6789",
redaction_types: ["ssn", "person_name"],
output_format: "redacted"
};
axios.post(url, data, {
headers: { 'Authorization': `Bearer ${apiKey}` }
})
.then(response => {
console.log(response.data);
// Output: {"redacted_text": "[PERSON_NAME]'s SSN is [SSN_REDACTED]"}
});
curl -X POST https://api.redactionapi.net/v1/redact \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"text": "John Smith's SSN is 123-45-6789",
"redaction_types": ["ssn", "person_name"],
"output_format": "redacted"
}'
# Response:
# {"redacted_text": "[PERSON_NAME]'s SSN is [SSN_REDACTED]"}
Canada's privacy framework presents unique complexity with overlapping federal and provincial jurisdictions, bilingual requirements, and close economic integration with the United States requiring cross-border data handling considerations. Organizations operating in Canada must navigate PIPEDA at the federal level, provincial privacy laws in Quebec, Alberta, and British Columbia, sector-specific health information laws in multiple provinces, and the intersection of all these frameworks.
Canadian personal information also has distinct characteristics—from the Social Insurance Number as the primary national identifier to provincial health card formats, from bilingual documentation requirements to Canadian-specific address and phone formats. Effective Canadian data protection requires understanding these Canadian particularities, not applying generic North American rules.
The Social Insurance Number is Canada's primary national identifier for tax, employment, and government services—equivalent to the US Social Security Number in function and sensitivity. Proper SIN detection requires understanding its specific characteristics:
Format: The SIN is a 9-digit number, sometimes written with spaces or dashes (123-456-789 or 123 456 789). The first digit indicates the type: 1-7 for individuals, 8 for temporary SINs, 9 for temporary residents and those awaiting status.
Luhn Validation: SINs use the Luhn algorithm (modulus 10) as a check digit mechanism. This enables validation but also means some random 9-digit numbers accidentally pass validation. Context analysis distinguishes actual SINs from coincidentally valid numbers.
Sensitivity: The SIN is considered highly sensitive personal information. Its exposure enables identity theft, tax fraud, and unauthorized employment. Protection is emphasized in PIPEDA guidance.
Collection Limits: Unlike US SSNs, Canadian privacy law restricts SIN collection—only specific purposes (employment, tax, benefits) justify collection. Detection helps identify inappropriate SIN presence in other contexts.
The Personal Information Protection and Electronic Documents Act (PIPEDA) governs private sector collection, use, and disclosure of personal information in commercial activities:
10 Fair Information Principles: PIPEDA codifies principles including accountability, consent, limiting collection, limiting use, accuracy, safeguards, openness, individual access, and challenging compliance. These principles align with international privacy standards.
Knowledge and Consent: PIPEDA requires individuals know what personal information is collected and consent to its collection, use, and disclosure. Redaction supports data minimization aspects of these requirements.
Breach Notification: PIPEDA requires breach notification when a breach creates "real risk of significant harm." Reducing stored personal information through redaction limits breach scope and notification obligations.
Cross-Border Transfers: PIPEDA allows international transfers with "comparable protection" but requires accountability. Redaction reduces transferred data's sensitivity.
Three provinces have private-sector privacy laws deemed "substantially similar" to PIPEDA, taking precedence within their jurisdictions:
Quebec: An Act Respecting the Protection of Personal Information in the Private Sector, significantly enhanced by Law 25 (2021), creates strong privacy rights including data minimization, purpose limitation, and individual control. Quebec law is among the most stringent in North America.
Alberta: Personal Information Protection Act (PIPA) governs private-sector privacy with requirements similar to PIPEDA but with some variations in consent exceptions and breach notification.
British Columbia: Personal Information Protection Act (PIPA) applies to BC private-sector organizations with requirements closely paralleling Alberta's law.
Ontario: While Ontario lacks general private-sector privacy law (PIPEDA applies), specific laws govern health information (PHIPA) and other sectors.
Most provinces have health-specific privacy legislation protecting personal health information:
Ontario - PHIPA: Personal Health Information Protection Act governs health information custodians including healthcare providers, hospitals, and health record services.
Alberta - HIA: Health Information Act regulates health information in the public health system.
Quebec: Health information is addressed through general privacy law with additional professional secrecy requirements.
Each province's health insurance plan uses distinct identifier formats:
Canada's official bilingualism creates unique processing requirements:
French in Quebec: Quebec's Charter of the French Language requires French as the language of business. Documents may be entirely in French, requiring native French NLP for accurate detection.
Federal Bilingualism: Federal government documents often appear in both English and French, either as separate documents or side-by-side translations. Processing must handle both simultaneously.
Mixed Language Documents: Private sector documents in Quebec often mix French and English. Names may appear in English form (John Smith) or French form (Jean-Pierre Tremblay) depending on context.
Address Formats: French addresses use "rue" instead of "street," "avenue" for both languages, province names in French (Québec, Nouvelle-Écosse, Colombie-Britannique).
Canadian contact information follows distinct patterns:
Phone Numbers: Canadian numbers use the North American Numbering Plan (NANP) with 10-digit format (area code + 7-digit number). Area codes are province-specific: 416/647/437 for Toronto, 514/438 for Montreal, 604/778/236 for Vancouver.
Postal Codes: Canadian postal codes use alternating letter-digit format: A1A 1A1. The first letter indicates province/region (H for Montreal, M for Toronto, V for Vancouver). We validate against known valid FSA (Forward Sortation Area) patterns.
Addresses: Canadian addresses include apartment numbers before street (123-456 Main St.), province abbreviations (ON, QC, BC), and may use bilingual street types in Quebec.
Each province issues driver's licenses with distinct numbering systems:
Ontario: Letter followed by 14 digits (e.g., A1234-56789-01234)
Quebec: Letter followed by 12 digits
British Columbia: 7 digits
Alberta: 9 digits
Other Provinces: Various numeric formats with provincial variations
We detect all provincial formats with appropriate validation to distinguish driver's license numbers from other numeric sequences.
Canadian financial data has specific formats:
Bank Transit Numbers: 5-digit transit number + 3-digit institution number format (e.g., 12345-001). Institution numbers identify banks (001 = BMO, 002 = Scotiabank, 003 = RBC, 004 = TD, 010 = CIBC).
Account Numbers: Variable length depending on institution, typically 7-12 digits.
Credit Union Numbers: Credit unions use different numbering with institution numbers in the 800-899 range.
Canadian Tax Numbers: Business Number (BN) is a 15-character identifier for businesses (9-digit account + 2-letter program ID + 4-digit reference). GST/HST numbers use this format with RT program identifier.
Canada-US economic integration creates cross-border data handling needs:
NAFTA/USMCA Context: Trade relationships mean Canadian companies frequently exchange data with US partners. Redaction helps meet both countries' requirements.
Cloud Services: Many Canadian organizations use US-based cloud services, creating cross-border transfer considerations. Quebec's Law 25 specifically addresses these scenarios.
Dual Presence: Organizations operating in both countries may have records with both Canadian and US identifiers (SIN and SSN). Detection must handle both accurately.
RedactionAPI has transformed our document processing workflow. We've reduced manual redaction time by 95% while achieving better accuracy than our previous manual process.
The API integration was seamless. Within a week, we had automated redaction running across all our customer support channels, ensuring GDPR compliance effortlessly.
We process over 50,000 legal documents monthly. RedactionAPI handles it all with incredible accuracy and speed. It's become an essential part of our legal tech stack.
The multi-language support is outstanding. We operate in 30 countries and RedactionAPI handles all our documents regardless of language with consistent accuracy.
Trusted by 500+ enterprises worldwide





SINs follow a 9-digit format validated using the Luhn algorithm (mod 10). We verify both format structure and check digit calculation. Additionally, we analyze context to distinguish SINs from similar 9-digit numbers that happen to pass Luhn validation.
Quebec, Alberta, and BC have provincial privacy laws deemed "substantially similar" to PIPEDA, applying to private sector organizations. Ontario, New Brunswick, and Nova Scotia have health-specific laws. We support requirements across all jurisdictional frameworks.
Yes, we detect provincial health insurance numbers: OHIP (Ontario), RAMQ (Quebec), BCMSP (BC), Alberta Health Care, etc. Each province has distinct formats that our detection covers with appropriate validation.
Canadian documents often mix English and French, especially federal documents. Our processing handles both languages simultaneously, detecting French names, addresses, and identifier labels alongside English equivalents.
Canadian addresses use 6-character postal codes (A1A 1A1 format) with province abbreviations. We recognize all provincial formats, bilingual street types (rue/street, avenue/avenue), and urban/rural addressing conventions.
We support Indigenous community considerations including Status Card numbers and community-specific identifiers where applicable, with sensitivity to First Nations, Inuit, and Métis data sovereignty principles.