Fiberwise API Reference
This is a comprehensive reference for the most essential Fiberwise platform APIs. The endpoints are organized by functional area to help developers quickly find what they need for platform adoption and integration.
🚧 Live API Documentation
For the most up-to-date API documentation, visit http://localhost:5757/api/v1/docs
when running Fiberwise in development mode. The live documentation includes all available endpoints with request/response examples.
Available API Categories
- Authentication:
/api/v1/auth/*
- User registration, login, logout - Users:
/api/v1/users/*
- User management - Apps:
/api/v1/apps/*
- Application management - Agents:
/api/v1/agents/*
- Agent operations - Activations:
/api/v1/activations/*
- Agent activation history - Functions:
/api/v1/functions/*
- Function management - Pipelines:
/api/v1/pipelines/*
- Pipeline workflows - LLM Providers:
/api/v1/llm-providers/*
- LLM provider configuration - Credentials:
/api/v1/credentials/*
- OAuth and credential management - Data:
/api/v1/data/*
- Dynamic app data storage - Worker:
/api/v1/worker/*
- Background worker management
Base URL and Authentication
Base URL
http://localhost:5757/api/v1
(or your deployment URL + /api/v1)
Note: All API endpoints use the /api/v1
prefix. The main application runs on port 5757.
Authentication Methods
- Cookie Authentication: For web sessions (login required)
- API Keys: For programmatic access (see API Key Management section)
- Agent Keys: For agent-specific operations
🔐 Authentication
User Registration
Request
POST /register
Content-Type: application/x-www-form-urlencoded
[email protected]&password=yourpassword&confirm_password=yourpassword&first_name=John&last_name=Doe
Response: Redirects to login page on success
User Login
POST /login
Content-Type: application/x-www-form-urlencoded
[email protected]&password=yourpassword
Response: Sets authentication cookie and redirects to main app
Logout
Response: Clears authentication cookie and redirects to login
🔑 API Key Management
Essential for programmatic access to the platform.
Create API Key
POST /api/v1/user/api-keys
Authorization: Bearer <session_token>
Content-Type: application/json
{
"name": "My Integration Key",
"scopes": ["read:all", "write:all"]
}
Available Scopes
read:all
- Read access to all resourceswrite:all
- Write access to all resourcesadmin
- Administrative accessapp:access
- Application-specific access
Response
{
"id": 1,
"name": "My Integration Key",
"key": "fw_key_abc123...",
"key_prefix": "fw_key_abc1",
"scopes": ["read:all", "write:all"],
"expires_at": null,
"created_at": "2024-01-01T00:00:00Z"
}
List API Keys
Revoke API Key
🤖 Agent Operations
Core functionality for managing and activating agents.
List Available Agents
Response
{
"agents": [
{
"id": "agent_123",
"name": "Text Processor",
"version": "1.0",
"description": "Processes and analyzes text content",
"is_system": false,
"capabilities": ["text_analysis", "summarization"]
}
]
}
Get Agent Details
Activate Agent
POST /api/v1/agents/{agent_id}/activate
Authorization: Bearer <api_key>
Content-Type: application/json
{
"input_data": {
"text": "Content to process",
"options": {
"mode": "analyze"
}
},
"context_type": "general",
"metadata": {
"source": "api_call"
}
}
Response
{
"activation_id": "activation_456",
"status": "pending",
"message": "Agent activation has been created successfully"
}
Get Agent Activations
📱 Application Management
List All Apps
Response
{
"apps": [
{
"app_id": "app_123",
"app_slug": "text-analyzer",
"name": "Text Analyzer",
"description": "Advanced text analysis tool",
"version": "1.0.0",
"entry_point_url": "/text-analyzer",
"marketplace_status": "active"
}
],
"total": 1,
"limit": 50,
"offset": 0
}
Get App Details
Install App
Activate App Agent
POST /api/v1/apps/{app_id}/agents/{agent_id}/activate
Authorization: Bearer <api_key>
Content-Type: application/json
{
"input": {
"message": "Hello from app context"
},
"context": {
"user_preference": "detailed"
}
}