API Authentication & RBAC
SICTACK enforces strict boundaries between interactive dashboard operators and autonomous machine agents. Learn how JWT sessions, API keys, and Role-Based Access Control work.
Dual Authentication Model
| Subject Type | Credential | Header | Permitted Endpoints |
|---|---|---|---|
| Human Operators | JWT Access Token | Authorization: Bearer <token> | Dashboard, Policies, Approvals, Team Management, API Keys |
| Machine Agents | API Key (ilk_live_...) | X-API-Key: <key> | Interception Gateway, Intent Contexts, Agents, Read Policies |
1. User Authentication (JWT)
Login & Token Issuance
Operators obtain an access token by authenticating with email and password:
curl -X POST "YOUR_SICTACK_API_URL/api/v1/auth/login" \
-H "Content-Type: application/json" \
-d '{
"email": "security-lead@company.com",
"password": "YOUR_STRONG_PASSWORD"
}'Response contains the JWT token and user profile:
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "bearer",
"expires_in": 3600,
"user": {
"id": "usr_9912",
"email": "security-lead@company.com",
"name": "Alex Mercer",
"role": "ADMIN",
"org_id": "org_enterprise_01"
}
}Using JWT in Requests
Pass the token in the standard HTTP Authorization header:
curl -X GET "YOUR_SICTACK_API_URL/api/v1/policies" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."Role-Based Access Control (RBAC)
User tokens carry one of three discrete roles:
Full control over organization settings, team members, API key issuance/revocation, and policy creation/deletion.
Authorized to approve or reject pending human-in-the-loop tool requests and view audit trails. Cannot invite members or delete policies.
Read-only visibility into dashboard analytics, active agents, benchmark results, and audit events. Cannot approve requests or modify policies.
2. Machine Authentication (API Keys)
Key Format & Transmission
SICTACK API keys are formatted as ilk_live_<32-char-random-hex>. Pass the key in the X-API-Key header:
curl -X POST "YOUR_SICTACK_API_URL/api/v1/intercept" \
-H "X-API-Key: sck_live_8f92b7c1a93847e6d5c2104928374a5b" \
-H "Content-Type: application/json" \
-d '{
"agent_id": "financial-reconciler-01",
"tool_name": "transfer_funds",
"arguments": {
"recipient": "ACC-9921",
"amount": 250.0
}
}'For HTTP clients that strictly use the Authorization header, SICTACK also accepts API keys passed as Authorization: Bearer ilk_live_....
API keys are strictly intended for agent runtime operations (e.g. /api/v1/intercept, /api/v1/intents). API keys cannot be used to manage team members, delete policies, approve requests, or issue other API keys. Any attempt by an API key to access endpoints requiring user authentication receives an immediate HTTP 401 Unauthorized response.
Creating & Revoking API Keys
Administrators create API keys for AI agent fleets via the REST API or Dashboard:
curl -X POST "YOUR_SICTACK_API_URL/api/v1/auth/api-keys" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..." \
-H "Content-Type: application/json" \
-d '{
"name": "Production Agent Fleet Key",
"agent_id": "financial-reconciler-01"
}'Response contains the raw key shown once:
{
"id": "key_77192",
"name": "Production Agent Fleet Key",
"key": "sck_live_8f92b7c1a93847e6d5c2104928374a5b",
"key_prefix": "sck_live_8f92",
"agent_id": "financial-reconciler-01",
"created_at": "2026-11-16T12:00:00Z"
}Cryptographic Secret Storage
SICTACK stores API keys using one-way cryptographic hashing (hash_api_key(key)). The plaintext key is never written to disk or the database. If an API key is lost, it cannot be recovered—a new key must be generated.
Non-Negotiable Key Security Rules
Never embed SICTACK API keys into browser code, mobile client bundles, or frontend JavaScript. Tool call interception must happen on your secure backend server.
Never pass API keys or JWT tokens inside URL query strings (e.g. ?api_key=...). URL query parameters are captured in server access logs and browser histories. Always use request headers.