Skip to main content

Overview

Grantex can issue W3C Verifiable Credentials (VCs) alongside standard RS256 JWTs. While grant tokens are optimized for real-time authorization (short-lived, revocation-checked, scope-enforced), Verifiable Credentials provide a portable, standards-compliant proof of authorization that any party can verify independently using the Grantex DID document.
Verifiable Credentials are opt-in. Existing token exchange flows continue to work unchanged. Pass credentialFormat: "vc-jwt" during token exchange to receive a VC alongside the standard grant token.

Why Verifiable Credentials?

Grant tokens work well within systems that integrate with Grantex. But in agentic commerce, agents interact with third-party services that may have no relationship with Grantex:
  • A payment processor needs proof that the agent is authorized to spend on the user’s behalf
  • A contract-signing service needs proof of human consent
  • An insurance API needs proof of delegated authority from a specific principal
Verifiable Credentials solve this by providing a self-contained, cryptographically signed document that any verifier can check using publicly available keys. No Grantex account, no API calls, no trust relationship required.

W3C Compliance

Grantex VCs conform to:

Issuing a Verifiable Credential

Request a VC during token exchange by setting the credentialFormat parameter:

Credential Types

AgentGrantCredential

Issued for direct grants (user authorizes an agent directly). The credential subject attests that a specific principal authorized a specific agent with specific scopes.

DelegatedGrantCredential

Issued for delegated grants (agent delegates to a sub-agent). Includes the full delegation chain for traceability.

FIDO Evidence

When the grant was approved via a FIDO2/WebAuthn assertion, the credential includes cryptographic proof of human presence:
This FIDO evidence is compatible with the Mastercard Verifiable Intent specification for agentic commerce, providing the cryptographic human-presence proof that payment networks require.

Verifying a VC

Using the Grantex SDK

Independent Verification

Any party can verify a Grantex VC without the SDK by:
  1. Decoding the VC-JWT (standard JWT decode)
  2. Resolving the issuer DID (did:web:grantex.dev resolves to https://grantex.dev/.well-known/did.json)
  3. Extracting the public key from the DID document
  4. Verifying the JWT signature against the public key
  5. Checking the credentialStatus endpoint for revocation
No Grantex account or API key is required for verification. The DID document and status list endpoints are public.

Revocation via StatusList2021

Grantex uses the W3C StatusList2021 standard for credential revocation. Each VC references a position in a bitstring-based status list. When a grant is revoked, the corresponding bit is flipped.

How It Works

  1. Each credential is assigned a statusListIndex (a position in the bitstring)
  2. The status list credential is published at a public URL (/v1/credentials/status/:id)
  3. When a grant is revoked, Grantex sets the bit at that index
  4. Verifiers fetch the status list and check the bit to determine revocation

Checking Status

Revocation Timing

When you revoke a grant (via DELETE /v1/grants/:id, the permission dashboard, or cascade revocation), the following happens atomically:
  1. The grant record is marked as revoked
  2. The Redis revocation key is set (grant token rejected immediately)
  3. The StatusList2021 bit is flipped (VC shows as revoked)
  4. All delegated sub-grants are cascade-revoked (and their VCs)

Listing Credentials

Mastercard Verifiable Intent

Grantex VCs are designed for compatibility with the Mastercard Verifiable Intent specification for agentic commerce. The key alignment points are:

API Reference

Next Steps

Last modified on March 8, 2026