The UserInfo endpoint supports two response formats based on client configuration and Accept headers:

#### JSON Response (Default)

```json
{
  "sub": "unique_subject_identifier",
  "name": "John Doe",
  "given_name": "John",
  "family_name": "Doe",
  "email": "john@example.com",
  "email_verified": true,
  "phone_number": "+1234567890",
  "phone_number_verified": true,
  "birthdate": "1990-01-01",
  "picture": "https://sandbox.truevault.com.au/oauth/oidc/userinfo/picture/view?sub=..."
}
```

#### JWS (JWT) Response

When client policy requires signed responses or `Accept: application/jwt` header is sent:

```text
eyJhbGciOiJSUzI1NiIsImtpZCI6IjEyMzQiLCJ0eXAiOiJKV1QifQ.eyJzdWIiOiJ1bmlxdWVfc3ViamVjdF9pZGVudGlmaWVyIiwibmFtZSI6IkpvaG4gRG9lIiwiZ2l2ZW5fbmFtZSI6IkpvaG4iLCJmYW1pbHlfbmFtZSI6IkRvZSIsImVtYWlsIj…R0cHM6Ly95b3VyLXRydWV2YXVsdC1pbnN0YW5jZS5jb20vb2F1dGgvb2lkYyIsImF1ZCI6IllPVVJfQ0xJRU5UX0lEIiwiaWF0IjoxNjQwOTk1MjAwLCJleHAiOjE2NDA5OTU4MDB9.signature
```

To request JWS format:

```http
GET https://sandbox.truevault.com.au/oauth/oidc/userinfo Authorization: Bearer ACCESS_TOKEN Accept: application/jwt
```

#### Complete Structure Example

