Before you can use the SparkPost REST APIs, you will need to have a valid SparkPost API key. Below are the steps you will need to create a SparkPost API key.
Open a browser tab and Log In to your SparkPost Account. Click the Account tab in the left-side navigation.
Enter in an “API Key Name” of your choosing; this name is only used internally for your organization’s purposes. Then under “API Permissions”, you will need to check the three following boxes:
Recipient Lists: Read/Write
Suppression Lists: Read/Write
Leave Allowed IPs blank and click the orange Add API Key button.