API Overview
ShieldLabs uses two API hosts for server-side calls. See Endpoints & URLs.Base URLs
| API | Host | Auth |
|---|---|---|
| Dashboard + Pub API | https://account.shieldlabs.ai | JWT or keys in URL |
| Core Management API | https://api.shieldlabs.ai | {domain}:{secret} in path |
dev.account.shieldlabs.ai, dev.api.shieldlabs.ai.
Authentication
Pub API (no JWT)
Query session data from your server using keys in the URL path:{public_key}— 32-character hex string from the dashboard{secret_key}— 32-character hex string (server-only)
Dashboard API (JWT)
All/api/* endpoints on account.shieldlabs.ai require a JWT in the Authorization header:
token.
Webhook registration
Recommended — Dashboard or JWT API:api.shieldlabs.ai:
{domain}:{secret} (domain hostname + secret key), not {public_key}/{secret_key}.
Response format
All endpoints return JSON. Error responses:"invalid credentials".
Pagination
History endpoints acceptlimit and offset query parameters: