Get current user info
curl --request GET \
--url https://api.sitespy.app/api/v1/auth/me \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sitespy.app/api/v1/auth/me"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sitespy.app/api/v1/auth/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"user": {
"email": "user@example.com",
"name": "John Doe",
"api_key": "abc123def456...",
"created_at": 1704067200,
"email_verified": true
}
}{
"error": "API key required"
}{
"error": "User not found"
}Authentication
Get current user info
Retrieve information about the currently authenticated user. Requires a valid API key in the x-api-key header.
GET
/
auth
/
me
Get current user info
curl --request GET \
--url https://api.sitespy.app/api/v1/auth/me \
--header 'x-api-key: <api-key>'import requests
url = "https://api.sitespy.app/api/v1/auth/me"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.sitespy.app/api/v1/auth/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"user": {
"email": "user@example.com",
"name": "John Doe",
"api_key": "abc123def456...",
"created_at": 1704067200,
"email_verified": true
}
}{
"error": "API key required"
}{
"error": "User not found"
}
