{
  "openapi": "3.0.1",
  "info": {
    "title": "Enigma Vault API",
    "description": "## Welcome to Enigma Vault's API Documentation\n\nEnigma Vault encrypts and tokenizes data of all shapes and sizes. Enigma Vault provides the following services:\n\n- **Card Vault**: encrypts and tokenizes card data. One way in and no way out except through our proxy services.\n- **Data Vault**: encrypts and tokenizes data. Encrypted data can be easily searched and retrieved.\n- **File Vault**: encrypts and stores files up to 5 GB in size.\n\nTo get started, sign up in our [developer portal](https://portal.enigmavault.io) and subscribe to one of our products. Once you have credentials, feel free to use the [PostMan app](https://www.postman.com/downloads/)\nor our [Swagger UI](https://api.enigmavault.io/index.html).\n\n## Version 1.6 Notes\n### 08/10/2022\n",
    "contact": {
      "name": "Enigma Vault Support",
      "url": "https://www.enigmavault.io",
      "email": "support@enigmavault.io"
    },
    "version": "1.6"
  },
  "servers": [
    {
      "url": "https://api.enigmavault.io"
    }
  ],
  "paths": {
    "/cardvault/cards": {
      "post": {
        "tags": [
          "CardVault"
        ],
        "summary": "Store a card.",
        "description": "When a card is stored in the vault, the original card information is not retrievable by the client without the cardvault_raw scope (add it to your client ID in the developer portal). The CVV's ttl is set to the same ttl as the card unless the card is stored permanently. If the card is stored permanently, the CVV's ttl is set to 30 minutes. The CVV is purged after its first use or after its ttl expires, whichever comes first. After the card's ttl, the card is deleted. To make the card permanent, leave out the ttl property. The full card number can be used through the proxy endpoint. You can get the first six, the last four, full name, and expiration from /cardvault/cards (GET).",
        "operationId": "StoreCard",
        "parameters": [
          {
            "name": "preserveFormat",
            "in": "query",
            "description": "If true, a Luhn passable token is returned consisting of the original first six and last four.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "requestBody": {
          "description": "Card information.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardTokenModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "get": {
        "tags": [
          "CardVault"
        ],
        "summary": "Get a card.",
        "description": "Provides card data. The first six and the last four are included in the response. The ttl values represent the time remaining in seconds until that item is purged. the original card information is not retrievable by the client without the cardvault_raw scope (add it to your client ID in the developer portal). If you have the proper scope, use the cardvault/raw/cards endpoint.",
        "operationId": "RetrieveCard",
        "parameters": [
          {
            "name": "cardToken",
            "in": "header",
            "description": "Card token.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 13,
              "type": "string"
            }
          },
          {
            "name": "ephemeralKey",
            "in": "query",
            "description": "Expiring key for temporary access.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardReadModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "tags": [
          "CardVault"
        ],
        "summary": "Delete a card.",
        "description": "Returns an empty 204 response on success.",
        "operationId": "DeleteCard",
        "parameters": [
          {
            "name": "cardToken",
            "in": "header",
            "description": "Card token.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 13,
              "type": "string"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmptyResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/cardvault/raw/cards": {
      "get": {
        "tags": [
          "CardVault"
        ],
        "summary": "Get a card. Scope cardvault_raw only.",
        "description": "Special endpoint to retrieve raw card data. It can only be used with the cardvault_raw scope. Add the scope to a client ID in the developer portal; doing so brings the systems that use that client ID into your PCI DSS scope.",
        "operationId": "RetrieveRawCard",
        "parameters": [
          {
            "name": "cardToken",
            "in": "header",
            "description": "Card token.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 13,
              "type": "string"
            }
          },
          {
            "name": "ephemeralKey",
            "in": "query",
            "description": "Expiring key for temporary access.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/cardvault/cards/ephemeralkeys": {
      "get": {
        "tags": [
          "CardVault"
        ],
        "summary": "Get an ephemeral key for a specific card token and client.",
        "description": "The ephemeralKey is an expiring key that allows an external client to use a card token. Reading the card with the key can be repeated until the key expires. A proxy request that the gateway answers with 200 uses the key up. The destinationClientId is a valid Enigma Vault clientId of the destination app. The time to live (ttl) is in seconds.",
        "operationId": "GetCardEphemeralKey",
        "parameters": [
          {
            "name": "cardToken",
            "in": "header",
            "description": "Reference to the vaulted card.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 13,
              "type": "string"
            }
          },
          {
            "name": "destinationClientId",
            "in": "query",
            "description": "Enigma Vault client granted use of the ephemeralKey.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ttl",
            "in": "query",
            "description": "Time to live in seconds, max of 1800 seconds. This is only applicable when\r\n            the card has a ttl of 0 (permanent). Otherwise the ephemeralKey ttl is set to the card ttl.",
            "schema": {
              "maximum": 1800,
              "minimum": 60,
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EphemeralKeyModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/cardvault/cards/ttl": {
      "get": {
        "tags": [
          "CardVault"
        ],
        "summary": "Get the current ttl of a card.",
        "description": "The card's time to live in seconds. Once expired the card is deleted from the vault. If -1, the card lives forever until manually deleted.",
        "operationId": "GetTtl",
        "parameters": [
          {
            "name": "cardToken",
            "in": "header",
            "description": "Card token.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 13,
              "type": "string"
            }
          },
          {
            "name": "ephemeralKey",
            "in": "query",
            "description": "Expiring key for temporary access.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardTtlReadModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "put": {
        "tags": [
          "CardVault"
        ],
        "summary": "Update the card ttl.",
        "description": "Adjusts the time (seconds) until deletion. Additional time cannot be added to the CVV's ttl.",
        "operationId": "UpdateCardTtl",
        "parameters": [
          {
            "name": "cardToken",
            "in": "header",
            "description": "Card token.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 13,
              "type": "string"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "requestBody": {
          "description": "New card ttl value.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardTtlModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmptyResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/cardvault/proxy": {
      "post": {
        "tags": [
          "CardVault"
        ],
        "summary": "Send detokenized card data and transaction info to any gateway / upstream provider.",
        "description": "This endpoint allows you to use a stored card without touching the card data. Build out the request meant for the upstream url and then use the following placeholders to have the endpoint populate them with card data: ${ccn}, ${cvv}, ${fullName}, ${lastName}, ${firstName}, ${cardType}, ${mm}, ${yy}, and ${yyyy}. Supports GET/PUT/POST/DELETE.",
        "operationId": "CardProxy",
        "parameters": [
          {
            "name": "cardToken",
            "in": "header",
            "description": "Card token.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 13,
              "type": "string"
            }
          },
          {
            "name": "ephemeralKey",
            "in": "query",
            "description": "Expiring key for temporary access.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "requestBody": {
          "description": "Token and gateway information.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardProxyModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProxyResponseModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/cardvault/store/forms": {
      "get": {
        "tags": [
          "CardVault"
        ],
        "summary": "Get a url to the card store UI.",
        "description": "The card store form allows your app to store and later use customer card data without touching it. After the cardTtl expires, the card is deleted. If the user decides to save the card, the card is stored permanently. If you're seeking to permanently store the card outside of a transaction (wallet style), set walletSave to true. If you set walletSave to true, the buttonText and cardTtl are overriden. If walletSave is true the CVV isn't requested. If you intend to use the card in a transaction within 30 minutes, set walletSave to false. On callback, your app will receive via POST the card token within the parameter eVtoken. If the customer chooses to cancel or if the form timeouts, the eVexception parameter will contain the reason. For cancels, eVexception's value will be 'cancel'. For timeouts, eVexception's value will be 'timeout'. If embedFormForControl is set to true, pass 'submit' as a message over to the iframe to submit the form. On response, the parent will receive an object that consists of the status, the token, and CardModel object. There are multiple ways to integrate the card store form. You can use it within a popup, redirect, simple iframe, or iframe where the parent page has control to submit the form. You can find example code for the advanced iframe integration on [GitHub](https://github.com/Enigma-Vault/card-vault-integration-examples).",
        "operationId": "GetCardStoreForm",
        "parameters": [
          {
            "name": "showTimer",
            "in": "query",
            "description": "Show or hide the timer.",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "showCard",
            "in": "query",
            "description": "Show or hide the card visual.",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "walletSave",
            "in": "query",
            "description": "Make true to store the card in your app's wallet. This overrides\r\n            the cardTtl and buttonText values. The CVV isn't requested if true.\r\n            If you intend to use the card in a transaction within 30 minutes,\r\n            set walletSave to false.",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "embedFormForControl",
            "in": "query",
            "description": "If true, it removes its buttons and\r\n            any additional padding/spacing, and enables the windows interface for 2-way comms.",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "ttl",
            "in": "query",
            "description": "Form session time to live in seconds. After it expires, the form can no\r\n            longer be used.",
            "required": true,
            "schema": {
              "maximum": 1800,
              "minimum": 60,
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "cardTtl",
            "in": "query",
            "description": "The card's time to live in seconds (60-1800 secs).\r\n            Once expired the card is deleted from the vault. Use the /cardvault/cards/ttl\r\n            endpoint to extend it. This field is required if walletSave is false.",
            "schema": {
              "maximum": 1800,
              "minimum": 60,
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "preserveFormat",
            "in": "query",
            "description": "If true, a Luhn passable token is returned consisting of the original first six and last four.",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "cardTypes",
            "in": "query",
            "description": "Card types, comma delimited. Omit for any card.\r\n            (amex, diners_club_carte_blanche, diners_club_international,\r\n            jcb, laser, visa_electron, visa, mastercard, discover, dankort, maestro, uatp, mir).",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "callbackUrl",
            "in": "query",
            "description": "URL the user is redirected to after storing the card.",
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "parentUrl",
            "in": "query",
            "description": "The parent page URL. The store form uses it when embedFormForControl\r\n            is true to communicate with the parent window.",
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "pageHeader",
            "in": "query",
            "description": "Configurable page header.",
            "schema": {
              "maxLength": 35,
              "minLength": 3,
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "description": "The language to use on the form. Currently en (English), es (Spanish),\r\n            fr (French), and zh-Hans (Chinese simplified) are available.",
            "schema": {
              "pattern": "^en|es|fr|zh-Hans$",
              "type": "string",
              "default": "en"
            }
          },
          {
            "name": "submitButtonText",
            "in": "query",
            "description": "Text of the submit button.",
            "schema": {
              "maxLength": 20,
              "minLength": 0,
              "type": "string",
              "default": "Save"
            }
          },
          {
            "name": "submitButtonColor",
            "in": "query",
            "description": "The hex color of the submit button.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "default": "#0078e7"
            }
          },
          {
            "name": "cancelButtonColor",
            "in": "query",
            "description": "The hex color of the cancel button.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "default": "#f08080"
            }
          },
          {
            "name": "pageColor",
            "in": "query",
            "description": "The hex color of the page background.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "default": "#ffffff"
            }
          },
          {
            "name": "submitButtonTextColor",
            "in": "query",
            "description": "The hex color of the submit button text.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "default": "#ffffff"
            }
          },
          {
            "name": "cancelButtonTextColor",
            "in": "query",
            "description": "The hex color of the cancel button text.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "default": "#000000"
            }
          },
          {
            "name": "pageTextColor",
            "in": "query",
            "description": "The hex color of the page text.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "default": "#000000"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardFormUrlModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/cardvault/store/cvv/forms": {
      "get": {
        "tags": [
          "CardVault"
        ],
        "summary": "Get a url to the CVV store UI.",
        "description": "The CVV store form allows your app to temporarily store the CVV until authorization. The CVV ttl is the shorter of the card's remaining ttl and 1800 seconds (30 minutes). If the card has a ttl of -1, the CVV ttl will be set to 1800 seconds. If autoSave is true, the callback will not trigger so the client app will need to verify the cvv ttl for its existence. There are multiple ways to integrate the cvv form. You can use it within a popup, redirect, simple iframe, (previous 3 can use autosave) or iframe where the parent page has control to submit the form. You can find example code for the advanced iframe integration on [GitHub](https://github.com/Enigma-Vault/card-vault-integration-examples).",
        "operationId": "GetCvvStoreForm",
        "parameters": [
          {
            "name": "cardToken",
            "in": "header",
            "description": "Card token.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 13,
              "type": "string"
            }
          },
          {
            "name": "showTimer",
            "in": "query",
            "description": "Show or hide the timer.",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "showCancelButton",
            "in": "query",
            "description": "Show or hide the cancel button.",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "autoSave",
            "in": "query",
            "description": "If true, the buttons and header are removed, and cvv will be autosaved after user entry.\r\n            The callback will not trigger so the client app will need to verify the cvv ttl for its existence.",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "embedFormForControl",
            "in": "query",
            "description": "If true, it removes its buttons and\r\n            any additional padding/spacing, and enables the windows interface for 2-way comms.",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "callbackUrl",
            "in": "query",
            "description": "URL the user is redirected to after storing the card.",
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "parentUrl",
            "in": "query",
            "description": "The parent page URL. The store form uses it when embedFormForControl\r\n            is true to communicate with the parent window.",
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "pageHeader",
            "in": "query",
            "description": "Configurable page header.",
            "schema": {
              "maxLength": 35,
              "minLength": 3,
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "description": "The language to use on the form. Currently en (English), es (Spanish),\r\n            fr (French), and zh-Hans (Chinese simplified) are available.",
            "schema": {
              "pattern": "^en|es|fr|zh-Hans$",
              "type": "string",
              "default": "en"
            }
          },
          {
            "name": "submitButtonText",
            "in": "query",
            "description": "Text of the submit button.",
            "schema": {
              "maxLength": 20,
              "minLength": 0,
              "type": "string",
              "default": "Submit"
            }
          },
          {
            "name": "submitButtonColor",
            "in": "query",
            "description": "The hex color of the submit button.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "default": "#0078e7"
            }
          },
          {
            "name": "cancelButtonColor",
            "in": "query",
            "description": "The hex color of the cancel button.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "default": "#f08080"
            }
          },
          {
            "name": "pageColor",
            "in": "query",
            "description": "The hex color of the page background.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "default": "#ffffff"
            }
          },
          {
            "name": "submitButtonTextColor",
            "in": "query",
            "description": "The hex color of the submit button text.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "default": "#ffffff"
            }
          },
          {
            "name": "cancelButtonTextColor",
            "in": "query",
            "description": "The hex color of the cancel button text.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "default": "#000000"
            }
          },
          {
            "name": "pageTextColor",
            "in": "query",
            "description": "The hex color of the page text.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "default": "#000000"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardFormUrlModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/cardvault/references/cultures": {
      "get": {
        "tags": [
          "CardVault"
        ],
        "summary": "Get a listing of all supported cultures and currencies.",
        "description": "",
        "operationId": "GetCultures",
        "parameters": [
          {
            "name": "cultureCode",
            "in": "query",
            "description": "ISO 639-1 (language) and ISO 3166-1 (country) code.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/CultureModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/datavault/secrets": {
      "post": {
        "tags": [
          "DataVault"
        ],
        "summary": "Store a secret.",
        "description": "Supports up to 5,000 plaintext objects per request. Plaintext strings must be less than 1000 characters in length. The customIdentifier attribute ties your unencrypted data to the tokens. The customIdentifier is not stored within the vault.",
        "operationId": "StoreDataSecrets",
        "parameters": [
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "requestBody": {
          "description": "Your secrets to vault.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PlaintextCustomerIdentifierModel"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TokenCustomIdentifierModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/datavault/secrets/{token}": {
      "get": {
        "tags": [
          "DataVault"
        ],
        "summary": "Get a secret by token.",
        "description": "The ephemeralKey is a one time use expiring key that allows an external client to obtain the token's secret. To generate one, use the datavault/secrets/ephemeralKey endpoint.",
        "operationId": "GetDataSecret",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "Reference to the vaulted secret.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 72,
              "type": "string"
            }
          },
          {
            "name": "ephemeralKey",
            "in": "query",
            "description": "One time use expiring key.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlaintextModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      },
      "delete": {
        "tags": [
          "DataVault"
        ],
        "summary": "Delete a secret.",
        "description": "",
        "operationId": "DeleteDataSecret",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "Reference to the vaulted secret.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 72,
              "type": "string"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmptyResult"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/datavault/search": {
      "post": {
        "tags": [
          "DataVault"
        ],
        "summary": "Search by plaintext.",
        "description": "Exact matches will only be returned and is case sensitive.",
        "operationId": "SearchDataSecrets",
        "parameters": [
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "requestBody": {
          "description": "Text to search within the vault. Exact matches will only be returned and is case sensitive.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PlaintextModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TokenModel"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/datavault/ephemeralkeys/{token}": {
      "get": {
        "tags": [
          "DataVault"
        ],
        "summary": "Get an ephemeral key for a specific token and client.",
        "description": "The ephemeralKey is a one time use expiring key that allows an external client to obtain the token's secret. The destinationClientId is a valid Enigma Vault clientId of the destination app. The time to live (ttl) is in seconds.",
        "operationId": "GetDataEphemeralKey",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "Reference to the vaulted secret.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 72,
              "type": "string"
            }
          },
          {
            "name": "destinationClientId",
            "in": "query",
            "description": "Enigma Vault client granted use of the ephemeralKey.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ttl",
            "in": "query",
            "description": "Time to live in seconds, max of 300.",
            "required": true,
            "schema": {
              "maximum": 300,
              "minimum": 1,
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EphemeralKeyModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/filevault/uploadurls": {
      "get": {
        "tags": [
          "FileVault"
        ],
        "summary": "Get a url to upload a file.",
        "description": "The url is used to upload (PUT) a file into the vault. The url has an exipration of five minutes. The file size cannot exceed 5 gigabytes. A websocket url is provided so that the status of the file can be tracked in realtime.",
        "operationId": "GetUploadUrl",
        "parameters": [
          {
            "name": "contentType",
            "in": "query",
            "description": "The MIME type associated with the file.",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 3,
              "type": "string"
            }
          },
          {
            "name": "fileExtension",
            "in": "query",
            "description": "The file extension without the leading .",
            "required": true,
            "schema": {
              "pattern": "^[0-9a-zA-Z]{1,10}$",
              "type": "string"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadUrlModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/filevault/statuses/{fileName}": {
      "get": {
        "tags": [
          "FileVault"
        ],
        "summary": "Get the status of a file.",
        "description": "This endpoint has been deprecated because the file status is now provided through a websocket API.",
        "operationId": "GetFileStatus",
        "parameters": [
          {
            "name": "fileName",
            "in": "path",
            "description": "Tokenized file name.",
            "required": true,
            "schema": {
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\.[0-9a-zA-Z]{1,10}$",
              "type": "string"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileStatusModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "deprecated": true,
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/filevault/downloadurls/{fileName}": {
      "get": {
        "tags": [
          "FileVault"
        ],
        "summary": "Get a url to decrypt and download the file.",
        "description": "The url is used to download the file out of the vault. The url has an exipration of five minutes. When aSync is set to true for large files, a websocket API url is returned so that the file status can be monitored in real time. When the file is finished decrypting, the download url is provided through the websocket connection.",
        "operationId": "GetDownloadUrl",
        "parameters": [
          {
            "name": "fileName",
            "in": "path",
            "description": "Tokenized file name.",
            "required": true,
            "schema": {
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\.[0-9a-zA-Z]{1,10}$",
              "type": "string"
            }
          },
          {
            "name": "aSync",
            "in": "query",
            "description": "Set to true to decrypt large files; you'll use the websocket API for notifications.",
            "required": true,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "ephemeralKey",
            "in": "query",
            "description": "One time use expiring key.",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DownloadUrlModel"
                }
              }
            }
          },
          "202": {
            "description": "Accepted",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WsUrlModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/filevault/files/{fileName}": {
      "delete": {
        "tags": [
          "FileVault"
        ],
        "summary": "Delete a file.",
        "description": "On successful deletion, a 204 response is returned.",
        "operationId": "DeleteFile",
        "parameters": [
          {
            "name": "fileName",
            "in": "path",
            "description": "Tokenized file name.",
            "required": true,
            "schema": {
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\.[0-9a-zA-Z]{1,10}$",
              "type": "string"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "No Content"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain; v=1.6": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/json; v=1.6": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "text/json; v=1.6": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "application/json; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "text/json; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "application/json; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "text/json; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "application/json; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "text/json; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "text/plain; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "application/json; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "text/json; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "text/plain; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "application/json; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "text/json; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "text/plain; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              },
              "application/json; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              },
              "text/json; v=1.6": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    },
    "/filevault/ephemeralkeys/{fileName}": {
      "get": {
        "tags": [
          "FileVault"
        ],
        "summary": "Get an ephemeral key for a specific fileName and client.",
        "description": "The ephemeralKey is a one time use expiring key that allows an external client to obtain a download url. The destinationClientId is a valid Enigma Vault clientId of the destination app. The time to live (ttl) is in seconds.",
        "operationId": "GetFileEphemeralKey",
        "parameters": [
          {
            "name": "fileName",
            "in": "path",
            "description": "Tokenized file name.",
            "required": true,
            "schema": {
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\\.[0-9a-zA-Z]{1,10}$",
              "type": "string"
            }
          },
          {
            "name": "destinationClientId",
            "in": "query",
            "description": "Enigma Vault client granted use of the ephemeralKey.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ttl",
            "in": "query",
            "description": "Time to live in seconds, max of 300.",
            "required": true,
            "schema": {
              "maximum": 300,
              "minimum": 1,
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "required": true,
            "schema": {
              "type": "string",
              "default": "1.6"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EphemeralKeyModel"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Content Too Large",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "CardFormUrlModel": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "minLength": 1,
            "type": "string",
            "description": "URL to the requested form.",
            "format": "uri"
          }
        },
        "additionalProperties": false
      },
      "CardModel": {
        "required": [
          "cardType",
          "ccn",
          "cvvTtl",
          "expMonth",
          "expYear",
          "fullName"
        ],
        "type": "object",
        "properties": {
          "ccn": {
            "minLength": 1,
            "pattern": "^\\d+$",
            "type": "string",
            "description": "Card number.",
            "format": "credit-card",
            "example": "4111111111111111"
          },
          "fullName": {
            "maxLength": 30,
            "minLength": 2,
            "type": "string",
            "description": "Full name located on the card.",
            "example": "Edward E Nigma"
          },
          "expMonth": {
            "maximum": 12,
            "minimum": 1,
            "type": "integer",
            "description": "Expiration month.",
            "format": "int32",
            "example": 12
          },
          "expYear": {
            "pattern": "^\\d{4}$",
            "type": "integer",
            "description": "Expiration year.",
            "format": "int32",
            "example": 9999
          },
          "cvv": {
            "pattern": "^\\d{3}$|^\\d{4}$",
            "type": "string",
            "description": "Card verification value (security code). This value is not stored permanently.",
            "nullable": true,
            "example": "123"
          },
          "cardType": {
            "maxLength": 30,
            "minLength": 1,
            "type": "string",
            "description": "Type of card (amex, diners_club_carte_blanche, diners_club_international,\r\njcb, laser, visa_electron, visa, mastercard, discover, dankort, maestro, uatp, mir).",
            "example": "visa"
          },
          "cvvTtl": {
            "maximum": 1800,
            "minimum": 0,
            "type": "integer",
            "description": "Remaining ttl before the CVV gets deleted.",
            "format": "int32",
            "example": 60
          },
          "ttl": {
            "maximum": 1800,
            "minimum": 60,
            "type": "integer",
            "description": "The card's time to live in seconds. Once expired the\r\ncard is deleted from the vault.",
            "format": "int32",
            "nullable": true,
            "example": 1800
          }
        },
        "additionalProperties": false
      },
      "CardProxyModel": {
        "required": [
          "httpMethod",
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "minLength": 1,
            "type": "string",
            "description": "URL to use on the payment gateway request.",
            "format": "uri",
            "example": "https://apitest.authorize.net/xml/v1/request.api"
          },
          "httpMethod": {
            "minLength": 1,
            "pattern": "^GET$|^PUT$|^POST$|^DELETE$/i",
            "type": "string",
            "description": "HTTP method to use on the payment gateway request.",
            "example": "POST"
          },
          "headers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HeadersModel"
            },
            "description": "Headers to use on the payment gateway request.",
            "nullable": true
          },
          "body": {
            "type": "string",
            "description": "Body to use on the payment gateway request.",
            "nullable": true,
            "example": "{\"createTransactionRequest\":{\"merchantAuthentication\":{\"name\":\"XXXXXXXXX\",\"transactionKey\":\"XXXXXXXXXXX\"},\"refId\":\"123456\",\"transactionRequest\":{\"transactionType\":\"authOnlyTransaction\",\"amount\":\"5.50\",\"payment\":{\"creditCard\":{\"cardNumber\":\"${ccn}\",\"expirationDate\":\"${yyyy}-${mm}\",\"cardCode\":\"999\"}},\"billTo\":{\"firstName\":\"${firstName}\",\"lastName\":\"${lastName}\",\"company\":\"Souveniropolis\",\"address\":\"14 Main Street\",\"city\":\"Pecan Springs\",\"state\":\"TX\",\"zip\":\"44628\",\"country\":\"USA\"}}}}"
          }
        },
        "additionalProperties": false
      },
      "CardReadModel": {
        "required": [
          "cardType",
          "cvvTtl",
          "expMonth",
          "expYear",
          "firstSix",
          "fullName",
          "lastFour",
          "ttl"
        ],
        "type": "object",
        "properties": {
          "firstSix": {
            "maxLength": 6,
            "minLength": 6,
            "type": "string",
            "description": "First six digits of the card number.",
            "example": "411111"
          },
          "lastFour": {
            "maxLength": 4,
            "minLength": 4,
            "type": "string",
            "description": "Last four digits of the card number.",
            "example": "1111"
          },
          "ccn": {
            "pattern": "^\\d+$",
            "type": "string",
            "description": "Card number.",
            "format": "credit-card",
            "nullable": true,
            "example": "4111111111111111"
          },
          "expMonth": {
            "maximum": 12,
            "minimum": 1,
            "type": "integer",
            "description": "Expiration month.",
            "format": "int32",
            "example": 12
          },
          "expYear": {
            "pattern": "^\\d{4}$",
            "type": "integer",
            "description": "Expiration year.",
            "format": "int32",
            "example": 9999
          },
          "fullName": {
            "maxLength": 30,
            "minLength": 2,
            "type": "string",
            "description": "Full name located on the card.",
            "example": "Edward E Nigma"
          },
          "cardType": {
            "maxLength": 30,
            "minLength": 1,
            "type": "string",
            "description": "Type of card (amex, diners_club_carte_blanche, diners_club_international,\r\njcb, laser, visa_electron, visa, mastercard, discover, dankort, maestro, uatp, mir).",
            "example": "visa"
          },
          "cvvTtl": {
            "maximum": 1800,
            "minimum": 0,
            "type": "integer",
            "description": "Remaining ttl before the CVV gets deleted.",
            "format": "int32",
            "example": 60
          },
          "ttl": {
            "maximum": 1800,
            "minimum": 0,
            "type": "integer",
            "description": "Remaining ttl before the card gets deleted. If -1, card lives forever until manually deleted.",
            "format": "int32",
            "example": 60
          }
        },
        "additionalProperties": false
      },
      "CardTokenModel": {
        "required": [
          "token"
        ],
        "type": "object",
        "properties": {
          "token": {
            "maxLength": 72,
            "minLength": 13,
            "type": "string",
            "description": "Card token.",
            "example": "81524853-1a19-4bd6-9ba4-70f54dce30a2da13543e-6b8e-4fa9-9af5-ef8c1e4aae87"
          }
        },
        "additionalProperties": false
      },
      "CardTtlModel": {
        "required": [
          "ttl"
        ],
        "type": "object",
        "properties": {
          "ttl": {
            "maximum": 1800,
            "minimum": 60,
            "type": "integer",
            "description": "The card's new time to live in seconds. Once expired the\r\ncard is deleted from the vault. This endpoint cannot make a\r\ncard permanent.",
            "format": "int32",
            "example": 1800
          }
        },
        "additionalProperties": false
      },
      "CardTtlReadModel": {
        "required": [
          "cvvTtl",
          "ttl"
        ],
        "type": "object",
        "properties": {
          "cvvTtl": {
            "maximum": 1800,
            "minimum": 60,
            "type": "integer",
            "description": "The card's CVV time to live in seconds. Once expired the\r\nCVV is deleted from the vault.",
            "format": "int32",
            "example": 1800
          },
          "ttl": {
            "maximum": 1800,
            "minimum": 60,
            "type": "integer",
            "description": "The card's time to live in seconds. Once expired the\r\ncard is deleted from the vault. If -1, card lives forever until\r\nmanually deleted.",
            "format": "int32",
            "example": 1800
          }
        },
        "additionalProperties": false
      },
      "ClientErrorModel": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "Client error message.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "CultureModel": {
        "required": [
          "cultureCode",
          "cultureName",
          "currencySymbol"
        ],
        "type": "object",
        "properties": {
          "cultureCode": {
            "minLength": 1,
            "type": "string",
            "description": "ISO 639-1 (language) and ISO 3166-1 (country) code.",
            "example": "en-US"
          },
          "cultureName": {
            "minLength": 1,
            "type": "string",
            "description": "Full name of the language and country.",
            "example": "English (United States)"
          },
          "currencySymbol": {
            "minLength": 1,
            "type": "string",
            "description": "Symbol of the currency.",
            "example": "$"
          }
        },
        "additionalProperties": false
      },
      "DownloadUrlModel": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "minLength": 1,
            "type": "string",
            "description": "The URL to GET the decrypted file. The URL expires in 5 minutes.",
            "format": "uri"
          }
        },
        "additionalProperties": false
      },
      "EmptyResult": {
        "type": "object",
        "additionalProperties": false
      },
      "EphemeralKeyModel": {
        "type": "object",
        "properties": {
          "ephemeralKey": {
            "type": "string",
            "description": "Expiring key for the destination client. The endpoint that issued it says when it is used up.",
            "format": "uuid",
            "example": "b99b4ad0-2c32-4db8-bc03-283f420a3549"
          }
        },
        "additionalProperties": false
      },
      "FileStatusModel": {
        "required": [
          "fileStatus"
        ],
        "type": "object",
        "properties": {
          "fileStatus": {
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "HeadersModel": {
        "required": [
          "name",
          "value"
        ],
        "type": "object",
        "properties": {
          "name": {
            "minLength": 1,
            "type": "string",
            "description": "Name of the header.",
            "example": "Content-type"
          },
          "value": {
            "minLength": 1,
            "type": "string",
            "description": "Value of the header.",
            "example": "application/json"
          }
        },
        "additionalProperties": false
      },
      "PlaintextCustomerIdentifierModel": {
        "required": [
          "plaintext"
        ],
        "type": "object",
        "properties": {
          "plaintext": {
            "maxLength": 1000,
            "minLength": 1,
            "type": "string",
            "description": "Secret text to vault.",
            "example": "Super secret info"
          },
          "customIdentifier": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Client provided identifier tying the tokens back to some other client data.",
            "nullable": true,
            "example": "123"
          }
        },
        "additionalProperties": false
      },
      "PlaintextModel": {
        "required": [
          "plaintext"
        ],
        "type": "object",
        "properties": {
          "plaintext": {
            "maxLength": 1000,
            "minLength": 1,
            "type": "string",
            "description": "Secret text.",
            "example": "Super secret info"
          }
        },
        "additionalProperties": false
      },
      "ProxyResponseModel": {
        "required": [
          "body",
          "contentType",
          "statusCode"
        ],
        "type": "object",
        "properties": {
          "headers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HeadersModel"
            },
            "description": "Headers from the payment gateway response.",
            "nullable": true
          },
          "statusCode": {
            "type": "integer",
            "description": "HTTP status code from the payment gateway response.",
            "format": "int32",
            "example": 200
          },
          "contentType": {
            "minLength": 1,
            "type": "string",
            "description": "Content type from the payment gateway response.",
            "example": "application/json"
          },
          "body": {
            "minLength": 1,
            "type": "string",
            "description": "Body from the payment gateway response.",
            "example": "{\"transactionResponse\":{\"responseCode\":\"1\",\"authCode\":\"AKXD8T\",\"avsResultCode\":\"Y\",\"cvvResultCode\":\"P\",\"cavvResultCode\":\"2\",\"transId\":\"60159519275\",\"refTransID\":\"\",\"transHash\":\"\",\"testRequest\":\"0\",\"accountNumber\":\"XXXX1111\",\"accountType\":\"Visa\",\"messages\":[{\"code\":\"1\",\"description\":\"This transaction has been approved.\"}],\"transHashSha2\":\"\",\"SupplementalDataQualificationIndicator\":0,\"networkTransId\":\"0V3X5LPO079GCBFQM2B348D\"},\"refId\":\"123456\",\"messages\":{\"resultCode\":\"Ok\",\"message\":[{\"code\":\"I00001\",\"text\":\"Successful.\"}]}}"
          }
        },
        "additionalProperties": false
      },
      "ServerErrorModel": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "description": "A reference to the type of error\r\nreturned.",
            "nullable": true
          },
          "title": {
            "type": "string",
            "description": "Title/summary of the error.",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "description": "HTTP status code.",
            "format": "int32"
          },
          "detail": {
            "type": "string",
            "description": "Detailed error message.",
            "nullable": true
          },
          "traceId": {
            "type": "string",
            "description": "Identifies the request associated\r\nwith the error.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TokenCustomIdentifierModel": {
        "required": [
          "token"
        ],
        "type": "object",
        "properties": {
          "token": {
            "maxLength": 72,
            "minLength": 72,
            "type": "string",
            "description": "Reference to the vaulted secret.",
            "example": "81524853-1a19-4bd6-9ba4-70f54dce30a2da13543e-6b8e-4fa9-9af5-ef8c1e4aae87"
          },
          "customIdentifier": {
            "maxLength": 100,
            "minLength": 0,
            "type": "string",
            "description": "Client provided identifier tying the tokens back to some other client data.",
            "nullable": true,
            "example": "123"
          }
        },
        "additionalProperties": false
      },
      "TokenModel": {
        "required": [
          "token"
        ],
        "type": "object",
        "properties": {
          "token": {
            "maxLength": 72,
            "minLength": 72,
            "type": "string",
            "description": "Reference to the vaulted secret.",
            "example": "81524853-1a19-4bd6-9ba4-70f54dce30a2da13543e-6b8e-4fa9-9af5-ef8c1e4aae87"
          }
        },
        "additionalProperties": false
      },
      "UploadUrlModel": {
        "required": [
          "fileName",
          "url",
          "wsUrl"
        ],
        "type": "object",
        "properties": {
          "url": {
            "minLength": 1,
            "type": "string",
            "description": "The URL to PUT the file. The URL expires in 5 minutes.",
            "format": "uri"
          },
          "fileName": {
            "minLength": 1,
            "type": "string",
            "description": "Tokenized file name.",
            "example": "b99b4ad0-2c32-4db8-bc03-283f420a3549.pdf"
          },
          "wsUrl": {
            "minLength": 1,
            "type": "string",
            "description": "WebSocket URL to receive messages on the status of the file.\r\nIt returns the following jSON response {\"status\":\"string\",\"detailedMessage\":\"string\",\"url\":\"string\"}\r\nThe status can be one of the following: Waiting on upload, Encrypting, Vaulted, Decrypting, Decrypted, Error.\r\nThe url property will contain a download url when the status is Decrypted. The download url is valid for 5 minutes.",
            "format": "uri",
            "example": "wss://filestatus-api.enigmavault.io?fileName=b99b4ad0-2c32-4db8-bc03-283f420a3549.pdf&sessionId=abcdefg"
          }
        },
        "additionalProperties": false
      },
      "WsUrlModel": {
        "type": "object",
        "properties": {
          "wsUrl": {
            "type": "string",
            "description": "WebSocket URL to receive messages on the status of the file.\r\nIt returns the following jSON response {\"status\":\"string\",\"detailedMessage\":\"string\",\"url\":\"string\"}\r\nThe status can be one of the following: Waiting on upload, Encrypting, Vaulted, Decrypting, Decrypted, Error.\r\nThe url property will contain a download url when the status is Decrypted. The download url is valid for 5 minutes.",
            "nullable": true,
            "example": "wss://filestatus-api.enigmavault.io?fileName=b99b4ad0-2c32-4db8-bc03-283f420a3549.pdf&sessionId=abcdefg"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "oauth2": {
        "type": "oauth2",
        "flows": {
          "clientCredentials": {
            "tokenUrl": "https://api-auth.enigmavault.io/oauth2/token",
            "scopes": {
              "io.enigmavault/api": "All access",
              "io.enigmavault/cardvault": "Card Vault access",
              "io.enigmavault/cardvault_raw": "Card Vault access w/ raw data",
              "io.enigmavault/datavault": "Data Vault access",
              "io.enigmavault/filevault": "File Vault access"
            }
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "CardVault",
      "description": "Store, tokenize, and process card data without touching it."
    },
    {
      "name": "DataVault",
      "description": "Store and tokenize plaintext data."
    },
    {
      "name": "FileVault",
      "description": "Store and tokenize files of all types and sizes."
    }
  ]
}