Login.gov · Schema

Login.gov UserInfo

Schema for the JSON object returned by Login.gov's OIDC userinfo endpoint. IAL2-only attributes are only populated for users who have completed identity verification and consented to the corresponding scope.

GovernmentFederalGSAIdentityAuthenticationSSOOIDCSAMLIAL2AAL2

Properties

Name Type Description
sub string Stable per-RP user identifier (UUID v4).
iss string Issuer URL. Sandbox: https://idp.int.identitysandbox.gov. Production: https://secure.login.gov.
email string
email_verified boolean Login.gov only returns verified email addresses.
all_emails array All verified addresses on the user's Login.gov account.
locale string
ial string Identity Assurance Level granted.
aal string Authenticator Assurance Level granted.
given_name string IAL2 only.
family_name string IAL2 only.
birthdate string IAL2 only.
address object IAL2 only.
phone stringnull E.164 phone number. IAL2 only. May be null.
phone_verified boolean
social_security_number string IAL2 only with social_security_number scope.
verified_at integernull Unix timestamp when identity verification completed. Null for IAL1 users.
x509_subject string
x509_issuer string
x509_presented boolean
View JSON Schema on GitHub

JSON Schema

login-gov-userinfo-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/login-gov/main/json-schema/login-gov-userinfo-schema.json",
  "title": "Login.gov UserInfo",
  "description": "Schema for the JSON object returned by Login.gov's OIDC userinfo endpoint. IAL2-only attributes are only populated for users who have completed identity verification and consented to the corresponding scope.",
  "type": "object",
  "required": ["sub", "iss", "email", "email_verified"],
  "properties": {
    "sub": {
      "type": "string",
      "format": "uuid",
      "description": "Stable per-RP user identifier (UUID v4)."
    },
    "iss": {
      "type": "string",
      "format": "uri",
      "description": "Issuer URL. Sandbox: https://idp.int.identitysandbox.gov. Production: https://secure.login.gov."
    },
    "email": {
      "type": "string",
      "format": "email"
    },
    "email_verified": {
      "type": "boolean",
      "description": "Login.gov only returns verified email addresses."
    },
    "all_emails": {
      "type": "array",
      "items": { "type": "string", "format": "email" },
      "description": "All verified addresses on the user's Login.gov account."
    },
    "locale": {
      "type": "string",
      "enum": ["en", "es", "fr"]
    },
    "ial": {
      "type": "string",
      "description": "Identity Assurance Level granted.",
      "examples": [
        "http://idmanagement.gov/ns/assurance/ial/1",
        "http://idmanagement.gov/ns/assurance/ial/2"
      ]
    },
    "aal": {
      "type": "string",
      "description": "Authenticator Assurance Level granted.",
      "examples": [
        "http://idmanagement.gov/ns/assurance/aal/2",
        "http://idmanagement.gov/ns/assurance/aal/2?phishing_resistant=true",
        "http://idmanagement.gov/ns/assurance/aal/2?hspd12=true"
      ]
    },
    "given_name": { "type": "string", "description": "IAL2 only." },
    "family_name": { "type": "string", "description": "IAL2 only." },
    "birthdate": { "type": "string", "format": "date", "description": "IAL2 only." },
    "address": {
      "type": "object",
      "description": "IAL2 only.",
      "properties": {
        "formatted": { "type": "string" },
        "street_address": { "type": "string" },
        "locality": { "type": "string" },
        "region": { "type": "string" },
        "postal_code": { "type": "string" },
        "country": { "type": "string" }
      }
    },
    "phone": { "type": ["string", "null"], "description": "E.164 phone number. IAL2 only. May be null." },
    "phone_verified": { "type": "boolean" },
    "social_security_number": { "type": "string", "description": "IAL2 only with social_security_number scope." },
    "verified_at": {
      "type": ["integer", "null"],
      "description": "Unix timestamp when identity verification completed. Null for IAL1 users."
    },
    "x509_subject": { "type": "string" },
    "x509_issuer": { "type": "string" },
    "x509_presented": { "type": "boolean" }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/login-gov-userinfo"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.