Anti-Bypass API
Secure your links and prevent bypassing by dynamically encrypting destination URLs. The Anti-Bypass API generates a secure token that can be appended to your links, ensuring users are redirected to the correct destination only after completing the link steps.
Getting Started: Find your API key in Dashboard › Settings › Profile to start making requests.
Authentication
Your API key is required for all requests. Include it using one of these methods:
Method 1: Bearer Token (POST Requests)
Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEYMethod 2: Query Parameter (GET Requests)
Include your API key as a query parameter:
?api_token=YOUR_API_KEYSecurity: Keep your API key secret. Do not share it publicly or commit it to GitHub.
Encrypt URL Endpoint
Generate an encrypted token for a destination URL.
Endpoint
POST/GET https://admint.club/api/anti-bypassRequest Parameters
| Field | Type | Required | Description |
|---|---|---|---|
url | string | ✓ | The destination URL to encrypt (must be a valid URL) |
api_token | string | ✓ | Your AdMint API token (if not provided in header) |
POST Request Example
curl -X POST https://admint.club/api/anti-bypass \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com"
}'Success Response
{
"type": "created",
"request_time": 142,
"message": {
"token": "a8B2...f9C3",
"usage": "https://admint.club/l/YOUR_LINK?token=a8B2...f9C3"
}
}Error Response
{
"type": "error",
"request_time": 45,
"message": "Missing mandatory field: url"
}GET Request Example
curl "https://admint.club/api/anti-bypass?api_token=YOUR_API_KEY&url=https://example.com"Usage
Once you have the token, append it to any of your AdMint links using the token parameter:
https://admint.club/l/abc123?token=ENCRYPTED_TOKEN
When a user visits this link, they will be redirected to the encrypted destination (e.g., https://example.com) instead of the link’s original destination.
Note: The token is encrypted using your unique API key. It will only work with links belonging to your account.
Code Examples
Node.js (POST)
const axios = require('axios');
const url = 'https://admint.club/api/anti-bypass';
const headers = {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
};
const data = {
url: 'https://example.com'
};
axios.post(url, data, { headers })
.then(response => console.log(response.data))
.catch(error => console.error('Error:', error));Node.js (GET)
const axios = require('axios');
const apiToken = 'YOUR_API_KEY';
const targetUrl = 'https://example.com';
const url = `https://admint.club/api/anti-bypass?api_token=${apiToken}&url=${encodeURIComponent(targetUrl)}`;
axios.get(url)
.then(response => console.log(response.data))
.catch(error => console.error('Error:', error));Python (POST)
import requests
url = "https://admint.club/api/anti-bypass"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
data = {
"url": "https://example.com"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())Python (GET)
import requests
api_token = "YOUR_API_KEY"
target_url = "https://example.com"
url = f"https://admint.club/api/anti-bypass?url={target_url}&api_token={api_token}"
response = requests.get(url)
print(response.json())Rust (POST)
use reqwest::Client;
use serde_json::json;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::new();
let url = "https://admint.club/api/anti-bypass";
let api_key = "YOUR_API_KEY";
let resp = client.post(url)
.bearer_auth(api_key)
.json(&json!({
"url": "https://example.com"
}))
.send()
.await?
.text()
.await?;
println!("{}", resp);
Ok(())
}Rust (GET)
use reqwest::Client;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = Client::new();
let api_key = "YOUR_API_KEY";
let target_url = "https://example.com";
let url = "https://admint.club/api/anti-bypass";
let params = [
("api_token", api_key),
("url", target_url)
];
let resp = client.get(url)
.query(¶ms)
.send()
.await?
.text()
.await?;
println!("{}", resp);
Ok(())
}