Profile Categories

List of the available data points from other profile categories from the profile template that application can request from the Affinidi Vault.

Presentation Definition

Below is the sample Presentation Definition for querying personal information from the user’s Affinidi Vault.

{
  "id": "category_data",
  "input_descriptors": [
    {
      "id": "category_vc",
      "name": "Category VC",
      "purpose": "Get some category data",
      "constraints": {
        "fields": [
            {
                "path": [
                "$.@context"
                ],
                "purpose": "Verify VC Context",
                "filter": {
                    "type": "array",
                    "contains": {
                        "type": "string",
                        "pattern": "^https://schema.affinidi.io/profile-template/context.jsonld$"
                    }
                }
            },
            {
                "path": [
                "$.type"
                ],
                "purpose": "Verify VC Type",
                "filter": {
                    "type": "array",
                    "contains": {
                        "type": "string",
                        "pattern": "^ProfileTemplate$"
                    }
                }
            },
            {
              "path": [
                "$.credentialSubject.categories.travel.frequentDestinations[0].frequentDestination"
              ],
              "purpose": "Require frequent travel destination"
            }
        ]
      }
    }
  ]
}

The sample Presentation Definition above requests the user’s frequent travel destination from the profile categories data. Additionally, we must include the $.@context and $.type filters to ensure we request data from the Profile Template schema.

Available Data Points

Here is the list of profile categories, including the fields that can be requested from the user’s Affinidi Vault.

Behaviors

Data points from the behaviors category of the profile.

Interest

Property Name:interests

Property Type:Array

Property Path:$.credentialSubject.categories.behaviors.interests[0]

NameTypeField NameDescription
Interested inStringinterestAdd interests such as Travel, Photography, etc.

To request the data, use the property path with the field name of the data you require.

For example, $.credentialSubject.categories.behaviors.interests[0].{FIELD_NAME}

Fashion

Data points from the fashion category of the profile.

Favorite brands

Property Name:favoriteBrands

Property Type:Array

Property Path:$.credentialSubject.categories.fashion.favoriteBrands[0]

NameTypeField NameDescription
Brand nameStringfavoriteBrandEnter brand name

To request the data, use the property path with the field name of the data you require.

For example, $.credentialSubject.categories.fashion.favoriteBrands[0].{FIELD_NAME}

Matters most

Property Name:mattersMost

Property Type:String

Property Path:$.credentialSubject.categories.fashion

NameTypeField NameDescription
Matters mostStringmattersMostEnter what matters most for you in fashion

To request the data, use the property path with the field name of the data you require.

For example, $.credentialSubject.categories.fashion.{FIELD_NAME}

Fitness

Data points from the fitness category of the profile.

Activities

Property Name:activities

Property Type:Array

Property Path:$.credentialSubject.categories.fitness.activities[0]

NameTypeField NameDescription
ActivityStringactivityEnter activity
FrequencyStringfrequencyEnter frequency

To request the data, use the property path with the field name of the data you require.

For example, $.credentialSubject.categories.fitness.activities[0].{FIELD_NAME}

Fitness goals

Property Name:fitnessGoals

Property Type:Array

Property Path:$.credentialSubject.categories.fitness.fitnessGoals[0]

NameTypeField NameDescription
Fitness goalStringfitnessGoalEnter fitness goal

To request the data, use the property path with the field name of the data you require.

For example, $.credentialSubject.categories.fitness.fitnessGoals[0].{FIELD_NAME}

Identity documents

Data points from the identityDocuments category of the profile.

Paper identity documents

Property Name:paperIdentityDocuments

Property Type:Array

Property Path:$.credentialSubject.categories.identityDocuments.paperIdentityDocuments[0]

NameTypeField NameDescription
Document categoryStringdocumentCategorySelect document category
Document identifierStringdocumentIdentifierEnter document identifier
Issued byStringissuedByEnter issuer name
TagsArraytagsTags
Valid fromStringvalidFromEnter date for valid from (YYYY-MM-DD)
Valid untilStringvalidUntilEnter date for valid until (YYYY-MM-DD)

To request the data, use the property path with the field name of the data you require.

For example, $.credentialSubject.categories.identityDocuments.paperIdentityDocuments[0].{FIELD_NAME}

