Skip to main content

How to Use

POST /api/auth

Authorize a IPv4 Address

This endpoint allows you to authorize a IPv4 IP address to secure your script and prevent leaking.

🔐 Headers

NameTypeRequiredDescription
customer_idstringNoYour customer ID to authorize you as a customer.
script_idstringYesYour script ID to authorize the specific script.

✅ Response 200 OK

{
"name": "SUCCESSFUL_AUTHENTIFICATION",
"message": "Authentication was successful. Thanks for using <SCRIPT-NAME>!",
"IPv4": "<IPv4-ADDRESS>",
"links": [
{
"docs": "https://docs.viority.eu/script-lock",
"support": "https://discord.gg/323HfHyGW4"
}
]
}

❌ Response 401 Unauthorized

{
"name": "UNAUTHORIZED_AUTHENTIFICATION",
"message": "<REASON>",
"IPv4": "<IPv4-ADDRESS>",
"links": [
{
"docs": "https://docs.viority.eu/script-lock",
"support": "https://discord.gg/323HfHyGW4"
}
]
}

❌ Response 429 Too Many Requests

You have requested our API too many times in a short time! This is a part or our security system to prevent a DDos attack. First your requests will be slowed down, then you will be completely locked out!

Too many requests, please try again later.