Skip to main content

Technical

SPID integration: how to accept Italy's SPID login in 2026

SPID is a federation, not one API: join AgID as a service provider, run SAML2 or use an aggregator, request level 2 for AML, and add a document step because SPID returns no portrait.

SPID integration: how to accept Italy's SPID login in 2026

Contents

In this guide

Jump to the part you need.

Accepting SPID means joining AgID's federation as a service provider, not calling one API: you run SAML2 or the OpenID Connect rules in AgID Determination 71/2025, sign the SPID convention, and pay each identity provider per unique user per year. Authentication is free up to 1,000 unique users per identity-provider pair at every level; registration mode is €3.50 per user at levels 1 and 2 and €7 at level 3. It fits Italian consumer onboarding where you need a tax code. The caveat: SPID returns no portrait, so biometrics need a separate step.

Prices checked against the live Didit price feed on November 26, 2026.

SPID integration at a glance
ItemWhat it is
What SPID isItaly's federated public digital identity, run and supervised by AgID, with accredited private identity providers issuing the logins
Who must accept itPublic administrations must. Private companies may join as service providers
How you connectSAML2 under the AgID technical rules, or OpenID Connect under Determination 71/2025, direct or through an aggregator
Assurance levelsLevels 1, 2 and 3, notified under eIDAS as Low, Substantial and High on 10 September 2018
Level you need for AMLLevel 2 or 3. Article 19(1)(a)(2) of Legislative Decree 231/2007 accepts a SPID identity of at least substantial level as identification without the customer present
What arrivesspidCode, name, familyName, placeOfBirth, countyOfBirth, dateOfBirth, gender, fiscalNumber. More only in registration mode
What never arrivesA portrait. There is no photo attribute in AgID's table
Cost to AgIDAuthentication: free up to 1,000 unique users per identity-provider pair, then €0.40. Registration mode: €3.50 per user. Level 3 authentication: €7 after the free allowance
Didit coverage todaySPID is not in Didit's published live wallet list. EUDI Wallet is listed for Italy as coming soon at $0.15

Start free in the sandbox at business.didit.me, no sales call, and read the unit prices at didit.me/pricing. Developers can connect Didit to an AI assistant through the Didit MCP server.

What you have at the end

You have an "Entra con SPID" button on your sign-up page, a signed attribute set from an accredited identity provider, and a record showing the level the user authenticated at and which attributes arrived. For Italian AML onboarding that record replaces the in-person check under Article 19(1)(a)(2) of Legislative Decree 231/2007, provided the level is at least substantial, which is SPID level 2. What you do not get is a face, so a biometric check runs next to SPID and not instead of it.

Before you start

  • A legal representative who can sign the SPID convention with AgID, or a signed contract with an aggregator that already holds one.
  • The assurance level you need. Level 2 for AML, level 3 only if your process requires a cryptographic device.
  • Your attribute list. The identity set only, unless you truly need contact, address or company data.
  • A SAML2 implementation, or an aggregator, plus the eIDAS node where you serve levels 2 and 3.
  • Service provider metadata for AgID checks and testing.
  • A document fallback: document capture, liveness, face match, and NFC chip reading where the document has a chip. Didit's Free KYC product covers the document, liveness and face match steps, and the unit prices are on didit.me/pricing.
  • A sanctions and politically exposed person (PEP) screening source that accepts a name, a date of birth and a tax code.

Is there a SPID API?

No. There is no single SPID endpoint you call with a key. AgID publishes the technical rules and the federation registry, and accredited private identity providers hold the accounts. Your application is a relying party in a SAML2 federation, which means your integration is a metadata exchange and a signed assertion, not a REST call.

Two things follow from that. First, the SPID API you write against is the AgID technical rule set, and AgID tests your implementation before your convention takes effect. Second, every interface that does look like an API, whether an aggregator dashboard or a broker SDK, is a wrapper around that same SAML2 exchange. When a vendor advertises a SPID API, ask which convention it sits under.

If you searched for AGID SPID documentation, the two documents that matter are the technical rules for service providers and the attribute table, version 1.3 of 24 June 2022. The attribute table is short and decides both what you receive and what you pay.

