The security log records every significant account event — who did what, from which IP address, and when. Use it to monitor for unauthorized access and to audit changes to your account.
Open Dashboard → Security Log to view your log.
What gets logged
- Login attempts (successful and failed)
- API key creation and deletion
- Password changes
- Profile updates
- Payment events
Via API
curl "https://modelswitch.io/api/security-log?limit=50" \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
{
"logs": [
{
"id": 1,
"action": "login",
"ipAddress": "1.2.3.4",
"createdAt": "2024-01-15T14:00:00Z",
"details": { "method": "email" }
}
]
}
Response fields
| Field | Description |
|---|
action | Event type — e.g., login, key_created, key_deleted, password_changed |
ipAddress | IP address the request originated from |
createdAt | ISO 8601 timestamp of the event |
details | Additional context that varies by action type |
Use the limit query parameter to control how many entries are returned (maximum 50).
Review your security log regularly. If you see logins from unrecognized IP addresses, change your password immediately and rotate all your API keys.