Authentication via API key

If you're developing an app designed to interact with your own account, you can create an API key directly that grants access to your account.

Important: API keys are like a password, and should not be given out! Be sure to keep your API keys safe, and revoke them if you no longer wish for them to function.

Using our PHP SDK, you can ensure that your Composer vendor/autoload.php script is included, and then pass in your API key as follows:


$apiKey = 'ASYDV5S8-0BSO1SH2-4BH5PO7U-YF8SV3CZ'; // Pass in an API key from your account
$tc = new \ThriveCart\Api($apiKey);

Congratulations! You can use this API key to access your account!