How to accept SPID: eight steps

  1. Fix the assurance level. Level 1 is a username and password. Level 2 adds a second factor. Level 3 adds a cryptographic device. Ask for level 2 or 3 on any Italian AML onboarding, because Article 19(1)(a)(2) of Legislative Decree 231/2007 treats a digital identity of at least substantial level as identification without the customer present, and level 1 does not qualify. Plain sign-in without AML can run at level 1.

  2. Pick the route. Direct convention: you hold the service provider agreement, run SAML2 yourself and send metadata to AgID. Aggregator: the aggregator holds the federation link and signs its own convention, and you sign a commercial contract with it. Multi-eID broker: one integration that returns SPID next to other national eIDs, which is what you want when Italy is one market of several.

  3. Register with AgID. Implement the AgID technical rules, send your metadata for checks and testing, implement the eIDAS node where you use levels 2 and 3, and have your legal representative sign the SPID convention. AgID then informs the identity providers. Every federation role except the user signs a convention, aggregators included.

  4. Trim the attribute request. Ask for the identity set only: spidCode, name, familyName, placeOfBirth, countyOfBirth, dateOfBirth, gender, fiscalNumber. In authentication mode AgID charges nothing for the first 1,000 unique users per identity provider and €0.40 after that. Add email, phone, address, document data or company data and the same request becomes registration mode at €3.50 per user.

  5. Build the sign-in. The user taps "Entra con SPID", picks an identity provider from the standard list, enters credentials on the provider's page, confirms the second factor at level 2, consents to the attributes, and returns to your callback with a signed response. Verify the signature against the provider certificate before you read any field.

  6. Start the verification session for the steps SPID cannot do. SPID carries no portrait, so liveness, face match and sanctions screening run in your own flow. In Didit, create a session and pass the SPID values you already hold as expected details, so a mismatch surfaces as a decision warning instead of a silent pass.

    curl -X POST https://verification.didit.me/v3/session/ \
      -H "x-api-key: $DIDIT_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "workflow_id": "WORKFLOW_UUID",
        "vendor_data": "user_12345",
        "callback": "https://app.example.com/kyc/done",
        "expected_details": {
          "first_name": "Mario",
          "last_name": "Rossi",
          "date_of_birth": "1980-01-01",
          "nationality": "ITA",
          "id_country": "ITA"
        }
      }'

    In the console, the ID Verification node has a Countries tab where you enable document capture, the non-document lookup and any live wallet per country, and set the fallback switches wallet.on_failure and id_lookup.on_provider_error. Didit's documentation does not describe a SPID connector, so the documented route for an Italian user is the document check with optional NFC chip reading, passive liveness and face match.

    Face scanning step in a Didit verification flow
    The face scan step that SPID cannot cover, because SPID returns no portrait.
  7. Screen and record. Run AML screening on name, family name and date of birth, with fiscalNumber as the national identifier. Store the SPID level next to the screening result, because the level is the fact that satisfies Article 19, and a reviewer will ask for it.

  8. Read the decision and set the fallback. Fetch the decision, branch on session_kind, and treat a session as approved when the top-level status is Approved, then inspect the feature arrays for the verification steps configured in that workflow. Then route users without SPID on the same page to the document route, so nobody hits a dead end. Didit sends status.updated and data.updated webhook events when a session changes.

    curl https://verification.didit.me/v3/session/SESSION_ID/decision/ \
      -H "x-api-key: $DIDIT_API_KEY"
    const decision = await (await fetch(url, { headers: { "x-api-key": API_KEY } })).json();
    switch (decision.session_kind) {
      case "user": return handleUserDecision(decision);
      case "business": return handleBusinessDecision(decision);
    }

Expected output

A completed session returns the documented V3 shape. Feature arrays are always plural, and a feature that did not run is absent rather than filled with a placeholder.

{
  "session_id": "9b2f0c1e-...",
  "session_kind": "user",
  "status": "Approved",
  "vendor_data": "user_12345",
  "workflow_id": "WORKFLOW_UUID",
  "features": ["ID_VERIFICATION", "LIVENESS", "FACE_MATCH", "AML"],
  "id_verifications": [
    { "status": "Approved", "document_type": "Identity Card", "node_id": "id-verification" }
  ],
  "liveness_checks": [
    { "status": "Approved", "node_id": "liveness" }
  ],
  "face_matches": [
    { "status": "Approved", "node_id": "face-match" }
  ],
  "decision_trace": { "status": "Approved", "decided_by": "automatic" }
}

