Vault API Key & Permission Management

API keys are created at the vault level and includes ability to Create, Read, Update and Delete API keys & associated permissions. Once API keys have been created, permissions can be managed for each individual key.

Actions

ActionHTTP MethodRouteDescription
Create API KeyPOST/api/api/Vault/{TokenEx ID}/KeyCreate new vault key. Maximum 6 API keys per vault
Get Vault API KeysGET/api/api/Vault/{TokenEx ID}/KeyRetrieve list of active vault API keys and their respective permissions.
Update API KeyPUT/api/api/vault/{TokenEx ID}/key{Key ID}Replace existing API key permissions
Delete API KeyDELETE/api/api/vault/{TokenEx ID}/key{Key ID}Remove API key from list of vault's active keys

Permissions


PermissionAccess PointsDescription
VaultedGeneralAccessAPIv2General permissions required to execute core capabilities of vaulted operations.

Permission Set:

- Tokenize
- ValidateToken
- DeleteToken
- AssociateCvv
- TokenizeWithCvv
- TokenizeFromEncryptedValues
- AssociateEncryptedCvvWithToken
- GetKountHashValueAndTokenize
- GetKountHashValue
VaultlessGeneralAccessAPIv2General permissions required to execute core capabilities of vaultless operations.

Permission Set:

- Tokenize
- ValidateToken
- DeleteToken
- AssociateCvv
- TokenizeWithCvv
- TokenizeFromEncryptedValues
- AssociateEncryptedCvvWithToken
- GetKountHashValueAndTokenize
- GetKountHashValue
AccountUpdaterAPIv2General permissions required to execute core capabilities of Account Updater service.

The Account Updater API is batch API used for getting updated card metadata such as the expiration date or account number (PAN) for a card.
BinLookupAPIv2, iFrame, MobileApiGeneral permissions required to execute core capabilities of Bin Lookup service

TokenEx will use the full PAN that we collect for tokenization to query the BIN lookup database. Support any BIN length and we return all relevant data. This provides maximum effectiveness while keeping our customer's PCI DSS scope to a minimum

Note: When BinLookUp permission is added, it is auto applied to all eligible access points.
NetworkTokenizationAPIv2General permissions required to execute core capabilities of Network Tokenization

The Network Tokenizaton API enables TokenEx to act as an On-Behalf-Of Token Requestor (OBOTR), which enables merchants, acquirers, and payment service providers to integrate with global Token Service Providers (Visa VTS, Mastercard MDES, and American Express AETS)
FraudServicesAPIv2, iFrameGeneral permissions required to execute core capabilities of Kount Fraud Prevention API

The Kount Fraud Prevention API is used to generate a Kount KHASH for a credit card PAN using a TokenEx token or the PAN itself. The KHASH can then be submitted to Kount's fraud prevention platform.
ThreeDSecureGeneralAccessAPIv2, iFrameGeneral permissions required to execute core capabilities of 3-D Secure Authentication.

Prior to sending Authentication requests in Production, a merchant must reach out to their acquirer and/or Payment Service Provider and request enrollment with the card brands they plan to process through 3DS. Request the following information, as these elements will be needed to be provided in 3DS authentication calls:

- Acquirer BINs for Visa, MasterCard, and/or American Express
- Merchant Category Code (MCC)
- Merchant Name assigned by the Acquiring Bank
- Merchant IDTokenEx is able to enroll merchants with MasterCard.
V3iFrameGeneral permissions required to execute core capabilities of iFrame.

The TokenEx iFrame provides maximum flexibility by generating iFrame input elements for only the sensitive data to be tokenized or detokenized within your web form. While the form utilizing the iFrame will reside on your server, the input for the sensitive data will be replaced with an iFrame that captures or displays data within the TokenEx secure environment.
GeneralAccessTGAPIv2General permissions required to execute core capabilities of TGAPI.

Permission Set:

- Tokenize
- Detokenize
- GetHosts
P2PEDecryptTGAPIv2General permissions required to execute core capabilities of P2PE

TokenEx PCI-Validated P2PE is part of our Universal Tokenization product suite, enabling merchants and service providers to unify payment data across in-person and digital channels.
PushTokenizeTGAPIv2General permissions required to execute core capabilities of Proxy Tokenization

Proxy tokenization will receive an inbound, third-party initiated HTTP request and locate the sensitive data (using a proxy profile configuration) to be tokenized. That data will be tokenized, and the request will be sent to the client’s receiving system identified by the URL field in the proxy configuration profile
AllAccessPaymentServicesGeneral permissions required to execute core capabilities of Payment Services.

Payment Services supports the use of TokenEx tokens with many 3rd-Party Payment Gateways through a single, standardized REST API format using JSON. This format reduces the time-to-market when integrating multiple gateways into your payments flow while keeping the customers' payment method PANs out of PCI scope.
MobileGeneralAccessMobileApiMobileGeneralAccess enables ability for customers to access Token Services via Mobile API. This includes ability to:

- Tokenize
- Tokenize with CVV
- Tokenize CVV
Note: This permission is required to allow access to BinLookUp along with BinLookUp permission.

Examples

Create API Key

POST /api/api/vault/{tokenexid}/key 

Headers
Host: test-my.tokenex.com
Authorization: {Your Authorization Value}

Body
{
    "Description": "New API Key",
    "Permissions":
    {
        "APIv2": ["VaultedGeneralAccess"],
        "TGAPIv2": ["GeneralAccess"],
    }
}
HTTP Status: 200 OK

Body
{
  "key": "string",
  "description": "New API Key"
}

Get Vault API Keys

GET /api/api/vault/{tokenexid}/key

Headers
Host: test-my.tokenex.com
Authorization: {Your Authorization Value}

Body
N/A
HTTP Status: 200 OK

Body
[
  {
    "apiKey": "string",
    "description": "New API Key",
    "addUser": "",
    "addDate": "07/02/24 16:02",
    "permissions": {
      "APIv2": [
        "VaultedGeneralAccess",
      ],
      "TGAPIv2": [
        "GeneralAccess",
      ]
    }
  }
]

Update API Key Permission

PUT /api/api/vault/{tokenexid}/key/{keyid}

Headers
Host: test-my.tokenex.com
Authorization: {Your Authorization Value}

Body
{
    "Description": "Updated API Key",  //optional
    "Permissions":
    {
        "APIv2": ["VaultedGeneralAccess"],
        "TGAPIv2": ["GeneralAccess"],
        "iFrame": ["V3"]
    }
}
HTTP Status: 200 OK

Delete API Key

DELETE /api/api/vault/{tokenexid}/key/{keyid}

Headers
Host: test-my.tokenex.com
Authorization: {Your Authorization Value}

Body
N/A
HTTP Status: 200 OK