API Reference
Connect to Damira AI via API — authentication, endpoints, and integration examples.
Use the Damira API directly from scripts, CI pipelines, or any HTTP client. The same API powers the VS Code extension.

Prerequisites
- Tier: Any (Free tier has limited endpoints)
- API key from your Damira account
Authentication
Every request needs an API key in the X-API-Key header.
API Key Formats
| Format | Source | Example |
|---|---|---|
damira_sk_* | User dashboard | damira_sk_a1b2c3d4e5f6 |
dm_<tier>_* | Internal/service | dm_pro_abc123 |
Getting Your Key
- Sign in at damiraai.com
- Go to Dashboard → API Keys
- Click Generate Key
- Copy it — you won't see it again

Setting Your Key in VS Code
- Open Command Palette (
Cmd+Shift+P) - Type "Damira: Set API Key"
- Paste your key
- Or: go to Damira sidebar → Settings → API Key field
Core Endpoints
Chat (Streaming)
Returns Server-Sent Events (SSE) with content, tool_call, file_created, and done events.
Chat (Sync)
Returns a single JSON response with response, session_id, and deliverables.
Multi-Turn (Session Continuity)
Pass the sessionId from the first response to maintain context:
Export Spreadsheet to Excel
Request Body Options
| Field | Type | Description |
|---|---|---|
message | string (required) | Your question or request |
sessionId | string | Continue a previous conversation |
executionMode | string | advisor (default), guided, or lab |
projectId | string | Resume a specific project workspace |
context.domain | string | voice_uc, security, route_switch, wireless |
Health Check
OpenAPI Spec
Full machine-readable spec at:
Import into Postman, Bruno, or any OpenAPI-compatible tool.
Tips
- Use
chat/syncfor scripts and automation (simpler response format) - Use
chat(SSE) for real-time UIs that show streaming progress - The
executionModefield controls SSH access — leave asadvisorunless you're in a lab - Rate limits are per API key, per day (check your tier)
Related
- Quickstart — Get set up in 5 minutes
- VS Code Extension — The primary interface
- Pricing — Tier limits and features