Read status, not a single feature score. The top-level status can be Approved, Declined, In Review, In Progress, Not Started, Expired, Abandoned, Kyc Expired, Resubmitted or Awaiting User, and decision_trace.decided_by tells you whether a person or the rule engine reached it.

A session overview with warnings in the Didit Business Console
A session overview in the Didit Business Console, where a reviewer reads the document result next to the SPID attributes you stored.

Inputs and outputs

What SPID returns, and where each attribute goes
SPID attributeWhat it carriesWhere you put it
spidCodeIdentifier of the SPID identity itselfKey for repeat sign-ins. Never a legal name
name, familyNameFirst name and surnameCustomer record and AML screening input
fiscalNumberItalian tax codeNational identifier and deduplication key
dateOfBirth, placeOfBirth, countyOfBirth, genderCivil status attributesAML file and age checks
email, mobilePhone, digitalAddressContact data. Registration mode onlyContact record. Asking for these moves the request to registration pricing
PortraitNot in the attribute table, at any levelNothing. Capture a document and a selfie in your own flow

Failure cases and recovery

What breaks, what you see, and what to do
FailureWhat you seeRecovery
The user cancels at the identity providerNo signed response, the session stays openOffer the document route on the same page and record the reason
The user only holds a lower levelA response arrives with an assurance below substantialRestart at level 2, or run the document route and record why
An attribute is missingThe signature is valid but the field is absent or nullA signature proves the issuer and the claims, not that every attribute is present. Request again or fall back
The identity provider errorsNo assertion, an error page at the providerRetry once, then the document route
AgID rejects your metadataFeedback during checks and testingFix the metadata before the convention, not after go-live
You turn every method off for a countryThe console refuses to save: no method enabled, nobody can verify hereSwitch document capture on or enable a live wallet
A wallet marked coming soon cannot leadDocument capture stays first in that countryKeep document first and revisit when the wallet goes live
The decision call fails401 invalid key, 403 missing read:sessions, 404 not foundCheck the key and its privileges, and that the session belongs to your application
The callback is rejected400, callback must be on one of the application's allowed domainsAdd the origin to the allowed domains or use the workflow default

What you pay, and where review starts

AgID bills per unique user, once a year, per identity provider and per service provider. The first 1,000 unique users in authentication mode are free for each pair.

AgID public prices for private service providers, VAT excluded, Annex 4 to Determination 166/2019
Unique users a year, per identity providerAuthentication, levels 1 and 2Registration, levels 1 and 2Authentication, level 3Registration, level 3
0 to 1,000€0€3.50€0€7
Over 1,000€0.40€3.50€7€7

AgID does not publish aggregator or broker prices, or an onboarding lead time. Those are quote required.

On the Didit side you pay only for the steps that run, from prepaid credit.

Didit list prices around a SPID login, USD per completed check
StepPriceWhen it is charged
Full ID check: document, passive liveness, face match 1:1, device and IP$0.33Per completed document-based check
NFC chip reading$0.15Add-on, when the passport or card chip is read
AML screening$0.20Per screening against sanctions, PEP and watchlist data
Ongoing AML monitoring$0.07Per person per year
EUDI Wallet, Italy listed as coming soon$0.15Per completed wallet verification once live

Review boundaries are explicit. A session is decided automatically unless your workflow rules send it to manual review, and then the status becomes In Review with an assignee, a waiting time and an SLA due date. Reviewer actions show in the reviews array, and a hand-made change to the status also writes status_override with the automatic status preserved, so you can audit who overrode what.

Worked cost example

Assume 10,000 Italian users a year. 6,000 sign in with SPID, spread across three identity providers: 3,000, 2,000 and 1,000 unique users. 4,000 have no SPID and go through the document route, and 1,500 of those present a passport or card with a chip. You screen all 10,000.

AgID fees, authentication mode, all users at level 2: identity provider one, 3,000 minus 1,000 free = 2,000 x €0.40 = €800. Identity provider two, 2,000 minus 1,000 = 1,000 x €0.40 = €400. Identity provider three, 1,000 minus 1,000 = 0 x €0.40 = €0. Total €1,200.

Didit: 4,000 document checks x $0.33 = $1,320. 1,500 NFC reads x $0.15 = $225. 10,000 AML screenings x $0.20 = $2,000. Total $3,545.

The two totals are in different currencies and are not converted here. The larger lever is the attribute request: asking for email and phone as well would have moved those 6,000 SPID users into registration mode at €3.50 each, which is €21,000.

