Quick Start
Run your first Hub verification end to end.
This walks you through one complete verification, from first request to verified user details. It works the same for bank verification (IVS), document verification (DVS), verified credentials (VC), and the modes that combine them. Only what the user sees, and the details you get back, differ.
The examples use the preprod base URL. The API is identical in every environment: only the base URL and your client details change. You get access to preprod during onboarding with your Interac representative. See Onboarding checklist.
A new self-serve Developer Portal is coming soon. It will let you try Hub before onboarding. Until then, start in preprod.
What you need
| A client ID and scope | From your Interac representative, during onboarding |
| An RSA key pair | You'll sign requests with it |
| A JWKS URL | Where you publish the public key |
| A redirect URI | Where users come back to |
If you don't have a key pair yet, Signing keys and JWKS takes about ten minutes.
Throughout this page:
{hub_base_url} = https://gateway.preprod.hub-verify.interac-id.ca
The examples usecurl
curlworks the same in any terminal and doesn't depend on a programming language, so you can try each step as you read. In your application, make the same HTTP requests with your language's HTTP library — for examplerequestsin Python,fetchin JavaScript, orHttpClientin Java or C#. The method, URL, headers and body stay the same.The one Python snippet on this page shows application logic, not an API call. Write it in whatever language your server uses.
1. Find the endpoints
Don't hardcode endpoint URLs — read them from discovery.
curl {hub_base_url}/.well-known/openid-configuration{
"issuer": "{hub_base_url}/",
"authorization_endpoint": "{hub_base_url}/auth",
"token_endpoint": "{hub_base_url}/oauth2/token",
"userinfo_endpoint": "{hub_base_url}/userinfo"
}Keep issuer — you need it in the next step.
2. Build a signed request
Hub has no client secret. You prove who you are by signing a JWT with your private key.
{
"iss": "your-client-id",
"aud": "{hub_base_url}/",
"client_id": "your-client-id",
"response_type": "code",
"scope": "openid general_scope",
"redirect_uri": "https://your-app.example.com/callback",
"state": "5de789881cc944a78e9c1c9d947f7867",
"nonce": "abdd5eed89834b62aee2de7a6ed4d92e"
}Sign it with RS256, and put your key's kid in the header:
{ "alg": "RS256", "kid": "your-key-id" }
Use the scope you were given at onboarding, such asopenid onlyVme_scope,openid document_scope,openid general_scopeoropenid vc_scope. The examples useopenid general_scope. See Scopes.
Two things to get right:audis theissuervalue from step 1, including its trailing slash. Andstatemust be a fresh random value stored against the user's session — you'll check it in step 4.
3. Send the user to Hub
Build a URL with the signed JWT in request, and redirect the browser to it.
{hub_base_url}/auth
?request=eyJhbGciOiJSUzI1NiIsImtpZCI6...
&response_type=code
&client_id=your-client-id
&scope=openid+general_scope
&state=5de789881cc944a78e9c1c9d947f7867
&redirect_uri=https%3A%2F%2Fyour-app.example.com%2Fcallback
The user completes verification on the Hub screens:
| Your scope uses | The user |
|---|---|
| Bank verification | Signs in to their bank. In preprod, you use the test bank MyBank. See Testing in each environment. |
| Document verification | Photographs a government ID and takes a selfie, usually on their phone. |
| Verified credentials | Scans a QR code or follows a link to the Interac verification app, and shares their credential. The first time, they create it with their bank and a government ID. See Verified credentials. |
| Bank or document | Picks bank or document verification |
| Bank and document | Does both, one after the other. See Dual mode. |
4. Handle the redirect
Hub sends the user back with a one-time code:
https://your-app.example.com/callback
?code=5GT81abUDETEOpVegWBZ78Aejq...
&scope=openid+general_scope
&state=5de789881cc944a78e9c1c9d947f7867
Check state first. Look it up against the session you stored it in. No match, stop.
session = sessions.pop(request.args["state"], None)
if session is None:
abort(400)Log state too, for every verification. It's what Interac support uses to find a specific transaction. See Log state for every verification.
If something went wrong you'll get error and error_description instead. See How Hub reports errors.
5. Exchange the code for a token
On your server, not in the browser.
curl -X POST '{hub_base_url}/oauth2/token' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'grant_type=authorization_code' \
-d 'code=5GT81abUDETEOpVegWBZ78Aejq...' \
-d 'client_id=your-client-id' \
-d 'redirect_uri=https://your-app.example.com/callback' \
-d 'client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer' \
-d 'client_assertion=eyJhbGciOiJSUzI1NiI...'The client_assertion is another signed JWT:
{
"iss": "your-client-id",
"sub": "your-client-id",
"aud": "{hub_base_url}/oauth2/token",
"exp": 1675972884,
"iat": 1675972584,
"jti": "35a5bae49a834eb684c8c88ef7190475"
}
audis different here. In step 2 it was theissuer. Here it's the token endpoint URL. Mixing these up is the most common reason a signature gets rejected.
{
"access_token": "ILcyQprq2MDuC9oxmiRDP0x1v7pvYh1UzhjuAB0nsyg...",
"token_type": "bearer",
"expires_in": 1800
}6. Get the verified details
curl '{hub_base_url}/userinfo' \
-H 'Authorization: Bearer ILcyQprq2MDuC9oxmiRDP0x1v7pvYh1UzhjuAB0nsyg...'What comes back depends on how the user verified. For bank and document verification, check source — it's bank for bank verification, otherwise the document type. Verified credentials have their own shape, shown in the third tab.
{
"sub": "78d41cff-678e-4a3e-9482-afa43ceae222",
"source": "bank",
"given_name": "John",
"family_name": "Doe",
"birthdate": "1965-03-03",
"address": {
"street_address": "4101 Yonge Street",
"locality": "Toronto",
"region": "ON",
"postal_code": "M2P 1N6",
"country": "CA"
},
"com.securekey.verified.me.license_id": "9h8EGxUHCMQm3GRRHMKho0ch7UMC25cuUwn69suwj1M"
}{
"sub": "4aa2e0dc889045edb251e584d1d3b7f8",
"doc_type": "drivers_license",
"source": "driving_licence",
"scan_result": "CLEAR",
"given_name": "JOHN",
"family_name": "DOE",
"birthdate": "1965-03-03",
"address": {
"street_address": "4101 Yonge Street",
"locality": "Toronto",
"region": "ON",
"postal_code": "M2P 1N6",
"country": "CAN"
},
"doc_number": "S12345678901234",
"issue_date": "2021-03-15",
"expiry_date": "2031-03-15",
"issuing_country": "CA",
"issuing_authority": "ON",
"nationality": "N/A",
"dcn": "RG1234567",
"acn": "0012345678",
"com.securekey.verified.me.ui_locale": "en-CA",
"com.securekey.vids.job_id": "d306f935-cb23-4a39-8acc-232eed539e1e"
}{
"given_name": "John",
"family_name": "Doe",
"birthdate": "1990-01-31",
"issuance": {
"issuer": "Interac Corp.",
"issue_date": "2026-10-22T13:03:21Z",
"issue_expiry": "2027-10-22T13:03:11Z"
},
"document": {
"doc_type": "Driver's Licence",
"doc_number": "AA123456",
"doc_scan_date": "2026-10-22",
"doc_expiry_date": "2031-03-15",
"issuing_country": "CA",
"issuing_authority": "ON",
"front_photo_doc": {
"description": "Document Front Image",
"mimeType": "image/jpeg",
"uri": "data:image/jpeg;base64,/9j/4Ry",
"hash": "",
"hash-alg": null
},
"back_photo_doc": {
"description": "Document Back Image",
"mimeType": "image/jpeg",
"uri": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4SM",
"hash": "",
"hash-alg": null
}
},
"predicates": {
"age_over_18": true,
"age_over_19": true,
"age_over_21": true,
"age_over_25": true,
"age_over_55": false,
"age_over_65": false
},
"residence": {
"resident_street_address": "123 Main Street",
"resident_city": "Toronto",
"resident_state": "ON",
"resident_postal_code": "A1B 2C3",
"resident_country": "CAN"
},
"job_id": "8c03497c-0674-4e05-92bb-69198eb5bc13",
"credential_id": "urn:uuid:920b4c64-3809-401d-b7a7-84a311f1034b",
"issuance_policy_url": "https://marketing.interac.ca/interacverifiedcredential"
}That's a completed verification.
For document verification, checkscan_resultisCLEARbefore trusting the details. See Document verification. For verified credentials, checkissuance.issue_expiry. See Credential expiry.
If your project does bank and document checks, the response combines both results. See Dual mode.
Before you build on this
Three things the happy path doesn't show you:
Not every claim always arrives. For bank verification, address, email and phone_number are best effort. When the bank has no value, you may get an empty string, a placeholder such as "N/A", or no claim at all. For document verification, fields the document doesn't carry come back as the string "N/A" — a passport has no address, for example. For verified credentials, they're null. See Bank verification, Document types and Verified credentials.
Store the transaction ID. com.securekey.verified.me.license_id for bank verification, com.securekey.vids.job_id for document verification, or job_id for verified credentials. You're required to keep it for seven years. See Data retention.
Handle the unhappy paths. Users cancel, time out, and fail checks. See How Hub reports errors.
Where next
| You want to | Go to |
|---|---|
| Understand the whole flow | Integration overview |
| Learn more about each verification method | Bank verification · Document verification · Verified credentials |
| Let users choose | Select mode |
| Check against details you already hold | Subject matching |
| Move to preprod and production | Environments · Onboarding |
Updated about 7 hours ago