Skip to content

API Reference

Base URL: https://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}/report
  • GET /credit/{entityId}/report/pdf — PDF export
  • GET /billing/plans
  • POST /ratings
  • POST /ai-analyst/ask
  • POST /webhooks

Billing

Stripe Cashier powers subscriptions. Configure STRIPE_* env vars and use POST /api/v1/billing/checkout with a Sanctum token.