API Reference

Complete endpoint documentation for the ForbocAI SDK API
View as MarkdownOpen in Claude
ÁPI_Réference // Éndpoint_Dócs
ᚠ ᛫ ᛟ ᛫ ᚱ ᛫ ᛒ ᛫ ᛟ ᛫ ᚲ

The ForbocAI SDK API provides RESTful endpoints for managing AI agents, local inference, memory, and more. This reference documents all available endpoints.


Base URL

Báse_ÚRL // Cónnect
Production: https://api.forbocai.com/v1
Local Dev: http://localhost:3001/v1

Authentication

Áuth_Módule // Béarer_Tóken

API requests require a bearer token in the Authorization header:

$curl -X POST https://api.forbocai.com/v1/agents \
> -H "Authorization: Bearer YOUR_API_KEY" \
> -H "Content-Type: application/json" \
> -d '{"cortexId": "ctx_abc123", "persona": "A helpful assistant"}'

API Categories

Módulátion_Máp // Sýstem_Óverview
Cortex

Initialize and manage local SLM inference engines

Agents

Create, interact with, and manage autonomous AI entities

Memory

Store and recall semantic memories for agents

Bridge

Validate AI actions against game rules

Soul

Export and import portable agent state

Ghost

Run automated QA testing with headless agents

᛭ ᛫ ᛬ ᛫ ᛭

Response Format

Respónse_Schéma // JSÓN_Fórmat

All API responses follow a consistent JSON format:

1{
2 "id": "agt_123abc",
3 "object": "agent",
4 "created": 1706572800,
5 "data": { ... }
6}

Error Handling

Érror_Códes // Fáulт_Státus

Errors return appropriate HTTP status codes with details:

1{
2 "error": {
3 "code": "ITEM_NOT_IN_INVENTORY",
4 "message": "Agent does not possess the item 'legendary_sword'",
5 "details": {
6 "item": "legendary_sword",
7 "agentInventory": ["rusty_key", "healing_potion"]
8 }
9 }
10}
Status CodeDescription
200Success
201Created
202Accepted (async operation started)
400Bad Request (invalid parameters)
401Unauthorized (missing/invalid token)
404Not Found
422Unprocessable Entity (validation failed)
500Internal Server Error

Rate Limits

Ráte_Límit // Thróttling
TierRequests/minuteConcurrent Agents
Free603
Pro60025
EnterpriseUnlimitedUnlimited

SDKs

SDK_Lïbraries // Instáll

Official SDK libraries wrap this API for common platforms:

$# JavaScript/TypeScript
$npm install forbocai
$
$# Python
$pip install forbocai
$
$# Rust
$cargo add forbocai
ᚠ ᛫ ᛟ ᛫ ᚱ ᛫ ᛒ ᛫ ᛟ ᛫ ᚲ