API Authentication

To use the TFA API you will need an API key, that your application must pass on the header on all requests:

headers = {'TFA-API-KEY': 'XXXXXXXXXXXXXXX'}

If the API key is not present you will receive an error code 401 - Unauthorized:

{
  status: False
  message: 'api_key_not_found'
}

If the API key is invalid or incorrect you will also receive an error code 401 - Unauthorized:

{
  status: False
  message: 'api_key_not_valid'
}

Check the 'Request Access' section for information on how to request and access the TFA API.