Create an ALTCHA signup challenge
curl --request GET \
--url https://api.sitespy.app/api/v1/auth/altcha-challengeimport requests
url = "https://api.sitespy.app/api/v1/auth/altcha-challenge"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sitespy.app/api/v1/auth/altcha-challenge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"parameters": {
"algorithm": "SHA-256",
"cost": 1,
"keyLength": 32,
"keyPrefix": "0000",
"nonce": "0123456789abcdef0123456789abcdef",
"salt": "fedcba9876543210fedcba9876543210",
"expiresAt": 1778203946
},
"signature": "8b9c..."
}Authentication
Create an ALTCHA signup challenge
Create a signed proof-of-work challenge for the signup form. The solved
payload must be submitted as the altcha field when registering.
GET
/
auth
/
altcha-challenge
Create an ALTCHA signup challenge
curl --request GET \
--url https://api.sitespy.app/api/v1/auth/altcha-challengeimport requests
url = "https://api.sitespy.app/api/v1/auth/altcha-challenge"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.sitespy.app/api/v1/auth/altcha-challenge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"parameters": {
"algorithm": "SHA-256",
"cost": 1,
"keyLength": 32,
"keyPrefix": "0000",
"nonce": "0123456789abcdef0123456789abcdef",
"salt": "fedcba9876543210fedcba9876543210",
"expiresAt": 1778203946
},
"signature": "8b9c..."
}
