API Reference
Base URL: http://trustics.loginics.com/api/v1
OpenAPI documentation (Scramble)
Authentication
Tenant + API key (default)
X-Tenant-Id: your-tenant-id X-Api-Key: ts_your_api_key
Sanctum (user sessions / SPA)
POST /api/v1/auth/login
Authorization: Bearer {sanctum_token}
OAuth2 (API-only mode)
POST /oauth/token
grant_type=client_credentials
&client_id=...
&client_secret=...
Authorization: Bearer {access_token}
X-Tenant-Id: your-tenant-id
Verify token: GET /api/v1/oauth/ping
Key Endpoints
GET /trustscore/{entityId}POST /credit/{entityId}/reportGET /credit/{entityId}/report/pdf— PDF exportGET /billing/plansPOST /ratingsPOST /ai-analyst/askPOST /webhooks
Billing
Stripe Cashier powers subscriptions. Configure STRIPE_* env vars and use
POST /api/v1/billing/checkout with a Sanctum token.