The Neural API

Connect your applications directly to the BlackSpectron Fabric. High-frequency, low-latency autonomous intelligence at your fingertips.

Authentication

All API requests must be authenticated via a Bearer token in the Authorization header. You can generate an API key from the BlackSpectron Dashboard.

Authorization: Bearer bs_live_xxxxxxxxxxxxxxxxx

Core Endpoints

POST /v4/fabric/deploy

Deploy a new autonomous agent to the global edge fabric.

Parameters
  • type (string) - The role of the agent (e.g., 'Architect', 'Auditor').
  • intent (string) - The natural language instruction.
GET /v4/agents/{agent_id}/status

Retrieve real-time health, task progress, and DAG execution logs for an active agent.

PATCH /v4/logic/optimize

Request a neural re-optimization of current architectural logic to reduce latency and compute costs.

Parameters
  • repository_id (string) - Target repo ID.
  • target_metric (string) - 'latency' | 'cost' | 'security'.
const sdk = require('@blackspectron/core');

sdk.init({ apiKey: 'BS_402_NEXUS' });

async function spawnAgent() {
  const agent = await sdk.agents.create({
    type: 'Architect',
    intent: 'Build E-commerce Logic'
  });
  console.log(`Agent ${agent.id} live.`);
}