Skip to main content

REST API

For on-demand credential issuance without user presence, resolve the user and store an encrypted credential in DStorage:
  • Resolve user: POST /v1/auth/initialize-user
  • Store encrypted VC: POST /v1/dstorage/vcs
  • Sandbox: https://api.sandbox.mocachain.org/v1
  • Production: https://mocachain-mainnet.api.air3.com/v1
The production endpoint is for approved production partners on Moca Chain private Mainnet. See Production mainnet access before requesting mainnet $MOCA gas tokens.
Authenticate with a Partner JWT in the x-partner-auth header. Full endpoint reference and implementation examples: Issuance API Reference.

AirService

claimAirId and the show*UI methods are experimental and may change in future releases.fieldsToDisclose is documented in Selective Disclosure. fieldsToDisclose and nonce are both required for SD_JWT_VC verification programs — see Verifying credentials.

Types