VGS-API-Client-Python 0.0.10
Vault HTTP API
Keywords: OpenAPI,OpenAPI-Generator,Vault HTTP API

    Storing, retrieving, and managing sensitive data within a VGS organization.  **NOTE:** _The Vault API is intended only for environments that are already PCI-compliant. If you want to use this API, but are not yet PCI-compliant, you can use [VGS Collect](https://www.verygoodsecurity.com/docs/vgs-collect/what-is-it) or VGS Proxy with [Inbound Routes](https://www.verygoodsecurity.com/docs/getting-started/quick-integration#securing-inbound-connection) to quickly and seamlessly achieve compliance._  Looking for the old version of the API? Find it [here](https://www.verygoodsecurity.com/docs/api/1/vault).  # Introduction  Each encrypted value stored in a VGS vault has one or multiple _aliases_ associated with it. These aliases are fully opaque and retain no information about the underlying data. The user may safely store aliases without compromising data security.  **NOTE:** The API works with persistent storage only. Unlike volatile storage, this means that the data is stored permanently, without any implicit TTL.  Aliases are not valuable on their own. However, they can be used to decrypt the associated value and pass it to another service via the [forward proxy](https://www.verygoodsecurity.com/docs/guides/outbound-connection).  ## Alias Formats  Each alias corresponds to a certain format. There are several alias formats suitable for different kinds of sensitive data.  For example, &#x60;UUID&#x60; produces a random Base58-encoded UUID string with an environment-dependent prefix:  &#x60;&#x60;&#x60; tok_sandbox_bhtsCwFUzoJMw9rWUfEV5e &#x60;&#x60;&#x60;  This format is generic and suitable for any kind of data.  The tables below contain descriptions of all alias formats recognized by the API.  ### Generic Formats  | Value                   | Description                                           | |-------------------------|-------------------------------------------------------| | &#x60;NUM_LENGTH_PRESERVING&#x60; | Length-Preserving, Numeric                            | | &#x60;RAW_UUID&#x60;              | UUID                                                  | | &#x60;UUID&#x60;                  | UUID (Prefixed, Base58-Encoded)                       | | &#x60;GENERIC_T_FOUR&#x60;        | UUID (Prefixed, Base58-Encoded, Last four preserving) |  ### Account Number Formats  | Value                             | Description                          | |-----------------------------------|--------------------------------------| | &#x60;FPE_ACC_NUM_T_FOUR&#x60;              | Length-Preserving, Numeric (A4)      | | &#x60;FPE_ALPHANUMERIC_ACC_NUM_T_FOUR&#x60; | Length-Preserving, Alphanumeric (A4) |   ### Payment Card Formats  | Value            | Description                                 | |------------------|---------------------------------------------| | &#x60;FPE_SIX_T_FOUR&#x60; | Format-Preserving, Luhn Valid (6T4)         | | &#x60;FPE_T_FOUR&#x60;     | Format-Preserving, Luhn Valid (T4)          | | &#x60;PFPT&#x60;           | Prefixed, Luhn Valid, 19-Digit Fixed Length |  ### SSN Formats  | Value            | Description            | |------------------|------------------------| | &#x60;FPE_SSN_T_FOUR&#x60; | Format-Preserving (A4) |  # Authentication  This API uses &#x60;Basic&#x60; authentication.  Credentials to access the API can be generated on the [dashboard](https://dashboard.verygoodsecurity.com) by going to the Settings section of the vault of your choosing.  [Docs » Guides » Access credentials](https://www.verygoodsecurity.com/docs/settings/access-credentials)  # Rate Limiting  The API allows up to 3,000 requests per minute. Requests are associated with the vault, regardless of the access credentials used to authenticate the request.  Your current rate limit is included as HTTP headers in every API response:  | Header Name             | Description                                              | |-------------------------|----------------------------------------------------------| | &#x60;x-ratelimit-remaining&#x60; | The number of requests remaining in the 1-minute window. |  If you exceed the rate limit, the API will reject the request with HTTP [429 Too Many Requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429).  # Errors  The API uses standard HTTP status codes to indicate whether the request succeeded or not.  In case of failure, the response body will be JSON in a predefined format. For example, trying to create too many aliases at once results in the following response:  &#x60;&#x60;&#x60;json {     \&quot;errors\&quot;: [         {             \&quot;status\&quot;: 400,             \&quot;title\&quot;: \&quot;Bad request\&quot;,             \&quot;detail\&quot;: \&quot;Too many values (limit: 20)\&quot;,             \&quot;href\&quot;: \&quot;https://api.sandbox.verygoodvault.com/aliases\&quot;         }     ] } &#x60;&#x60;&#x60;   # noqa: E501