Proxy API Authentication
The HypeProxy.io API uses JWT (JSON Web Token) authentication. This guide covers how to get your token and use it in API requests.
Getting Your API Token
Your API token is available in your HypeProxy.io dashboard:
- Log into app.hypeproxy.io.
- Navigate to your profile page.
- Copy your API token.
This token authenticates all your API requests. Keep it secure and don't share it publicly.
Using the Token
Include the token in the Authorization header with the Bearer prefix:
Authorization: Bearer YOUR_API_TOKEN
Examples
cURL
curl https://api.hypeproxy.io/Utils/GetInformations \
-H 'Authorization: Bearer YOUR_API_TOKEN'
Python
import requests
headers = {
'Authorization': 'Bearer YOUR_API_TOKEN'
}
response = requests.get(
'https://api.hypeproxy.io/Utils/GetInformations',
headers=headers
)
print(response.json())
JavaScript (Node.js)
const response = await fetch('https://api.hypeproxy.io/Utils/GetInformations', {
headers: {
'Authorization': 'Bearer YOUR_API_TOKEN'
}
});
const data = await response.json();
console.log(data);
C#
using var client = new HttpClient();
client.DefaultRequestHeaders.Authorization =
new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", "YOUR_API_TOKEN");
var response = await client.GetAsync("https://api.hypeproxy.io/Utils/GetInformations");
var data = await response.Content.ReadAsStringAsync();
Console.WriteLine(data);
PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.hypeproxy.io/Utils/GetInformations');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Authorization: Bearer YOUR_API_TOKEN'
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Error Handling
| Status Code | Meaning | Solution |
|---|---|---|
| 200 | Success | Request was authenticated and processed |
| 401 | Unauthorized | Token is missing, invalid, or expired |
| 403 | Forbidden | Token doesn't have permission for this action |
If you receive a 401 error:
- Verify your token is correctly copied (no extra spaces or missing characters).
- Make sure the
Bearerprefix is included. - Check that the
Authorizationheader is spelled correctly.
Security Best Practices
- Don't hardcode tokens in source code. Use environment variables:
export HYPEPROXY_API_TOKEN=your_token_here - Don't commit tokens to version control. Add
.envfiles to.gitignore. - Rotate your token if you suspect it has been compromised.
- Use HTTPS only — never send your token over unencrypted HTTP.