```json
{
  "sub": "a937d757-914d-4c33-b5c4-87f084b2181a",
  "given_name": "John",
  "family_name": "Smith",
  "nickname": "John Smith",
  "picture": "https://app.truevault.com.au/oauth/oidc/userinfo/picture/view?sub=a937d757-914d-4c33-b5c4-87f084b2181a&c=0&exp=1771886860&rid=7b10fa9a-3431-4987-b98e-24cbd9e5faff&sig=2E9jrfjpCQiv8pVKJPm0cPcWBduXypivb5uBX7XeNEM",
  "birthdate": "1980-01-01",
  "true": {
    "document.driving_license.licence_number": "123456789",
    "document.passport.travel_document_number": "M1234567",
    "trueidentity.birth_date": "1980-01-01",
    "trueidentity.credential": {
      "@context": [
        "https://www.w3.org/ns/credentials/v2",
        "https://purl.imsglobal.org/spec/ob/v3p0/context-3.0.3.json",
        "https://purl.imsglobal.org/spec/ob/v3p0/extensions.json",
        "https://app.truevault.com.au/baric/credential/tv-vocab/1.jsonld"
      ],
      "credentialSubject": {
        "id": "https://app.truevault.com.au/baric/credential/trueidentity/ecedce2c-a879-5112-af04-9c9dbc296181/4b9e784c-fe46-53c2-8699-d85f316a54c6",
        "type": [
          "AchievementSubject"
        ],
        "achievement": {
          "id": "https://app.truevault.com.au/baric/credential/achievement/ecedce2c-a879-5112-af04-9c9dbc296181/4b9e784c-fe46-53c2-8699-d85f316a54c6",
          "type": [
            "Achievement"
          ],
          "criteria": {
            "narrative": "Completed the Biometrically Verified Identity Process."
          },
          "description": "TrueVault Biometrically Anchored TrueIdentity Credential",
          "name": "TrueVault TrueIdentity",
          "achievementType": "Badge",
          "image": {
            "id": "https://app.truevault.com.au/baric/credential/badge/trueidentity/ecedce2c-a879-5112-af04-9c9dbc296181/4b9e784c-fe46-53c2-8699-d85f316a54c6",
            "type": "Image",
            "caption": "TrueVault TrueIdentity Icon"
          },
          "inLanguage": "en-GB"
        }
      },
      "credentialSchema": [
        {
          "id": "https://purl.imsglobal.org/spec/ob/v3p0/schema/json-ld/ob_v3p0_achievementcredential_schema.json",
          "type": "JsonSchema2020"
        }
      ],
      "evidence": [
        {
          "id": "https://app.truevault.com.au/baric/credential/evidence/4b9e784c-fe46-53c2-8699-d85f316a54c6/0aeabfb9-430b-5f71-ac35-89ee5287b788",
          "name": "Australian Passport",
          "description": "Document number: RA*****88",
          "type": [
            "Evidence"
          ],
          "dateCreated": "2026-02-19T06:15:36Z",
          "dateIssued": "2026-02-19T06:15:36Z",
          "issuer": "https://app.truevault.com.au/baric/credential/issuer.json",
          "tv:evidenceTypes": {
            "docType": "PASSPORT",
            "inputType": "Biometric & OCR",
            "authoritativeSource": "Australian Source of Truth"
          },
          "tv:dataObject": {
            "truevaultReference": "0aeabfb9-430b-5f71-ac35-89ee5287b788",
            "serviceReference": "f311edd2-6066-5090-ab1f-616743e2b519",
            "verifierReference": "25a98d58-decb-4cf4-9a8e-1c14ba194141",
            "namesVerified": [
              {
                "first_name": "John",
                "last_name": "Smith"
              }
            ],
            "dateExpires": "2027-12-31T13:00:00Z"
          }
        },
        {
          "id": "https://app.truevault.com.au/baric/credential/evidence/4b9e784c-fe46-53c2-8699-d85f316a54c6/6bead471-7e11-55ec-87dd-b8fe31aed5a3",
          "name": "Australian Citizenship Certificate",
          "description": "Document number: 12*****78",
          "type": [
            "Evidence"
          ],
          "dateCreated": "2026-02-19T06:18:41Z",
          "dateIssued": "2026-02-19T06:18:37Z",
          "issuer": "https://app.truevault.com.au/baric/credential/issuer.json",
          "tv:evidenceTypes": {
            "docType": "CITIZENSHIP_CERT",
            "inputType": "Manually Submitted",
            "authoritativeSource": "Australian Source of Truth"
          },
          "tv:dataObject": {
            "truevaultReference": "6bead471-7e11-55ec-87dd-b8fe31aed5a3",
            "serviceReference": "8b269c80-a216-531e-b01d-f39b98b2d447",
            "verifierReference": "24cbf64f-04d2-4452-bf87-7d41942d38e7",
            "namesVerified": [
              {
                "first_name": "John",
                "last_name": "Smith"
              }
            ],
            "dateExpires": null
          }
        },
        {
          "id": "https://app.truevault.com.au/baric/credential/evidence/4b9e784c-fe46-53c2-8699-d85f316a54c6/a3c9caa7-02bb-5f20-9408-792db2a1b31c",
          "name": "Australian Driving Licence",
          "description": "Licence number: 12*****89",
          "type": [
            "Evidence"
          ],
          "dateCreated": "2026-02-19T06:18:53Z",
          "dateIssued": "2026-02-19T06:18:51Z",
          "issuer": "https://app.truevault.com.au/baric/credential/issuer.json",
          "tv:evidenceTypes": {
            "docType": "DRIVING_LICENSE",
            "inputType": "Manually Submitted",
            "authoritativeSource": "Australian Source of Truth"
          },
          "tv:dataObject": {
            "truevaultReference": "a3c9caa7-02bb-5f20-9408-792db2a1b31c",
            "serviceReference": "8b576286-15ff-5ed5-b8a1-1cdec83d41fd",
            "verifierReference": "262149d5-0781-4721-bf7c-8a84c3e301d6",
            "namesVerified": [
              {
                "first_name": "John",
                "last_name": "Smith"
              }
            ],
            "dateExpires": "2027-12-31T13:00:00Z"
          }
        },
        {
          "id": "https://app.truevault.com.au/baric/credential/evidence/4b9e784c-fe46-53c2-8699-d85f316a54c6/44c36bf4-656d-5895-984e-0f13915861cf",
          "name": "Marriage Certificate (Australian)",
          "description": "Certificate number: 19****9",
          "type": [
            "Evidence"
          ],
          "dateCreated": "2026-02-19T21:58:13Z",
          "dateIssued": "2026-02-19T21:58:11Z",
          "issuer": "https://app.truevault.com.au/baric/credential/issuer.json",
          "tv:evidenceTypes": {
            "docType": "MARRIAGE_CERT",
            "inputType": "Manually Submitted",
            "authoritativeSource": "Australian Source of Truth"
          },
          "tv:dataObject": {
            "truevaultReference": "44c36bf4-656d-5895-984e-0f13915861cf",
            "serviceReference": "7bc92f76-dcce-54d2-9076-7afd6f3f93d5",
            "verifierReference": "46def373-68a7-4fed-8c90-7151e9b59be9",
            "namesVerified": [
              {
                "first_name": "John",
                "last_name": "Smith"
              },
              {
                "first_name2": "Mary",
                "last_name2": "Jones"
              }
            ],
            "dateExpires": null
          }
        }
      ],
      "validUntil": "2027-12-31T13:00:00Z",
      "id": "https://app.truevault.com.au/baric/credential/trueidentity/ecedce2c-a879-5112-af04-9c9dbc296181/4b9e784c-fe46-53c2-8699-d85f316a54c6",
      "issuanceDate": "2026-02-19T21:58:17Z",
      "issuer": {
        "id": "https://app.truevault.com.au/baric/credential/issuer.json",
        "type": [
          "Profile"
        ],
        "description": "TrueVault Credential Issuer",
        "name": "TrueVault Credential Issuer",
        "url": "https://app.truevault.com.au/",
        "email": "issuer@truevault.com.au"
      },
      "name": "TrueIdentity",
      "type": [
        "VerifiableCredential",
        "OpenBadgeCredential"
      ],
      "validFrom": "2026-02-19T21:58:17Z",
      "credentialStatus": {
        "id": "https://app.truevault.com.au/baric/credential/status-lists/list/1#13543",
        "type": "BitstringStatusListEntry",
        "statusPurpose": "revocation",
        "statusListIndex": "13543",
        "statusListCredential": "https://app.truevault.com.au/baric/credential/status-lists/list/1"
      }
    },
    "trueidentity.email": "john.smith@example.com",
    "trueidentity.email_verified": "true",
    "trueidentity.family_name": "Smith",
    "trueidentity.given_name": "John",
    "trueidentity.names_verified": "{\"PASSPORT\":[\"John Smith\"],\"CITIZENSHIP_CERT\":[\"John Smith\"],\"DRIVING_LICENSE\":[\"John Smith\"],\"COURT_CHECK\":[\"John Smith\"],\"MEDICARE\":[\"John Jones\"],\"MARRIAGE_CERT\":[\"John Smith\",\"Mary Jones\"]}",
    "trueidentity.phone": "+61491187656",
    "trueidentity.phone_verified": "true",
    "trueidentity.name": "{\"first_name\":\"John\",\"last_name\":\"Smith\"}",
    "trueidentity.biometric": "/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAA\u2026aSmb/2Q=="
  }
}
```
