Overview
Thepassports sub-client manages AgentPassportCredentials — W3C VC 2.0 credentials that bind agent identity, human delegation, and spending limits for machine payment flows.
passports.issue()
Issue a new AgentPassportCredential for an agent with an active grant.Parameters
string
required
Grantex agent ID (
ag_...). Must belong to the developer.string
required
Active Grantex grant ID (
grnt_...). Must include payments:mpp:* scopes for each requested category.string[]
required
MPP service categories:
inference, compute, data, storage, search, media, delivery, browser, general.object
required
Maximum per-transaction amount:
{ amount: number, currency: 'USDC' }.string[]
default:"['tempo']"
Payment networks to include in the credential.
string
default:"24h"
Expiry duration (e.g.,
1h, 8h, 24h, 30d). Maximum: 720h (30 days).string
For delegated sub-agent passports — links to the parent passport.
Response: IssuedPassportResponse
Errors
passports.get()
Retrieve a passport by its ID. Returns the full credential JSON plus current status.Parameters
string
required
The passport URN identifier.
passports.revoke()
Revoke a passport immediately. Flips the StatusList2021 bit so offline verifiers see the revocation.Parameters
string
required
The passport URN identifier.
Response: RevokePassportResponse
passports.list()
List passports with optional filters.Parameters
string
Filter by agent ID.
string
Filter by grant ID.
string
Filter by status:
active, revoked, or expired.