{
  "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 200 MB 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.0 Notes\n### 03/01/2021\nIt is alive! Achieving the original vision of the three services, 1.0 has been released.\nOur developer-client mission at Enigma Vault is to ensure that your stay with us is a\nlong and healthy one. We anticipate 1.0 will have a very long life and will run in parallel\nwith future versions. Happy coding! \n\n# Authentication\n\n<!-- ReDoc-Inject: <security-definitions> -->",
    "contact": {
      "name": "Enigma Vault Support",
      "url": "https://www.enigmavault.io",
      "email": "support@enigmavault.io"
    },
    "version": "1.0"
  },
  "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. 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 15 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 only 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": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "requestBody": {
          "description": "Card information.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/cardvault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/cardvault/cards/{token}": {
      "get": {
        "tags": [
          "CardVault"
        ],
        "summary": "Get a card.",
        "description": "Provides card attributes except for the card number. 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.",
        "operationId": "GetCard",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "Card token.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 72,
              "type": "string",
              "description": "Card token."
            }
          },
          {
            "name": "ephemeralKey",
            "in": "query",
            "description": "Expiring key for temporary access.",
            "schema": {
              "type": "string",
              "description": "Expiring key for temporary access.",
              "format": "uuid",
              "nullable": true
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/cardvault",
              "io.enigmavault/api"
            ]
          }
        ]
      },
      "delete": {
        "tags": [
          "CardVault"
        ],
        "summary": "Delete a card.",
        "description": "Returns an empty 204 response on success.",
        "operationId": "DeleteCard",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "Card token.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 72,
              "type": "string",
              "description": "Card token."
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/cardvault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/cardvault/cards/ephemeralkeys/{token}": {
      "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": "token",
            "in": "path",
            "description": "Reference to the vaulted card.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 72,
              "type": "string",
              "description": "Reference to the vaulted card."
            }
          },
          {
            "name": "destinationClientId",
            "in": "query",
            "description": "Enigma Vault client granted use of the ephemeralKey.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Enigma Vault client granted use of the ephemeralKey."
            }
          },
          {
            "name": "ttl",
            "in": "query",
            "description": "Time to live in seconds, max of 900 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": 900,
              "minimum": 60,
              "type": "integer",
              "description": "Time to live in seconds, max of 900 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.",
              "format": "int32",
              "nullable": true
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/cardvault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/cardvault/cards/ttl/{token}": {
      "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": "token",
            "in": "path",
            "description": "Card token.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 72,
              "type": "string",
              "description": "Card token."
            }
          },
          {
            "name": "ephemeralKey",
            "in": "query",
            "description": "Expiring key for temporary access.",
            "schema": {
              "type": "string",
              "description": "Expiring key for temporary access.",
              "format": "uuid",
              "nullable": true
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/cardvault",
              "io.enigmavault/api"
            ]
          }
        ]
      },
      "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": "token",
            "in": "path",
            "description": "Card token.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 72,
              "type": "string",
              "description": "Card token."
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "requestBody": {
          "description": "New card ttl value.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardTtlModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/cardvault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/cardvault/proxy/{token}": {
      "post": {
        "tags": [
          "CardVault"
        ],
        "summary": "Send detokenized card data and transaction info to a payment gateway.",
        "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 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": "token",
            "in": "path",
            "description": "Card token.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 72,
              "type": "string",
              "description": "Card token."
            }
          },
          {
            "name": "ephemeralKey",
            "in": "query",
            "description": "Expiring key for temporary access.",
            "schema": {
              "type": "string",
              "description": "Expiring key for temporary access.",
              "format": "uuid",
              "nullable": true
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "requestBody": {
          "description": "Token and gateway information.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardProxyModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayResponseModel"
                }
              }
            }
          },
          "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          },
          "503": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/cardvault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/cardvault/process/forms": {
      "post": {
        "tags": [
          "CardVault"
        ],
        "summary": "Get a url to the card processing UI.",
        "description": "The card processing UI allows your customers to enter their card data and process upstream with the payment gateway without your app touching it. Build out the request meant for the upstream url and then use following placeholders to have the endpoint populate them with card data: ${total}, ${ccn}, ${cvv}, ${fullName}, ${lastName}, ${firstName}, ${cardType}, ${mm}, ${yy}, and ${yyyy}. Supports GET/PUT/POST/DELETE. The customer is redirected back to your app (callback url) via POST with the parameter eVsessionId. You can then use /cardvault/process/sessions/ to determine the adjudication. The session information is available for 72 hours. If the customer chose to save their card, it will be available through the sessions endpoint. If the customer chooses to cancel or if the form timeouts, eVexception will have a value within the POST callback. For cancels, eVexception's value will be 'cancel'. For timeouts, the eVexception's value will be 'timeout'. ",
        "operationId": "GetCardProcessForm",
        "parameters": [
          {
            "name": "callbackUrl",
            "in": "query",
            "description": "URL the user is redirected to after storing the card.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "URL the user is redirected to after storing the card.",
              "format": "uri"
            }
          },
          {
            "name": "showTimer",
            "in": "query",
            "description": "Show or hide the timer.",
            "required": true,
            "schema": {
              "type": "boolean",
              "description": "Show or hide the timer."
            }
          },
          {
            "name": "showCard",
            "in": "query",
            "description": "Show or hide the card visual.",
            "required": true,
            "schema": {
              "type": "boolean",
              "description": "Show or hide the card visual."
            }
          },
          {
            "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": 900,
              "minimum": 60,
              "type": "integer",
              "description": "Form session time to live in seconds. After it expires, the form can no\r\n            longer be used.",
              "format": "int32"
            }
          },
          {
            "name": "pageHeader",
            "in": "query",
            "description": "Configurable page header.",
            "schema": {
              "maxLength": 35,
              "minLength": 3,
              "type": "string",
              "description": "Configurable page header.",
              "nullable": true
            }
          },
          {
            "name": "submitButtonText",
            "in": "query",
            "description": "Text of the submit button.",
            "schema": {
              "maxLength": 20,
              "minLength": 0,
              "type": "string",
              "description": "Text of the submit button.",
              "default": "Save",
              "nullable": true
            }
          },
          {
            "name": "submitButtonColor",
            "in": "query",
            "description": "The hex color of the submit button.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the submit button.",
              "default": "#0078e7",
              "nullable": true
            }
          },
          {
            "name": "cancelButtonColor",
            "in": "query",
            "description": "The hex color of the cancel button.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the cancel button.",
              "default": "#f08080",
              "nullable": true
            }
          },
          {
            "name": "pageColor",
            "in": "query",
            "description": "The hex color of the page background.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the page background.",
              "default": "#ffffff",
              "nullable": true
            }
          },
          {
            "name": "submitButtonTextColor",
            "in": "query",
            "description": "The hex color of the submit button text.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the submit button text.",
              "default": "#ffffff",
              "nullable": true
            }
          },
          {
            "name": "cancelButtonTextColor",
            "in": "query",
            "description": "The hex color of the cancel button text.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the cancel button text.",
              "default": "#000000",
              "nullable": true
            }
          },
          {
            "name": "pageTextColor",
            "in": "query",
            "description": "The hex color of the page text.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the page text.",
              "default": "#000000",
              "nullable": true
            }
          },
          {
            "name": "cartTableBorderColor",
            "in": "query",
            "description": "The hex color of the cart table header and border.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the cart table header and border.",
              "default": "#e0e0e0",
              "nullable": true
            }
          },
          {
            "name": "cartTableAlternateRowColor",
            "in": "query",
            "description": "The hex color of the cart table's alternating rows.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the cart table's alternating rows.",
              "default": "#f2f2f2",
              "nullable": true
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "requestBody": {
          "description": "Gateway and cart information.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CardProcessModel"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/cardvault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/cardvault/process/sessions/{id}": {
      "get": {
        "tags": [
          "CardVault"
        ],
        "summary": "Get card process session information.",
        "description": "Obtain the results from the gateway and retrieve the card token if the customer decided to save it.",
        "operationId": "GetCardProcessSession",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "Session ID",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Session ID",
              "format": "uuid"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CardGatewayCartResponseModel"
                }
              }
            }
          },
          "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/cardvault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/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 (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 15 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'. ",
        "operationId": "GetCardStoreForm",
        "parameters": [
          {
            "name": "callbackUrl",
            "in": "query",
            "description": "URL the user is redirected to after storing the card.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "URL the user is redirected to after storing the card.",
              "format": "uri"
            }
          },
          {
            "name": "showTimer",
            "in": "query",
            "description": "Show or hide the timer.",
            "required": true,
            "schema": {
              "type": "boolean",
              "description": "Show or hide the timer."
            }
          },
          {
            "name": "showCard",
            "in": "query",
            "description": "Show or hide the card visual.",
            "required": true,
            "schema": {
              "type": "boolean",
              "description": "Show or hide the card visual."
            }
          },
          {
            "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 15 minutes,\r\n            set walletSave to false.",
            "required": true,
            "schema": {
              "type": "boolean",
              "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 15 minutes,\r\n            set walletSave to false."
            }
          },
          {
            "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": 900,
              "minimum": 60,
              "type": "integer",
              "description": "Form session time to live in seconds. After it expires, the form can no\r\n            longer be used.",
              "format": "int32"
            }
          },
          {
            "name": "cardTtl",
            "in": "query",
            "description": "The card's time to live in seconds (60-900 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": 900,
              "minimum": 60,
              "type": "integer",
              "description": "The card's time to live in seconds (60-900 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.",
              "format": "int32",
              "nullable": true
            }
          },
          {
            "name": "pageHeader",
            "in": "query",
            "description": "Configurable page header.",
            "schema": {
              "maxLength": 35,
              "minLength": 3,
              "type": "string",
              "description": "Configurable page header.",
              "nullable": true
            }
          },
          {
            "name": "submitButtonText",
            "in": "query",
            "description": "Text of the submit button.",
            "schema": {
              "maxLength": 20,
              "minLength": 0,
              "type": "string",
              "description": "Text of the submit button.",
              "default": "Save",
              "nullable": true
            }
          },
          {
            "name": "submitButtonColor",
            "in": "query",
            "description": "The hex color of the submit button.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the submit button.",
              "default": "#0078e7",
              "nullable": true
            }
          },
          {
            "name": "cancelButtonColor",
            "in": "query",
            "description": "The hex color of the cancel button.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the cancel button.",
              "default": "#f08080",
              "nullable": true
            }
          },
          {
            "name": "pageColor",
            "in": "query",
            "description": "The hex color of the page background.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the page background.",
              "default": "#ffffff",
              "nullable": true
            }
          },
          {
            "name": "submitButtonTextColor",
            "in": "query",
            "description": "The hex color of the submit button text.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the submit button text.",
              "default": "#ffffff",
              "nullable": true
            }
          },
          {
            "name": "cancelButtonTextColor",
            "in": "query",
            "description": "The hex color of the cancel button text.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the cancel button text.",
              "default": "#000000",
              "nullable": true
            }
          },
          {
            "name": "pageTextColor",
            "in": "query",
            "description": "The hex color of the page text.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the page text.",
              "default": "#000000",
              "nullable": true
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/cardvault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/cardvault/store/cvv/forms/{token}": {
      "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 900 seconds (15 minutes). If the card has a ttl of -1, the CVV ttl will be set to 900 seconds. If autoSave is true, the callback will not trigger so the client app will need to verify the cvv ttl for its existence.",
        "operationId": "GetCvvStoreForm",
        "parameters": [
          {
            "name": "token",
            "in": "path",
            "description": "Card token.",
            "required": true,
            "schema": {
              "maxLength": 72,
              "minLength": 72,
              "type": "string",
              "description": "Card token."
            }
          },
          {
            "name": "showTimer",
            "in": "query",
            "description": "Show or hide the timer.",
            "required": true,
            "schema": {
              "type": "boolean",
              "description": "Show or hide the timer."
            }
          },
          {
            "name": "showCancelButton",
            "in": "query",
            "description": "Show or hide the cancel button.",
            "required": true,
            "schema": {
              "type": "boolean",
              "description": "Show or hide the cancel button."
            }
          },
          {
            "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",
              "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."
            }
          },
          {
            "name": "callbackUrl",
            "in": "query",
            "description": "URL the user is redirected to after storing the card.",
            "schema": {
              "type": "string",
              "description": "URL the user is redirected to after storing the card.",
              "format": "uri",
              "nullable": true
            }
          },
          {
            "name": "pageHeader",
            "in": "query",
            "description": "Configurable page header.",
            "schema": {
              "maxLength": 35,
              "minLength": 3,
              "type": "string",
              "description": "Configurable page header.",
              "nullable": true
            }
          },
          {
            "name": "submitButtonText",
            "in": "query",
            "description": "Text of the submit button.",
            "schema": {
              "maxLength": 20,
              "minLength": 0,
              "type": "string",
              "description": "Text of the submit button.",
              "default": "Submit",
              "nullable": true
            }
          },
          {
            "name": "submitButtonColor",
            "in": "query",
            "description": "The hex color of the submit button.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the submit button.",
              "default": "#0078e7",
              "nullable": true
            }
          },
          {
            "name": "cancelButtonColor",
            "in": "query",
            "description": "The hex color of the cancel button.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the cancel button.",
              "default": "#f08080",
              "nullable": true
            }
          },
          {
            "name": "pageColor",
            "in": "query",
            "description": "The hex color of the page background.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the page background.",
              "default": "#ffffff",
              "nullable": true
            }
          },
          {
            "name": "submitButtonTextColor",
            "in": "query",
            "description": "The hex color of the submit button text.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the submit button text.",
              "default": "#ffffff",
              "nullable": true
            }
          },
          {
            "name": "cancelButtonTextColor",
            "in": "query",
            "description": "The hex color of the cancel button text.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the cancel button text.",
              "default": "#000000",
              "nullable": true
            }
          },
          {
            "name": "pageTextColor",
            "in": "query",
            "description": "The hex color of the page text.",
            "schema": {
              "pattern": "^#(?:[0-9a-fA-F]{3}){1,2}$",
              "type": "string",
              "description": "The hex color of the page text.",
              "default": "#000000",
              "nullable": true
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/cardvault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/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",
              "description": "ISO 639-1 (language) and ISO 3166-1 (country) code.",
              "nullable": true
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/cardvault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/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",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "requestBody": {
          "description": "Your secrets to vault.",
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PlaintextCustomerIdentifierModel"
                },
                "description": "Your secrets to vault."
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/datavault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/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",
              "description": "Reference to the vaulted secret."
            }
          },
          {
            "name": "ephemeralKey",
            "in": "query",
            "description": "One time use expiring key.",
            "schema": {
              "type": "string",
              "description": "One time use expiring key.",
              "format": "uuid",
              "nullable": true
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/datavault",
              "io.enigmavault/api"
            ]
          }
        ]
      },
      "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",
              "description": "Reference to the vaulted secret."
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/datavault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/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",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "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": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/datavault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/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",
              "description": "Reference to the vaulted secret."
            }
          },
          {
            "name": "destinationClientId",
            "in": "query",
            "description": "Enigma Vault client granted use of the ephemeralKey.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Enigma Vault client granted use of the ephemeralKey."
            }
          },
          {
            "name": "ttl",
            "in": "query",
            "description": "Time to live in seconds, max of 300.",
            "required": true,
            "schema": {
              "maximum": 300,
              "minimum": 1,
              "type": "integer",
              "description": "Time to live in seconds, max of 300.",
              "format": "int32"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/datavault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/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. In this version there's a limition of 200 MB file size. Please don't upload a larger file.",
        "operationId": "GetUploadUrl",
        "parameters": [
          {
            "name": "contentType",
            "in": "query",
            "description": "The MIME type associated with the file.",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 3,
              "type": "string",
              "description": "The MIME type associated with the file."
            }
          },
          {
            "name": "fileExtension",
            "in": "query",
            "description": "The file extension without the leading .",
            "required": true,
            "schema": {
              "type": "string",
              "description": "The file extension without the leading ."
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/filevault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/filevault/statuses/{fileName}": {
      "get": {
        "tags": [
          "FileVault"
        ],
        "summary": "Get the status of a file.",
        "description": "Returns a 200 with status if the file is found. If not, it will return a 404.",
        "operationId": "GetFileStatus",
        "parameters": [
          {
            "name": "fileName",
            "in": "path",
            "description": "Tokenized file name.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Tokenized file name."
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/filevault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/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.",
        "operationId": "GetDownloadUrl",
        "parameters": [
          {
            "name": "fileName",
            "in": "path",
            "description": "Tokenized file name.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Tokenized file name."
            }
          },
          {
            "name": "ephemeralKey",
            "in": "query",
            "description": "One time use expiring key.",
            "schema": {
              "type": "string",
              "description": "One time use expiring key.",
              "format": "uuid",
              "nullable": true
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DownloadUrlModel"
                }
              }
            }
          },
          "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/filevault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/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": {
              "type": "string",
              "description": "Tokenized file name."
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Success"
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "text/plain; v=1.0": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "application/json; v=1.0": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "text/json; v=1.0": {
                "schema": {
                  "type": "object",
                  "additionalProperties": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "text/plain; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "application/json; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "text/json; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "text/plain; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "application/json; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "text/json; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "text/plain; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "application/json; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "text/json; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "413": {
            "description": "Client Error",
            "content": {
              "text/plain; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "application/json; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "text/json; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "text/plain; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "application/json; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              },
              "text/json; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "text/plain; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              },
              "application/json; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              },
              "text/json; v=1.0": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/filevault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    },
    "/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": {
              "type": "string",
              "description": "Tokenized file name."
            }
          },
          {
            "name": "destinationClientId",
            "in": "query",
            "description": "Enigma Vault client granted use of the ephemeralKey.",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Enigma Vault client granted use of the ephemeralKey."
            }
          },
          {
            "name": "ttl",
            "in": "query",
            "description": "Time to live in seconds, max of 300.",
            "required": true,
            "schema": {
              "maximum": 300,
              "minimum": 1,
              "type": "integer",
              "description": "Time to live in seconds, max of 300.",
              "format": "int32"
            }
          },
          {
            "name": "x-api-version",
            "in": "header",
            "description": "The requested API version",
            "schema": {
              "type": "string",
              "default": "1.0"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "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": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "415": {
            "description": "Client Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientErrorModel"
                }
              }
            }
          },
          "500": {
            "description": "Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerErrorModel"
                }
              }
            }
          }
        },
        "security": [
          {
            "oauth2": [
              "io.enigmavault/filevault",
              "io.enigmavault/api"
            ]
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "CardModel": {
        "required": [
          "cardType",
          "ccn",
          "expMonth",
          "expYear",
          "fullName"
        ],
        "type": "object",
        "properties": {
          "ccn": {
            "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 (visa, mastercard, etc.).",
            "example": "visa"
          },
          "ttl": {
            "maximum": 900,
            "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": 900
          }
        },
        "additionalProperties": false
      },
      "CardTokenModel": {
        "required": [
          "token"
        ],
        "type": "object",
        "properties": {
          "token": {
            "maxLength": 72,
            "minLength": 72,
            "type": "string",
            "description": "Card token.",
            "example": "81524853-1a19-4bd6-9ba4-70f54dce30a2da13543e-6b8e-4fa9-9af5-ef8c1e4aae87"
          }
        },
        "additionalProperties": false
      },
      "ClientErrorModel": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "Client error message.",
            "nullable": true
          }
        },
        "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
      },
      "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"
          },
          "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 (visa, mastercard, etc.).",
            "example": "visa"
          },
          "cvvTtl": {
            "maximum": 900,
            "minimum": 0,
            "type": "integer",
            "description": "Remaining ttl before the CVV gets deleted.",
            "format": "int32",
            "example": 60
          },
          "ttl": {
            "maximum": 900,
            "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
      },
      "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
      },
      "CardTtlReadModel": {
        "required": [
          "cvvTtl",
          "ttl"
        ],
        "type": "object",
        "properties": {
          "cvvTtl": {
            "maximum": 900,
            "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": 900
          },
          "ttl": {
            "maximum": 900,
            "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": 900
          }
        },
        "additionalProperties": false
      },
      "CardTtlModel": {
        "required": [
          "ttl"
        ],
        "type": "object",
        "properties": {
          "ttl": {
            "maximum": 900,
            "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": 900
          }
        },
        "additionalProperties": false
      },
      "HeadersModel": {
        "required": [
          "name",
          "value"
        ],
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the header.",
            "example": "Content-type"
          },
          "value": {
            "type": "string",
            "description": "Value of the header.",
            "example": "application/json"
          }
        },
        "additionalProperties": false
      },
      "CardProxyModel": {
        "required": [
          "httpMethod",
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "URL to use on the payment gateway request.",
            "format": "uri",
            "example": "https://apitest.authorize.net/xml/v1/request.api"
          },
          "httpMethod": {
            "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
      },
      "GatewayResponseModel": {
        "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": {
            "type": "string",
            "description": "Content type from the payment gateway response.",
            "example": "application/json"
          },
          "body": {
            "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
      },
      "GatewayRequestModel": {
        "required": [
          "httpMethod",
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "URL to use on the payment gateway request.",
            "format": "uri",
            "example": "https://apitest.authorize.net/xml/v1/request.api"
          },
          "httpMethod": {
            "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\":\"${total}\",\"payment\":{\"creditCard\":{\"cardNumber\":\"${ccn}\",\"expirationDate\":\"${yyyy}-${mm}\",\"cardCode\":\"${cvv}\"}},\"billTo\":{\"firstName\":\"${firstName}\",\"lastName\":\"${lastName}\",\"company\":\"Souveniropolis\",\"address\":\"14 Main Street\",\"city\":\"Pecan Springs\",\"state\":\"TX\",\"zip\":\"44628\",\"country\":\"USA\"}}}}"
          }
        },
        "additionalProperties": false
      },
      "CartItemModel": {
        "required": [
          "amount",
          "description"
        ],
        "type": "object",
        "properties": {
          "description": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string",
            "description": "Description of the cart item.",
            "example": "Personal pizza small - pepperoni"
          },
          "amount": {
            "pattern": "^\\d+.?\\d{0,2}$",
            "type": "number",
            "description": "Cost of the cart item.",
            "format": "double",
            "example": 5.55
          }
        },
        "additionalProperties": false
      },
      "CartModel": {
        "required": [
          "cartItems",
          "cultureCode",
          "gatewayIntegersOnly",
          "total"
        ],
        "type": "object",
        "properties": {
          "cultureCode": {
            "type": "string",
            "description": "ISO 639-1 (language) and ISO 3166-1 (country) code.",
            "default": "en-US",
            "example": "en-US"
          },
          "cartItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CartItemModel"
            },
            "description": "List of cart items."
          },
          "total": {
            "pattern": "^\\d+.?\\d{0,2}$",
            "type": "number",
            "description": "Total of the cart item amounts. The total is validated against the\r\nsum of the cart item amounts.",
            "format": "double",
            "example": 5.55
          },
          "gatewayIntegersOnly": {
            "type": "boolean",
            "description": "Some payment gateways only accept integers. If true, it will multiply\r\nthe total by 100. For instance, 10.01 will be submitted to the gateway\r\nas 1001.",
            "default": false,
            "example": false
          }
        },
        "additionalProperties": false
      },
      "CardProcessModel": {
        "required": [
          "cart",
          "gatewayRequest"
        ],
        "type": "object",
        "properties": {
          "gatewayRequest": {
            "$ref": "#/components/schemas/GatewayRequestModel"
          },
          "cart": {
            "$ref": "#/components/schemas/CartModel"
          }
        },
        "additionalProperties": false
      },
      "CardFormUrlModel": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "URL to the requested form.",
            "format": "uri"
          }
        },
        "additionalProperties": false
      },
      "CardGatewayCartResponseModel": {
        "type": "object",
        "properties": {
          "gatewayResponse": {
            "$ref": "#/components/schemas/GatewayResponseModel"
          },
          "cart": {
            "$ref": "#/components/schemas/CartModel"
          },
          "token": {
            "type": "string",
            "description": "Card token.",
            "nullable": true,
            "example": "81524853-1a19-4bd6-9ba4-70f54dce30a2da13543e-6b8e-4fa9-9af5-ef8c1e4aae87"
          }
        },
        "additionalProperties": false
      },
      "CultureModel": {
        "required": [
          "cultureCode",
          "cultureName",
          "currencySymbol"
        ],
        "type": "object",
        "properties": {
          "cultureCode": {
            "type": "string",
            "description": "ISO 639-1 (language) and ISO 3166-1 (country) code.",
            "example": "en-US"
          },
          "cultureName": {
            "type": "string",
            "description": "Full name of the language and country.",
            "example": "English (United States)"
          },
          "currencySymbol": {
            "type": "string",
            "description": "Symbol of the currency.",
            "example": "$"
          }
        },
        "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
      },
      "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
      },
      "PlaintextModel": {
        "required": [
          "plaintext"
        ],
        "type": "object",
        "properties": {
          "plaintext": {
            "maxLength": 1000,
            "minLength": 1,
            "type": "string",
            "description": "Secret text.",
            "example": "Super secret info"
          }
        },
        "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"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The URL to PUT the file. The URL expires in 5 minutes.",
            "format": "uri"
          },
          "fileName": {
            "type": "string",
            "description": "Tokenized file name.",
            "example": "b99b4ad0-2c32-4db8-bc03-283f420a3549.pdf"
          }
        },
        "additionalProperties": false
      },
      "FileStatusModel": {
        "required": [
          "fileStatus"
        ],
        "type": "object",
        "properties": {
          "fileStatus": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "DownloadUrlModel": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The URL to GET the decrypted file. The URL expires in 5 minutes.",
            "format": "uri"
          }
        },
        "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/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."
    }
  ]
}