Comprehensive API documentation for integrating Siya into your applications, workflows, and tools. Whether you’re building extensions, automating tasks, or creating custom integrations, this reference provides everything you need.
The Siya API is currently in development. CLI and REST API access coming soon!
Integrate with Siya Desktop using native macOS technologies
URL Schemes
AppleScript
Shortcuts Integration
Deep Linking Protocol
Control Siya through URL schemes from any application
URL Scheme Reference
Examples
Copy
// Open Siya with a promptlet url = URL(string: "siya://chat?prompt=Help%20me%20debug%20this%20Swift%20code")!NSWorkspace.shared.open(url)
URL Parameters
AppleScript Automation
Full automation support through AppleScript
Basic Commands
Copy
-- Activate Siyatell application "Siya" activateend tell-- Bring to fronttell application "Siya" activate set frontmost to trueend tell
Advanced Automation
Copy
-- Complete automation exampletell application "Siya" activate -- Start new chat new chat -- Send complex prompt set myPrompt to "Analyze this code and suggest improvements" send prompt myPrompt -- Wait for completion repeat while is processing delay 0.5 end repeat -- Get and process response set aiResponse to last response -- Save to file save conversation to file "~/Desktop/analysis.md" -- Clear for next task clear memoryend tell
AppleScript Dictionary
Apple Shortcuts
Create powerful automations with Shortcuts app
1
Create Shortcut
Open Shortcuts app and create new shortcut
2
Add Siya Action
Search for “Siya” in actions or use URL scheme
3
Configure Action
Set prompt, model, or other parameters
4
Test & Save
Run shortcut and save for reuse
Example Shortcuts
Code Review
Copy
1. Get clipboard2. Open URL: siya://chat?prompt=Review%20this%20code%3A%20{clipboard}3. Wait 2 seconds4. Copy Siya response
Daily Standup
Copy
1. Get current date2. Open URL: siya://chat?prompt=Generate%20standup%20for%20{date}3. Save response to Notes
import { Siya } from '@siya/sdk';const siya = new Siya({ apiKey: process.env.SIYA_API_KEY});const response = await siya.chat.create({ model: 'claude-opus-4', messages: [...]});
Python
Copy
pip install siya-sdk
Copy
from siya import Siyaclient = Siya( api_key=os.environ["SIYA_API_KEY"])response = client.chat.create( model="claude-opus-4", messages=[...])
The CLI is currently in development. Expected release: Q1 2025
CLI Preview
Planned Commands
CLI Configuration
Copy
# Install via Homebrew (macOS)brew install siya-cli# Install via npmnpm install -g @siya/cli# Install via curlcurl -fsSL https://siya.com/install.sh | sh
Siya’s API ecosystem provides powerful integration capabilities, from simple URL schemes available today to the comprehensive REST API and CLI coming soon. Whether you’re automating workflows, building extensions, or creating custom integrations, Siya’s APIs give you the flexibility and power you need.