What Didit covers today

Didit does not list SPID as a live digital ID wallet. Our published wallet coverage names MitID, BankID Sweden, iDIN, Finnish Trust Network, Smart-ID, Mobile-ID, Bank iD and Google Wallet as available, and EUDI Wallet for Italy as coming soon at $0.15 per completed verification. So a SPID sign-in stays with the AgID federation or an aggregator, and Didit runs the steps around it.

For an Italian user today that means a document check with optional NFC chip reading, passive liveness, face match 1:1 and device and IP analysis, then AML screening against sanctions, PEP and watchlist data, plus ongoing monitoring. Store the SPID attributes in your own record and pass supported matching fields as expected_details. Didit's decision covers the verification steps configured in that workflow. Didit is used by 4,000+ companies, holds SOC 2 Type 2 and ISO/IEC 27001:2022 certification, and costs $0.33 for a full ID check.

The details of an AML hit in the Didit Business Console
An AML hit in the Didit Business Console, the screening that runs after the SPID attributes arrive.

Sources

Next step: open the sandbox at business.didit.me and run one Italian document check with NFC and AML screening before you touch the AgID convention. No sales call, and the unit prices are on didit.me/pricing. If you build with an agent, the MCP setup for every client takes one prompt.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

Is there a single SPID API I can call?

No. SPID is a SAML2 federation run by AgID, and your integration is a metadata exchange plus a signed assertion from an accredited identity provider. Aggregators and brokers wrap that same exchange in an SDK or a dashboard. Ask any vendor which convention its SPID service sits under.

What does AgID require before I can accept SPID?

You implement the AgID technical rules, send your service provider metadata for checks and testing, implement the eIDAS node where you use levels 2 and 3, and have your legal representative sign the SPID convention. AgID then informs the identity providers. Every federation role except the user signs a convention.

Can I accept SPID without my own convention with AgID?

Not directly. The convention is the legal link to the federation. If you do not want one, you sign a contract with an aggregator or a multi-eID broker that already holds a convention, and the federation relationship stays with them. You still have to request the right level and attributes.

Is SPID level 2 enough for Italian AML identification?

Yes. Article 19(1)(a)(2) of Legislative Decree 231/2007 treats a customer holding a digital identity of at least substantial level in the Article 64 system as identified even without being physically present. Level 1 does not qualify.

What exactly does SPID return to my application?

The identity set is spidCode, name, familyName, placeOfBirth, countyOfBirth, dateOfBirth, gender and fiscalNumber. Contact, address, document and company attributes exist but only in registration mode, which costs more. fiscalNumber is the Italian tax code and works as your national identifier.

Why can I not run a face match on a SPID login?

Because AgID's attribute table has no portrait attribute at any level. A signature proves the issuer authenticated the person and signed the claims, nothing more. If your process needs a biometric, capture a document, read the chip where there is one, run liveness and compare the selfie to the document photo.

How much does SPID cost per user?

AgID charges per unique user, once a year, per identity provider and per service provider. Authentication is free up to 1,000 unique users per pair and €0.40 after that. Registration mode is €3.50 per user at levels 1 and 2 and €7 at level 3, and level 3 authentication is €7 per user beyond the free 1,000. VAT is excluded and aggregator prices are not published.

How do I add SPID to an app without building SAML2?

Use an aggregator or a multi-eID broker. The aggregator holds the federation link and signs its own convention with AgID, and you sign a contract with it. A broker is the better fit when Italy is one of several markets, because one integration returns SPID next to other national eIDs.

Do users need an Italian document to activate SPID?

Identity providers ask for a valid identity document, the health card or the tax code card, an email address and a personal mobile number. Didit does not provide legal advice on who is eligible to activate SPID; check the identity provider's requirements before you rely on it in your onboarding flow.

Can I use SPID for age checks on adult sites?

Not as it stands. AGCOM's double anonymity rule requires the age-proof provider not to learn which site is visited, and AGCOM's own annex says the SPID request carries the domain name of the visited site. Use a dedicated age estimation step instead. Age estimation costs $0.10 per check.

Does Didit support SPID today?

SPID is not in Didit's published live wallet list, and the docs do not describe a SPID connector. EUDI Wallet is listed for Italy as coming soon at $0.15 per completed verification. In production today the Italian route inside Didit is the document check with optional NFC chip reading, liveness, face match and AML screening.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.