mt_travel_issue_vc
Issue a TravelAgentCredential (W3C Verifiable Credential) for a booking agent.
Creates a cryptographically signed credential that authorizes an AI agent
to book travel on behalf of a principal (company/human), with enforced
segment permissions and spend limits.
Args:
agent_did: DID of the travel agent (e.g. "did:base:0x...")
principal_did: DID of the authorizing entity (e.g. "did:base:acme-corp")
segments: Comma-separated allowed segments (e.g. "hotel,flight,car_rental")
spend_limit: Maximum spend amount per booking
currency: Currency code (e.g. "USDC")
traveler_name: Name of the authorized traveler (optional)
validity_days: Number of days the credential is valid (default 30)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | Currency code (e.g. "USDC") | |
| segments | Yes | Comma-separated allowed segments (e.g. "hotel,flight,car_rental") | |
| agent_did | Yes | DID of the travel agent (e.g. "did:base:0x...") | |
| spend_limit | Yes | Maximum spend amount per booking | |
| principal_did | Yes | DID of the authorizing entity (e.g. "did:base:acme-corp") | |
| traveler_name | No | Name of the authorized traveler (optional) | |
| validity_days | No | Number of days the credential is valid (default 30) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |