BlockTempMail API offers two methods for authentication: Query Parameter authentication and Bearer Token authentication.
With Query Parameter authentication, you can include your API token as a query parameter in your API requests. This method is simple and easy to use, but it may not be the most secure authentication method.
https://api.blocktempmail.com/TEST-EMAIL-HERE?token=API-TOKEN-HERE
Bearer Token authentication, on the other hand, is a more secure method of authentication. With Bearer Token authentication, you pass your API token as a Bearer token in the Authorization header of your API requests. To use Bearer Token authentication, include the Authorization header in your API requests as follows:
Authorization: Bearer YOUR_API_TOKEN
https://api.blocktempmail.com/TEST-EMAIL-HERE
Using the Bearer Token authentication method in BlockTempMail API is recommended due to its higher security level and ease of use. This method involves sending a unique token in the Authorization header of the request, which is generated by BlockTempMail and is tied to a specific user account. By using this method, the user's credentials are not exposed in the URL, which reduces the risk of unauthorized access to their account. Additionally, the Bearer Token can be easily revoked or refreshed if needed, providing an extra layer of security.
If you suspect that your token has been used without your consent, you can easily renew your token from the BlockTempMail interface.
NOTE: Bearer Token authentication is not available on BlockTempMail's free plan.