Search credentials
Search and filter credentials retrieved from the /api/credential/v1
endpoint by
using a combination of searchType
and searchText
:
searchType
- Choose any combination of categories to searchCLAIM_NAME
searches the claim keys of credentials, such asName
orNationality
CLAIM_VALUE
searches the claim values of credentials, such asJohn
orUSA
CREDENTIAL_SCHEMA_NAME
searches the names of the credential schemas, such asDriver's License
orResidence Permit
searchText
- Full-text, case-sensitive search of the chosen categories
A credential will be returned if there is text match within the first 255 bytes in one of the chosen categories.
note
Searching credentials by name
is deprecated and will return an error if combined
with searching by searchType
and searchText
.
Credential roles
Every credential in the system belongs to one of three roles, indicated by the role
field
when retrieving credentials.
ISSUER
: Credentials issued by the systemHOLDER
: Credentials held by the system, as for a walletVERIFIER
: Credentials shared with the system as part of a proof request
Use the credential role
to differentiate credentials by their origin in the system.