Skip to main content

Get credential schema details

Returns details on a credential schema.

Function

getCredentialSchema(credentialSchemaId: CredentialSchema["id"]): Promise<CredentialSchemaDetail>

Parameters

  • credentialSchemaId - UUID of credential schema.

Return value

export interface CredentialSchemaDetail {
id: string;
createdDate: string;
lastModified: string;
name: string;
format: string;
revocationMethod: string;
claims: ClaimSchema[],
walletStorageType?: WalletStorageType;
schemaId: string;
schemaType: CredentialSchemaType;
layoutType?: LayoutType;
layoutProperties?: CredentialSchemaLayoutProperties;
}
export interface ClaimSchema {
id: string;
createdDate: string;
lastModified: string;
key: string;
datatype: string;
required: boolean;
array?: boolean;
claims: ClaimSchema[];
}

Fields

  • format - Credential format of the credentials issued using this schema.

  • revocationMethod - Revocation method of credentials issued using this schema, if any.

  • claims - The set of claims being asserted when using this credential schema.

  • walletStorageType - Wallet storage type requested by the verifier, if any. See the wallet storage type guide.

    • [HARDWARE, SOFTWARE]
  • schemaId - The identifier of the credential schema used to issue this credential.

  • schemaType - Specifies the structure of the data in the credential. See the credentialSchema property guide.

  • layoutType - Represents the visual structure of the credential in the wallet. The details of the design of the credential (for credentials issued by Procivis One) are found in the CredentialSchemaDetail of the get credential details function. For more information on the display properties of Procivis One credentials, see the credentials designer guide.

    • [CARD, DOCUMENT, SINGLE_ATTRIBUTE]
  • layoutProperties for layoutType CARD - Intended visual design of the credential.

    • background - Background image

    • logo -

    • primaryAttribute - Attribute which should be prioritized visually.

    • secondaryAttribute - Secondary attribute to prioritize visually.

    • pictureAttribute - Specified picture attribute to display.

    • code - Specified attribute to encode and display as a code. Note that this encoding is not verifiable.

      • Supported code types: [BARCODE, MRZ, QR_CODE]