For the sandbox environment, the SMTP and API credentials are maintained separately.
In order to locate your API credentials for Sandbox environment of your Pepipost account, you can follow below steps,
1. Login to your Pepipost account.
2. Go to settings => sandbox
Here you can find the API credentials of the sandbox environment for your Pepipost account under "API" section.