API Reference
Complete API documentation available on GitHub
Two API Surfaces
Management API: Full CRUD for all resources at /api/v1/
Runtime API: Execute webhooks and interact with agents (dynamically generated OpenAPI docs)
# Management API
curl http://localhost:51245/api/v1/agents \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
# Runtime API
curl http://localhost:51245/webhooks/my-webhook \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
Authentication & Authorization
Request OTP code for passwordless login
Verify OTP and receive JWT token
Create API key for programmatic access
List all API keys
Get current user information
Agents & Chat
Create AI agent with system prompt, tools, and LLM config
List all agents
Create chat with agent (Runtime API)
Send message and stream response (SSE)
Skills
Create skill (reusable instruction module)
List all skills
Get skill by namespace and name
Functions
Create Python function with JSON schema validation
List all functions with filtering
View function version history
List function executions
View execution tree with nested calls
Webhooks
Create webhook endpoint
List all webhooks
Invoke webhook (triggers function execution)
Schedules
Create cron-based scheduled job
List all scheduled jobs
Update schedule configuration
States
Create state (key-value storage)
Get state by namespace and key
Update state value
Delete state
MCP Servers
Register MCP server
List all MCP servers
List tools provided by MCP server
Packages
Add Python package dependency
List all packages
Remove package
Users & Groups
List all users (admin only)
Create group
Add member to group
Set group permission
Request Logs
Query request logs from ClickHouse
Official SDKs
JavaScript / TypeScript
npm install @sinas/client
Python
pip install sinas-client
Go
go get github.com/sinas/sinas-go
Rust
cargo add sinas
Ready to Start Building?
Explore the full documentation and get your API keys