SSO Intelligence
API Reference
Everything you need to integrate SSO Intelligence into your stack. Authenticate, structure payloads, and receive structured AI results in milliseconds.
Your API Key
sso_live_••••••••••••••••••••••••••••Example only. Production keys are issued after administrator provisioning. Never share your API key or commit it to source control.
Base URL
https://api.ssointelligence.ai/v1Request Examples
Authentication
All requests must include your API key in the Authorization header using the Bearer token scheme.
curl -X POST https://api.ssointelligence.ai/v1/agent/invoke \
-H "Authorization: Bearer sso_live_xK9mT2pQvR8nJ4wL6aB3cF7dE1hG5iN0" \
-H "Content-Type: application/json" \
-d '{
"task": "Hello, SSO Intelligence",
"mode": "simple"
}'Rotate your API key from the dashboard at any time. Keys are scoped per environment (live / test).
Taskflow Mode
Taskflow is the primary execution mode. The agent decomposes the task into a hierarchy of subtasks, executes them, and returns a structured result.
{
"task": "Summarize CRM pipeline and flag overdue contacts",
"mode": "taskflow",
"context": {
"crm_id": "acct_38fX92",
"date_filter": "last_30_days"
},
"options": {
"max_depth": 3,
"return_subtasks": true,
"timeout_ms": 8000
}
}Set return_subtasks: true to receive the full task hierarchy tree in the response.
Webhook Payload
Subscribe to task lifecycle events. SSO Intelligence will POST to your webhook_url on completion, failure, or state change.
{
"task": "Analyze Q3 revenue anomalies and generate report",
"mode": "taskflow",
"webhook_url": "https://your-app.com/hooks/sso",
"webhook_events": ["complete", "error", "subtask_complete"],
"webhook_secret": "whsec_your_signing_secret"
}Validate incoming webhooks by checking the X-SSO-Signature header against your webhook_secret using HMAC-SHA256.
Standalone Mode
Run inference with zero external dependencies. All context is self-contained — ideal for air-gapped or on-premise deployments.
{
"task": "Classify this support ticket and suggest a resolution",
"mode": "standalone",
"input": {
"ticket_id": "TKT-4421",
"subject": "Cannot export CSV from dashboard",
"body": "Clicking export does nothing. No error shown."
},
"options": {
"model": "sso-intelligence-v1",
"temperature": 0.3,
"max_tokens": 512
}
}Standalone mode does not call external APIs or retain session state between requests.
PATH Protocol
The Persistent AI Task Hierarchy (PATH) protocol enables long-running, stateful agent sessions with full context retention across requests.
// Initialize a PATH session
POST /v1/path/session
{
"session_id": "ses_7gKp3mXvQ2",
"system_prompt": "You are a CRM intelligence agent for Acme Corp.",
"retain_context": true
}
// Continue session with follow-up
POST /v1/path/session/ses_7gKp3mXvQ2/message
{
"message": "Now compare that with last quarter",
"mode": "taskflow"
}PATH sessions expire after 24h of inactivity. Extend with the /v1/path/session/:id/extend endpoint.
Response Format
All endpoints return a consistent JSON envelope. The status field will be one of: pending, running, complete, or error.
{
"id": "task_9xKm4pQvR2nJ",
"status": "complete",
"mode": "taskflow",
"result": {
"summary": "Pipeline contains 142 active contacts. 17 flagged as overdue (>30 days no activity).",
"flagged_contacts": [...]
},
"subtasks": [
{ "id": "sub_01", "label": "Fetch pipeline data", "status": "complete" },
{ "id": "sub_02", "label": "Filter overdue contacts", "status": "complete" },
{ "id": "sub_03", "label": "Generate summary", "status": "complete" }
],
"usage": {
"input_tokens": 512,
"output_tokens": 384,
"latency_ms": 1240
},
"created_at": "2026-04-22T14:33:01.000Z"
}Error Codes
401Unauthorized
Missing or invalid API key.
403Forbidden
Key does not have permission for this operation or environment.
422Unprocessable Entity
Malformed request payload. Check required fields and types.
429Rate Limited
Too many requests. Back off and retry with exponential delay.
500Internal Error
SSO Intelligence encountered an unexpected error. Retry the request.