air-issuer-service is one reference implementation). Whoever hosts it holds the issuer keys, the data source, and the x-api-key. There are two issuance paths on that backend:
- SDK issuance — the user is present. Your frontend asks your backend for a claimable
credentialSubject(viaavailable-vc), then callsair.issueCredentialwith that subject. - On-demand issuance — no user interaction with AIR. Your backend resolves the holder, then calls its own
issue-vcto build, sign, encrypt, and store the credential.
When to run an Issuer BackendIntegrate an Issuer Backend when you need on-demand issuance, queryable available credentials, revocation checks, or issuer-controlled data access. New issuance programs should use the
BJJ_SIG_2021 signature type by default.Dashboard setup
Credential services are gated. When you first sign up, the Issuer and Verifier menus (schemas, programs, and DID settings) stay hidden until your Issuer DID is registered with AIR. The setup flow is similar for Sandbox and Mainnet, but there is one important difference:- Sandbox: you can complete the issuer setup directly through the Dashboard
- Mainnet: you must generate the required parameters first and then contact us so we can complete the activation and registration on our side.
Sandbox Setup
- Create or use an AIR Dashboard account.
- Download
air-issuer-serviceand generate a seed. Your signing keys and your Issuer DID are derived from this seed, so keep it secure.Do not share the issuer seed with us or expose it in frontend code. - Retrieve your Issuer DID:
Use the provided tooling in air-issuer-service to derive and retrieve your Issuer DID. - Open the AIR Dashboard. Navigate to Issuer → Settings
- Register your issuer by pasting the issuerDID and API key, then click save.
- Complete the remaining issuer configuration:
- Supported signature types —
BJJ_SIG_2021 - JWKS URL / key information where applicable
- Issuer Backend URL and endpoint paths
- Supported signature types —
- Select or create a schema, then create an issuance program.
Mainnet Setup
For Mainnet, the process starts similarly, but activation is handled differently.- Set up
air-issuer-service - Generate and securely store the issuer seed
- Retrieve your Issuer DID
- Generate the required API Key and other configuration parameters
- Prepare your Issuer Backend URL and relevant endpoint configuration
- Issuer DID
- API Key
- Partner ID
- Issuer Backend URL
Important: Sandbox and Mainnet are separate environments. Configuration created in Sandbox should not be assumed to carry over to Mainnet. Mainnet requires its own issuer configuration and activation.
Technical integration
See Issuance API Reference for request and response details.
Configure the backend
Set up your issuer backend / environment with:- Issuer DID and signing keys
- Schema and program configuration
- API keys / partner auth
- DStorage endpoint configuration
- Issuer data source connection
- A generated private API key (
API_KEY) that protects your issuer-hosted endpoints via thex-api-keyheader
Expose available-vc
Your backend exposes POST /available-vc and accepts the holder identity:
- Retrieves the user’s eligible credential data from your data source.
- Returns
{ data: [...] }, with each credential subject encrypted to the holder’spubKey. - Accepts optional
schemaIdandproofTypefilters.
Expose issue-vc
Your backend exposes POST /issue-vc with the same holderDID, pubKey, and userId, plus the required schemaId and optional proofType:
- Retrieves the final user data.
- Builds the VC and signs it with issuer-controlled keys.
- Encrypts the VC to the user’s public key.
- Stores the encrypted VC via DStorage.
- Returns an empty response body after successful issuance. The issuer backend stores the DStorage response in its issuance record.
x-api-key: <issuerBackendApiKey>. Use userId—not holderDID alone—to retrieve partner-owned eligibility and claim data.
SDK issuance
Use this path when the user is present in your app and should confirm issuance through AIR Kit.- Your frontend asks your issuer backend for a claimable credential.
- Your backend calls (or runs the logic of)
POST /available-vcand returns thecredentialSubjectto the frontend. - The frontend calls
air.issueCredentialwith thatcredentialSubject, along with the Partner JWT, issuer DID, and program ID. - AIR Kit completes the issuance with the logged-in holder. Your backend remains authoritative over the claims it produces.
On-demand issuance
Use this path when a backend event should issue a credential with no user interaction with AIR — the end user does not need to be in a session, open a wallet, or interact with any UI. Your backend does the full issuance job. Typical triggers:- Issuing a KYC credential the moment a user passes identity verification
- Issuing an attendance credential when a venue scan detects a fan’s check-in
- Issuing a subscriber tier credential at the end of each billing cycle
- Issuing a loyalty credential triggered by a purchase event
How it works
- A backend event fires — KYC passed, purchase confirmed, check-in scanned — or your batch job begins.
- Your backend loads its environment: issuer signing keys and DID, schema and program configuration, Partner auth, and DStorage config.
- Your backend calls
POST /auth/initialize-userwith the recipient’s email to resolve or create the user’s AIR Account, receiving the user DID and public key. The email is passed in the request body — not in the Partner JWT. - Your backend calls its own
POST /issue-vc(or runs the same logic inline) to build the VC, sign it with issuer-controlled keys (BJJ_SIG_2021), encrypt it to the user public key, and store the encrypted envelope viaPOST /dstorage/vcs. - The user presents the credential later at any verifier; no action needed at issuance time.
Prerequisites
- Credential services enabled — Generate your Issuer DID with
air-issuer-serviceand register it with AIR to unlock issuer functionality. - Partner ID and Issuer DID — Partner ID from the Developer Dashboard (Accounts → General). Your Issuer DID is derived from your own signing keys; AIR does not generate it for you.
- Issuance program — A published credential program in the dashboard (Issuer → Programs).
- JWKS endpoint — A public URL serving your public key for JWT verification. See Partner Authentication.
Compliance encryption (CAK)
When compliance encryption is enabled for your issuance program (configured in the Developer Dashboard), you can obtain a user-specific public key (cakPublicKey) to encrypt additional compliance data for regulated disclosure or threshold decryption. The key is deterministically derived from the [User – Issuer – Schema] composite identifier, so the same key is returned for the same combination.
Full CAK Issuer Guide
For Dashboard configuration, encrypting user data with the CAK public key, and implementing the callback endpoint, see the dedicated CAK Issuer Guide.
View issued credential records
Review the records of every credential you have issued in the Developer Dashboard under Issuer → Usage Records. Where a credential needs to be invalidated, use the Revoke function in the Dashboard.
Issuer -> Usage Records in the Developer Dashboard
GET /admin/issuance-history and revoke by nonce with POST /admin/revoke. Issued BJJ credentials reference the public GET /credential-status/:nonce endpoint for non-revocation proofs. See the Issuance API Reference for the complete issuer-side contract.
Best practices for issuers
- Only issue credentials after thorough validation of submitted evidence or claims.
- Keep source data and signing keys under issuer control; never expose plaintext user data to AIR.
- Minimize personally identifiable information — issue privacy-preserving credentials whenever possible.
- Adopt open, standardized schemas to maximize compatibility across apps.
- Implement robust expiry and revocation processes, and keep holders and verifiers informed of credential status.
- Treat bulk imports as an operational process for large backfills, not the default integration path.