Memberships

Data points from the memberOf category of the profile.

Membership

Property Name:membership

Property Type:Array

Property Path:$.credentialSubject.categories.memberOf.membership[0]

NameTypeField NameDescription
Membership descriptionStringdescriptionEnter membership description
End dateStringendDateEnter membership end date (YYYY-MM-DD)
Membership card balanceStringmembershipBalanceEnter membership card balance
Membership numberStringmembershipNumberEnter membership number
Membership nameStringnameEnter membership name
Start dateStringstartDateEnter membership start date (YYYY-MM-DD)

To request the data, use the property path with the field name of the data you require.

For example, $.credentialSubject.categories.memberOf.membership[0].{FIELD_NAME}

Movies

Data points from the movies category of the profile.

Favorite actors

Property Name:favoriteActors

Property Type:Array

Property Path:$.credentialSubject.categories.movies.favoriteActors[0]

NameTypeField NameDescription
Actor nameStringfavoriteActorEnter actor name

To request the data, use the property path with the field name of the data you require.

For example, $.credentialSubject.categories.movies.favoriteActors[0].{FIELD_NAME}

Favorite movie genres

Property Name:favoriteGenres

Property Type:Array

Property Path:$.credentialSubject.categories.movies.favoriteGenres[0]

NameTypeField NameDescription
GenreStringfavoriteGenreEnter genre

To request the data, use the property path with the field name of the data you require.

For example, $.credentialSubject.categories.movies.favoriteGenres[0].{FIELD_NAME}

Mood states

Property Name:moodStates

Property Type:Array

Property Path:$.credentialSubject.categories.movies.moodStates[0]

NameTypeField NameDescription
Mood stateStringmoodStateEnter your mood states related to movies

To request the data, use the property path with the field name of the data you require.

For example, $.credentialSubject.categories.movies.moodStates[0].{FIELD_NAME}

Music

Data points from the music category of the profile.

Favorite music genres

Property Name:favoriteGenres

Property Type:Array

Property Path:$.credentialSubject.categories.music.favoriteGenres[0]

NameTypeField NameDescription
GenreStringfavoriteGenreEnter genre

To request the data, use the property path with the field name of the data you require.

For example, $.credentialSubject.categories.music.favoriteGenres[0].{FIELD_NAME}

Mood states

Property Name:moodStates

Property Type:Array

Property Path:$.credentialSubject.categories.music.moodStates[0]

NameTypeField NameDescription
Mood stateStringmoodStateEnter your mood states related to music

To request the data, use the property path with the field name of the data you require.

For example, $.credentialSubject.categories.music.moodStates[0].{FIELD_NAME}

Playlists

Property Name:playlists

Property Type:Array

Property Path:$.credentialSubject.categories.music.playlists[0]

NameTypeField NameDescription
Playlist nameStringnameEnter playlist name
TracksArraytracksTracks

To request the data, use the property path with the field name of the data you require.

For example, $.credentialSubject.categories.music.playlists[0].{FIELD_NAME}

Sports

Data points from the sports category of the profile.

Interests

Property Name:interests

Property Type:Array

Property Path:$.credentialSubject.categories.sports.interests[0]

NameTypeField NameDescription
Sport nameStringinterestEnter sport name

To request the data, use the property path with the field name of the data you require.

For example, $.credentialSubject.categories.sports.interests[0].{FIELD_NAME}

Travel

Data points from the travel category of the profile.

Frequent destinations

Property Name:frequentDestinations

Property Type:Array

Property Path:$.credentialSubject.categories.travel.frequentDestinations[0]

NameTypeField NameDescription
Destination nameStringfrequentDestinationEnter destination name

To request the data, use the property path with the field name of the data you require.

For example, $.credentialSubject.categories.travel.frequentDestinations[0].{FIELD_NAME}

Travel style

Property Name:travelStyle

Property Type:String

Property Path:$.credentialSubject.categories.travel

NameTypeField NameDescription
Travel styleStringtravelStyleEnter travel style such as Solo, Group, Family, etc.

To request the data, use the property path with the field name of the data you require.

For example, $.credentialSubject.categories.travel.{FIELD_NAME}