B_Act Labs API Reference

Infrastructure for behavioral intelligence and model orchestration

API Overview

B_Act Labs provides a unified API for behavioral intelligence, model orchestration, and adaptive AI systems. Deploy once and integrate with OpenAI, Anthropic, robotics platforms, and custom LLMs.

Behavioral Analysis

Real-time emotional signal parsing from voice, visual, and text

Model Routing

Intelligent model selection based on cost, latency, and capability

Observability

Distributed tracing and request inspection for debugging

Endpoints

POST/api/v1/behavioral-signals

Analyze Behavioral Signals

Process multimodal signals (voice, visual, semantic) and extract emotional states

Parameters

signalstimestampmodel_id

Response Fields

confidenceemotional_statecognitive_loadintent_prediction
Example Request
curl -X POST https://api.bact-labs.io/api/v1/behavioral-signals \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "signals": "value",
    "timestamp": 1775290849926
  }'
POST/api/v1/orchestrate-models

Model Orchestration

Dynamic routing of requests across OpenAI, Anthropic, and custom LLMs

Parameters

querycontextlatency_limitcost_constraint

Response Fields

selected_modelrouting_reasonexpected_latencyfallback_chain
Example Request
curl -X POST https://api.bact-labs.io/api/v1/orchestrate-models \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "value",
    "timestamp": 1775290849926
  }'
POST/api/v1/analyze-behavior

Behavioral Analysis

Deep behavioral analysis including hesitation detection, attention metrics

Parameters

session_iduser_datainteraction_history

Response Fields

hesitation_scoreattention_spancognitive_frictionadaptation_suggestions
Example Request
curl -X POST https://api.bact-labs.io/api/v1/analyze-behavior \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "session_id": "value",
    "timestamp": 1775290849926
  }'
GET/api/v1/agent-status

Agent Fleet Status

Get real-time status of all behavioral intelligence agents

Parameters

filter (optional)

Response Fields

agentsactive_workflowsthroughputlatency_p95
Example Request
curl -X GET https://api.bact-labs.io/api/v1/agent-status \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "filter (optional)": "value",
    "timestamp": 1775290849926
  }'
POST/api/v1/adaptive-ui

Adaptive UI Signals

Get UI adaptation recommendations based on behavioral signals

Parameters

current_statebehavioral_datauser_profile

Response Fields

ui_changeslayout_suggestionscontent_priorityinteraction_patterns
Example Request
curl -X POST https://api.bact-labs.io/api/v1/adaptive-ui \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "current_state": "value",
    "timestamp": 1775290849926
  }'
GET/api/v1/observability/traces

Request Traces

Distributed tracing for request flows across agents and models

Parameters

trace_idservice_filtertime_range

Response Fields

spanslatency_breakdownerror_detailsdependencies
Example Request
curl -X GET https://api.bact-labs.io/api/v1/observability/traces \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "trace_id": "value",
    "timestamp": 1775290849926
  }'

Authentication

All requests require an API key passed via the Authorization header:

Authorization: Bearer sk-proj_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Get your API key from the workspace settings.

Rate Limiting

Requests/minute

600

Concurrent connections

100

Tokens/day

10M

Quick Start

import requests

api_key = "sk-proj_your_key_here"
headers = {"Authorization": f"Bearer {api_key}"}

# Analyze behavioral signals
response = requests.post(
  "https://api.bact-labs.io/api/v1/behavioral-signals",
  headers=headers,
  json={
    "signals": {
      "voice": {"confidence": 0.85, "tone": "professional"},
      "visual": {"focus_intensity": 0.89},
      "semantic": {"intent": "inquiry", "sentiment": "neutral"}
    }
  }
)

print(response.json())