# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pynt.io/documentation/api-security-testing/pynt-scans-troubleshooting/pynt-for-postman-troubleshooting/troubleshoot-unauthorized-api-key-error.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
