Generate a new API key
curl --request POST \
--url https://api.sitespy.app/api/v1/generate_keyimport requests
url = "https://api.sitespy.app/api/v1/generate_key"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.sitespy.app/api/v1/generate_key', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"api_key": "abc123def456ghi789jkl012mno345pqr"
}API Key Management
Generate a new API key
Generate a new unique API key for accessing the API. This endpoint does not require authentication. Each API key is associated with a unique user account.
Rate Limiting: This endpoint is rate-limited to prevent abuse. Excessive requests from the same IP address will result in a 429 Too Many Requests response.
POST
/
generate_key
Generate a new API key
curl --request POST \
--url https://api.sitespy.app/api/v1/generate_keyimport requests
url = "https://api.sitespy.app/api/v1/generate_key"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.sitespy.app/api/v1/generate_key', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"api_key": "abc123def456ghi789jkl012mno345pqr"
}Response
API key generated successfully
The newly generated API key

