Login to existing account
curl --request POST \
--url https://api.sitespy.app/api/v1/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "user@example.com",
"password": "secretpassword123"
}
'import requests
url = "https://api.sitespy.app/api/v1/auth/login"
payload = {
"email": "user@example.com",
"password": "secretpassword123"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: 'user@example.com', password: 'secretpassword123'})
};
fetch('https://api.sitespy.app/api/v1/auth/login', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "Login successful",
"user": {
"email": "user@example.com",
"name": "John Doe",
"api_key": "abc123def456...",
"email_verified": true
}
}{
"error": "Email and password are required"
}{
"error": "Invalid credentials"
}Authentication
Login to existing account
Authenticate with email and password to retrieve your API key. Use this API key for all subsequent authenticated requests.
POST
/
auth
/
login
Login to existing account
curl --request POST \
--url https://api.sitespy.app/api/v1/auth/login \
--header 'Content-Type: application/json' \
--data '
{
"email": "user@example.com",
"password": "secretpassword123"
}
'import requests
url = "https://api.sitespy.app/api/v1/auth/login"
payload = {
"email": "user@example.com",
"password": "secretpassword123"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: 'user@example.com', password: 'secretpassword123'})
};
fetch('https://api.sitespy.app/api/v1/auth/login', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "Login successful",
"user": {
"email": "user@example.com",
"name": "John Doe",
"api_key": "abc123def456...",
"email_verified": true
}
}{
"error": "Email and password are required"
}{
"error": "Invalid credentials"
}
