API Reference
Complete reference documentation for the SilentAuth REST API.
Base URL
https://api.silentauth.io/v1
Authentication
All API requests require authentication using your project's secret key in the Authorization header:
Authorization: Bearer sk_live_your_secret_key
Endpoints
POST /verify
Verify a client-side token and get a risk assessment.
POST /v1/verify
Content-Type: application/json
Authorization: Bearer sk_live_xxx
{
"token": "sa_token_xxx",
"action": "login",
"metadata": {
"user_id": "user_123",
"ip": "1.2.3.4"
}
}
Response:
{
"success": true,
"risk_score": 0.12,
"risk_level": "low",
"receipt": "eyJhbGciOiJSUzI1NiIs...",
"public_key_id": "pk_123"
}
POST /verify/receipt
Verify a cryptographic receipt offline (Business+ plans).
GET /projects/:id/stats
Get verification statistics for a project.
POST /intents
Create a verification intent for Execution Gates.
Error Codes
| invalid_token | The provided token is invalid or expired |
| rate_limited | Too many requests, please slow down |
| unauthorized | Invalid or missing API key |
| verification_failed | The verification challenge was not completed |