hash verify
API Documentation for Hash Verification
This documentation provides details on how to use the Ash-Session API to verify and manage hashes.
Verify a Hash
To verify a hash, use the following curl command:
curl -X GET "https://api.luastro.com/v1/verify/your_hash_here"Expected Response
{
"status": true,
"action": null,
"message": "Hash found"
}Delete a Hash
To verify and delete a hash, use the following curl command:
curl -X GET "https://api.luastro.com/v1/verify/your_hash_here?delete=1"Expected Response
{
"status": true,
"action": "delete",
"message": "Hash been deleted"
}Destination Protector
When the "Destination Protector" is enabled, a checkpoint completion will include a hash in the URL's parameters, e.g., ?hash=dijaiwjdhn321iu. This hash can be verified with the API as described above.
Making GET Requests in Different Languages
Python
import requests
response = requests.get("https://api.luastro.com/v1/verify/your_hash_here")
print(response.json())PHP
<?php
$response = file_get_contents("https://api.luastro.com/v1/verify/your_hash_here");
echo $response;
?>JavaScript (Node.js)
const https = require('https');
https.get("https://api.luastro.com/v1/verify/your_hash_here", (resp) => {
let data = '';
resp.on('data', (chunk) => {
data += chunk;
});
resp.on('end', () => {
console.log(JSON.parse(data));
});
}).on("error", (err) => {
console.log("Error: " + err.message);
});Last updated