# Troubleshoot Unauthorized API Key Error

{% hint style="danger" %}
**At a Glance**: ❌ Receiving an "Unauthorized API Key" error in Pynt means your API key lacks the necessary permissions. Follow these steps to resolve the issue and ensure your API key is properly authorized for API testing.
{% endhint %}

***

## Error: The API key provided was unauthorized

### What Happened?

The API key you supplied was rejected by **Postman**.

### How to Resolve?

1. **Use a Valid API Key**: Ensure the API key has not expired by checking here.
2. **Check for Whitespace**: Ensure no trailing white spaces (e.g., carriage returns) are left at the end of the key.
3. **Network Restrictions**: This error may occur if your network passes through a **TLS-terminating VPN**, preventing Pynt from reaching Postman.

{% hint style="info" %}
For additional support, visit [Pynt Community Support](https://www.pynt.io/community).
{% endhint %}
