---
title: "Schemas"
description: "Every request and response schema, linked from each operation."
url: https://app.visacli.sh/docs/reference/schemas
updated: 2026-11-18
---

# Schemas

> Every request and response schema, linked from each operation.

Canonical: https://app.visacli.sh/docs/reference/schemas. Updated: 2026-11-18. Full index: /llms.txt.

VARS schemas ([where they come from](/docs/reference/vars.md)), all 15 public VMRS schemas, and the payload and error shapes Visa CLI uses.

<a id="vars-schema-AgentCreate"></a>

### VARS · AgentCreate

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `name` | `string` | Required | Human-readable agent name. |
| `domain` | `string` | Required | Unique HTTP(S) agent domain. Visa CLI derives a stable, unique host per agent. |
| `description` | `string` | Required | Agent purpose. |
| `contactEmail` | `string · email` | Required | Routable contact, unique on your TRID: a duplicate answers `409`, which Basis Theory reports as `AGENT_CONTACT_EMAIL_CONFLICT`, and a plus-address counts as a different email. Visa CLI sends a stable plus-address alias of the verified contact. |
| `tokenRequestorId` | `string` | Required | Token requestor identifier. Visa CLI sends a label of its own for each agent, not the agent's ID; get the correct identifier for your VDP integration. |
| `keys` | array of [`KeyCreate`](/docs/reference/schemas.md#vars-schema-KeyCreate) | Optional | Optional initial public signing keys. |

<a id="vars-schema-AgentUpdate"></a>

### VARS · AgentUpdate

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `name` | `string` | Optional | The agent's name. Visa CLI sends it. |
| `description` | `string` | Optional | The agent's description. Visa CLI sends it. |
| `contactEmail` | `string · email` | Optional | Updated verified contact. Visa CLI does GET → PUT → GET to confirm the result. |
| `domain` | `string` | Optional | Listed as changeable; Visa CLI doesn't send it. Confirm against the current authorized schema before using. |

<a id="vars-schema-KeyCreate"></a>

### VARS · KeyCreate

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `keyName` | `string` | Required | Human-readable / stable key name. Visa CLI sends the RFC 7638 thumbprint (JKT). |
| `algorithm` | `string` | Required | For Ed25519 keys, send lowercase ed25519. For any other value, check the current VARS schema, which needs authorized access. |
| `publicKey` | `string` | Required | Base64 of the complete UTF-8 SPKI PEM public key, including PEM markers and line breaks. This is a public signing key. |
| `expirationDate` | `string · date-time` | Optional | UTC expiry. Visa CLI requests now + 365 days. Always send it. |
| `address` | `string` | Optional | Base58 of the raw 32-byte Ed25519 public key, up to 512 characters. It's per-key data from VARS 26.08, and Visa CLI sends it. |

<a id="vars-schema-KeyUpdate"></a>

### VARS · KeyUpdate

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `expirationDate` | `string · date-time` | Optional | The field Visa CLI updates today; use an explicit UTC instant. |
| `keyName` | `string` | Optional | The key's name. Visa CLI doesn't send it, so confirm it against the authorized schema. |
| `algorithm` | `string` | Optional | The key's algorithm. The current allowed values aren't public. |
| `publicKey` | `string` | Optional | The public key, as base64 SPKI PEM if your authorized schema accepts it. |

<a id="vars-schema-AgentResponse"></a>

### VARS · AgentResponse

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `id` | `string` | Required | The agent's ID; use this as agentId in VARS paths. |
| `name` | `string` | Required | Registered agent name. |
| `domain` | `string` | Required | Registered agent domain. |
| `isActive` | `boolean` | Required | Agent activation. Agents created through the API are active by default. |
| `tokenRequestorId` | `string` | Required | Registered token requestor identifier. |
| `createdAt` | `string · date-time` | Required | Creation timestamp. |
| `updatedAt` | `string · date-time` | Required | Update timestamp. |
| `description` | `string` | Optional | Agent description. |
| `contactEmail` | `string` | Optional | VARS returns contact data to credentialed callers; the public lookup routes have a separate response without it. |
| `keys` | array of [`KeyResponse`](/docs/reference/schemas.md#vars-schema-KeyResponse) | Optional | Associated key records. |

<a id="vars-schema-KeyResponse"></a>

### VARS · KeyResponse

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `id` | `string` | Required | The key's ID; use this as keyId in VARS paths. |
| `agentId` | `string` | Optional | The agent this key belongs to; optional in what Visa CLI reads. |
| `keyName` | `string` | Required | Registered key name. |
| `status` | `string` | Optional | Current key state. Prefer this field and treat active, case-insensitively, as active. Don't guess activation from an unknown status. |
| `isActive` | `boolean` | Optional | For older responses. Read it only when status is absent. |
| `algorithm` | `string` | Required | Visa CLI uses ed25519 today. |
| `publicKey` | `string` | Optional | Base64 SPKI PEM public key. Compare it to the exact bytes you registered. |
| `expirationDate` | `string · date-time` | Optional | Can be a UTC timestamp with no zone; normalize it when you read it. |
| `address` | `string` | Optional | Optional per-key public address. |

<a id="vars-schema-KeysListResponse"></a>

### VARS · KeysListResponse

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `agentId` | `string` | Required | The agent's ID. |
| `agentName` | `string` | Optional | Listed in the contract. |
| `keys` | array of [`KeyResponse`](/docs/reference/schemas.md#vars-schema-KeyResponse) | Required | Page of public key records. |
| `pagination` | [`PaginationMeta`](/docs/reference/schemas.md#vars-schema-PaginationMeta) | Optional | Page details. The linked schema has the fields. |

<a id="vars-schema-PaginationMeta"></a>

### VARS · PaginationMeta

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `hasNext` | `boolean` | Optional | Whether another page follows; Visa CLI reads this to decide whether to continue. |
| `currentPage` | `integer` | Optional | Read by Visa CLI. |
| `totalPages` | `integer` | Optional | Read by Visa CLI. |
| `totalItems` | `integer` | Optional | Visa CLI doesn't need it. |
| `pageSize` | `integer` | Optional | Listed in the contract. |
| `hasPrev` | `boolean` | Optional | Listed in the contract. |

<a id="vars-schema-MessageResponse"></a>

### VARS · MessageResponse

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `message` | `string` | Required | Success message. |

<a id="vars-schema-ErrorResponse"></a>

### VARS · ErrorResponse

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `detail` | `string` | Required | Resource error. Gateway errors can have another shape. |

<a id="vars-schema-ValidationError"></a>

### VARS · ValidationError

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `detail` | `string` | Required | Validation error summary. |
| `errors` | array of `object` | Required | Per-field errors; do not reuse this envelope for VMRS. |

<a id="vmrs-schema-MerchantUpdate"></a>

### VMRS · MerchantUpdate

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `merchantUrl` | `string` | Optional | Base merchant URL *minimum characters: 1 · maximum characters: 512* |
| `merchantName` | `string` | Optional | Doing business as (DBA) name *minimum characters: 1 · maximum characters: 255* |
| `cryptogramType` | `string` | Optional | Authentication method *Values: TAVV, DAVV* |
| `apiIntegrations` | [`ApiIntegrations`](/docs/reference/schemas.md#vmrs-schema-ApiIntegrations) | Optional | The merchant's API integrations. The linked schema has the fields. |
| `webIntegrations` | [`WebIntegrations`](/docs/reference/schemas.md#vmrs-schema-WebIntegrations) | Optional | The merchant's web integrations. The linked schema has the fields. |
| `paymentPayloadType` | `string` | Optional | Credential format *Values: UNENCRYPTED, ENCRYPTED* |
| `protocolInteractions` | array of [`ProtocolInteraction`](/docs/reference/schemas.md#vmrs-schema-ProtocolInteraction) | Optional | List of protocol interaction configurations |
| `acceptanceRelationships` | array of `string` | Optional | List of acceptance network relationships |

<a id="vmrs-schema-KeyResponse"></a>

### VMRS · KeyResponse

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `id` | `string` | Required | Unique key identifier (UUID) |
| `keyName` | `string` | Required | Key name |
| `isActive` | `boolean` | Required | Whether the key is active |
| `algorithm` | `string` | Required | Key wrapping algorithm |
| `createdAt` | `string · date-time` | Required | Creation timestamp |
| `updatedAt` | `string · date-time` | Required | Last update timestamp |
| `merchantId` | `string` | Required | Merchant identifier |
| `merchantName` | `string` | Required | Merchant name |
| `encryptionKey` | `string` | Required | Base64-encoded asymmetric public key |
| `encryptionType` | `string` | Required | Content encryption algorithm |
| `expirationDate` | `string · date-time` | Optional | Key expiration date |

<a id="vmrs-schema-KeyCreate"></a>

### VMRS · KeyCreate

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `keyName` | `string` | Required | Unique identifier for the key *minimum characters: 1 · maximum characters: 255* |
| `algorithm` | `string` | Required | Key wrapping algorithm *Values: RSA-OAEP, RSA-OAEP-256, RSA-OAEP-384, RSA-OAEP-512* |
| `encryptionKey` | `string` | Required | Base64-encoded asymmetric public key (DER, PEM, JWK, or OpenSSH format) |
| `encryptionType` | `string` | Required | Content encryption algorithm *Values: A256GCM, A128GCM, C20P, A256CBC_HS512, A128CBC_HS256, A256CCM, A128CCM* |
| `expirationDate` | `string · date-time` | Optional | Key expiration date (must be in the future) |

<a id="vmrs-schema-CredentialsResponse"></a>

### VMRS · CredentialsResponse

This schema is published but no operation in the public OpenAPI references it. A credentials-delivery path or HTTP method cannot be derived from its name.

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `vmid` | `string` | Optional | Visa Merchant ID |
| `message` | `string` | Optional | Message indicating default response when merchant not found |
| `merchantId` | `string` | Required | Merchant unique identifier |
| `merchantUrl` | `string` | Required | Base merchant URL |
| `merchantName` | `string` | Required | Doing business as (DBA) name |
| `encryptionKey` | [`KeyResponseWithoutMerchant`](/docs/reference/schemas.md#vmrs-schema-KeyResponseWithoutMerchant) | Optional | The merchant's encryption key. The linked schema has the fields. |
| `cryptogramType` | `string` | Optional | Authentication method |
| `paymentPayloadType` | `string` | Optional | Credential format |

<a id="vmrs-schema-MessageResponse"></a>

### VMRS · MessageResponse

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `message` | `string` | Required | Response message |

<a id="vmrs-schema-KeyResponseWithoutMerchant"></a>

### VMRS · KeyResponseWithoutMerchant

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `id` | `string` | Required | Unique key identifier (UUID) |
| `keyName` | `string` | Required | Key name |
| `isActive` | `boolean` | Required | Whether the key is active |
| `algorithm` | `string` | Required | Key wrapping algorithm |
| `createdAt` | `string · date-time` | Required | Creation timestamp |
| `updatedAt` | `string · date-time` | Required | Last update timestamp |
| `encryptionKey` | `string` | Required | Base64-encoded asymmetric public key |
| `encryptionType` | `string` | Required | Content encryption algorithm |
| `expirationDate` | `string · date-time` | Optional | Key expiration date |

<a id="vmrs-schema-ProtocolInteraction"></a>

### VMRS · ProtocolInteraction

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `url` | `string` | Required | Endpoint URL for protocol interaction *minimum characters: 1 · maximum characters: 512* |
| `metadata` | `object` | Optional | Additional protocol configuration (max 10KB) |
| `protocol` | `string` | Required | Communication protocol type *Values: ucp, acp, x402* |
| `documentationUrl` | `string` | Optional | URL to protocol documentation *maximum characters: 512* |

<a id="vmrs-schema-ErrorResponse"></a>

### VMRS · ErrorResponse

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `detail` | `string` | Required | Error description |

<a id="vmrs-schema-ApiIntegrations"></a>

### VMRS · ApiIntegrations

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `url` | `string` | Required | Endpoint URL for API integration *minimum characters: 1 · maximum characters: 512* |
| `metadata` | `object` | Optional | Additional API configuration (max 10KB) |
| `integrationSpec` | `string` | Required | Integration specification URL *minimum characters: 1 · maximum characters: 512* |

<a id="vmrs-schema-KeyUpdate"></a>

### VMRS · KeyUpdate

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `keyName` | `string` | Optional | Unique identifier for the key *minimum characters: 1 · maximum characters: 255* |
| `algorithm` | `string` | Optional | Key wrapping algorithm *Values: RSA-OAEP, RSA-OAEP-256, RSA-OAEP-384, RSA-OAEP-512* |
| `encryptionKey` | `string` | Optional | Base64-encoded asymmetric public key |
| `encryptionType` | `string` | Optional | Content encryption algorithm *Values: A256GCM, A128GCM, C20P, A256CBC_HS512, A128CBC_HS256, A256CCM, A128CCM* |
| `expirationDate` | `string · date-time` | Optional | Key expiration date (must be in the future) |

<a id="vmrs-schema-MerchantCreate"></a>

### VMRS · MerchantCreate

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `vmid` | `string` | Optional | Visa Merchant ID (optional) *minimum characters: 1 · maximum characters: 255* |
| `indicator` | `string` | Required | Transaction processing type *Values: TAP, ACG, BOTH* |
| `merchantUrl` | `string` | Required | Base merchant URL *minimum characters: 1 · maximum characters: 512* |
| `merchantName` | `string` | Required | Doing business as (DBA) name for agent interactions *minimum characters: 1 · maximum characters: 255* |
| `encryptionKey` | [`KeyCreate`](/docs/reference/schemas.md#vmrs-schema-KeyCreate) | Optional | The merchant's encryption key. The linked schema has the fields. |
| `cryptogramType` | `string` | Optional | Authentication method (default: DAVV) *Values: TAVV, DAVV · default: "DAVV"* |
| `apiIntegrations` | [`ApiIntegrations`](/docs/reference/schemas.md#vmrs-schema-ApiIntegrations) | Optional | The merchant's API integrations. The linked schema has the fields. |
| `webIntegrations` | [`WebIntegrations`](/docs/reference/schemas.md#vmrs-schema-WebIntegrations) | Optional | The merchant's web integrations. The linked schema has the fields. |
| `paymentPayloadType` | `string` | Optional | Credential format (default: UNENCRYPTED) *Values: UNENCRYPTED, ENCRYPTED · default: "UNENCRYPTED"* |
| `protocolInteractions` | array of [`ProtocolInteraction`](/docs/reference/schemas.md#vmrs-schema-ProtocolInteraction) | Optional | List of protocol interaction configurations |
| `acceptanceRelationships` | array of `string` | Optional | List of acceptance network relationships |

<a id="vmrs-schema-WebIntegrations"></a>

### VMRS · WebIntegrations

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `url` | `string` | Required | Endpoint URL for web integration *minimum characters: 1 · maximum characters: 512* |
| `metadata` | `object` | Optional | Additional integration configuration (max 10KB) |
| `integrationSpec` | `string` | Required | Integration specification URL *minimum characters: 1 · maximum characters: 512* |

<a id="vmrs-schema-MerchantKeysListResponse"></a>

### VMRS · MerchantKeysListResponse

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `keys` | array of [`KeyResponseWithoutMerchant`](/docs/reference/schemas.md#vmrs-schema-KeyResponseWithoutMerchant) | Required | List of encryption keys |
| `merchantId` | `string` | Required | Merchant identifier |
| `merchantName` | `string` | Required | Merchant name |

<a id="vmrs-schema-ValidationError"></a>

### VMRS · ValidationError

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `detail` | array of `object` | Optional | No description published. |

<a id="vmrs-schema-MerchantResponse"></a>

### VMRS · MerchantResponse

| Field | Type | Presence | Description / constraints |
| --- | --- | --- | --- |
| `id` | `string` | Required | Unique merchant identifier (UUID) |
| `keys` | array of [`KeyResponseWithoutMerchant`](/docs/reference/schemas.md#vmrs-schema-KeyResponseWithoutMerchant) | Optional | List of encryption keys associated with the merchant |
| `vmid` | `string` | Optional | Visa Merchant ID |
| `isActive` | `boolean` | Required | Whether the merchant is active |
| `createdAt` | `string · date-time` | Required | Creation timestamp |
| `indicator` | `string` | Required | Transaction processing type |
| `updatedAt` | `string · date-time` | Required | Last update timestamp |
| `merchantUrl` | `string` | Required | Base merchant URL |
| `merchantName` | `string` | Required | Doing business as (DBA) name |
| `cryptogramType` | `string` | Optional | Authentication method |
| `apiIntegrations` | [`ApiIntegrations`](/docs/reference/schemas.md#vmrs-schema-ApiIntegrations) | Optional | The merchant's API integrations. The linked schema has the fields. |
| `webIntegrations` | [`WebIntegrations`](/docs/reference/schemas.md#vmrs-schema-WebIntegrations) | Optional | The merchant's web integrations. The linked schema has the fields. |
| `merchantMetadata` | `object` | Optional | Additional merchant metadata |
| `paymentPayloadType` | `string` | Optional | Credential format |
| `protocolInteractions` | array of [`ProtocolInteraction`](/docs/reference/schemas.md#vmrs-schema-ProtocolInteraction) | Optional | List of protocol interaction configurations |
| `acceptanceRelationships` | array of `string` | Optional | List of acceptance network relationships |

<a id="implementation-schema-TapSignatureBasePayload"></a>

### Visa CLI · TapSignatureBasePayload

| Field | Type / constraints | Presence |
| --- | --- | --- |
| `kind` | literal tap_signature_base | Required |
| `method` | Uppercase method, 1–16 characters | Required |
| `authority` | 1–255 characters | Required |
| `path` | Absolute path, max 4096 characters, no CR/LF | Required |
| `coveredComponents` | 4–38 names, each 1–128 characters | Required |
| `paymentHeaderName` | payment-signature / x-payment / authorization / none | Required |
| `paymentHeaderValue` | String, max 16384 characters | Required |
| `request_stage` | challenge / request | Optional |
| `scheme` | literal https | Optional |
| `headers` | Normalized merchant application header pairs | Optional |
| `query` | String, max 8192 characters | Optional |
| `contentDigest` | String, max 256 characters | Optional |
| `created, expires` | Integer epoch seconds; profile-specific lifetime enforced | Required |
| `keyId` | 43-character JKT or canonical UUID assigned by the Visa Agent Directory | Required |
| `nonce` | 32 random bytes as canonical base64 | Required |
| `tag` | agent-payer-auth / agent-browser-auth | Required |
| `signatureBase` | Exact RFC 9421 string, 1–65536 characters; the server rebuilds it | Required |

<a id="implementation-schema-Problem"></a>

### Visa CLI · Problem

| Field | Meaning |
| --- | --- |
| `code` | Shared error family; branch on this field. |
| `detail` | Specific refusing check; diagnostic. |
| `stage` | Shared error stage. |
| `message, fix` | Explanation and next-step guidance. |
| `retryable` | Boolean. |
| `request_id` | Correlation identifier. |
| `retry_after_seconds` | Nullable nonnegative integer; Retry-After when applicable. |
| `continuation` | Nullable continuation object on the REST Problem. |
| `turn, next, owner` | Optional agent-envelope fields. |

Public registry routes return the shared `code` shape. Older examples describe an `error` property; branch on `code`.
