Skip to content

Eligibility Criteria

This document describes how to construct sdkQuery objects and the supported operators and credential schemas.

Query basics

An sdkQuery is an array of query objects. Each query contains an id, circuitId, subjectTitle, and a query that describes the proof requirements.

Example:

{
  "id": 1,
  "circuitId": "credentialAtomicQuerySigV2",
  "subjectTitle": "18+ Years Old",
  "query": {
    "allowedIssuers": ["*"],
    "type": "EssentialIdCredential",
    "context": "https://.../EssentialIdCredential.jsonld",
    "credentialSubject": { "birthDate": { "$lt": 20070622 } }
  }
}

Supported operators

  • $eq — equals
  • $lt — less than
  • $gt — greater than
  • $in — in list

Use an empty object {} for selective disclosure (requesting a field without asserting its value).

Common credential types

  • EssentialIdCredential
  • PassportCredential
  • ProofOfAddressCredential
  • AMLCTFCredential
  • ProofOfIncorporationCredential
  • BeneficiariesCredential

For examples and schema URLs, refer to the individual pages and the API reference.