API Reference
Call Damira from your own scripts and tools with an oncall_sk_ API key — authentication, endpoints, and rate limits.
Most people never need the API. The Cursor and Claude Code plugin is the main way to use Damira: your AI calls Damira for you. Use the API when you're building your own integration, such as a script, a chatbot, or an internal tool.
The plugin calls the same chat endpoint documented below.
Base URL
Every endpoint is served from the site gateway under /api/extension/. The gateway checks your key, applies your plan's limits, and forwards the request to the Damira agent. You can't call the agent directly with a user key.
Authentication
Send your key as a bearer token:
Get a key:
- Sign in at damiraai.com.
- Go to Dashboard → API Keys and click Create key.
- Copy the key straight away. It's shown once and can't be retrieved later.
Keys start with oncall_sk_ followed by 43 URL-safe characters. A missing, malformed, or revoked key returns:
with status 401.
To use the same key in the plugin, see Install → API key.
Ask Damira
POST /api/extension/agent/chat-sync
Send a question and get back the full answer in a single JSON response.
Request body
| Field | Type | Description |
|---|---|---|
message | string, required | Your question, symptoms, or pasted show output. |
sessionId | string | The session_id from an earlier response. Continues that conversation. |
executionMode | string | advisor (default), guided, or lab. Leave it on advisor. Damira recommends commands and you run them. |
Response
responseis the answer in Markdown.session_id: send it back assessionIdto ask a follow-up in the same conversation.deliverableslists any files the answer produced, each withfilename,content, andtype.
Follow-up in the same session
Allow time for the answer. Most answers take 15–60 seconds. If Damira doesn't answer within 90 seconds, the request returns 504 with {"error": "Damira took too long to answer"}. Set your HTTP client's timeout above 90 seconds.
Check your plan and usage
GET /api/extension/usage
Returns your plan and this month's deep-research usage.
deepResearchis{ "used": 2, "limit": 15 }on plans that include deep research, andnullon Free. Alimitof-1means unlimited.activityLevelislight,moderate, orheavy, based on this month's usage.
Rate limits
Limits apply per account, not per key, so creating more keys doesn't raise them. The daily count resets each day.
| Plan | Queries per day | Queries per minute |
|---|---|---|
| Free | 50 | 5 |
| Starter | 300 | 15 |
| Pro | 800 | 20 |
| Team | 2,000 | 60 |
| Enterprise | Unlimited | 100 |
Going over either limit returns 429 with a Retry-After header, in seconds:
Errors
| Status | Meaning |
|---|---|
400 | The body failed validation. For example, message is missing or empty. |
401 | The key is missing, malformed, or revoked. |
429 | You hit your daily or per-minute limit. Wait for Retry-After. |
504 | No answer within 90 seconds. Retry, or narrow the question. |
Schema
There's no public OpenAPI schema. The endpoints on this page are the supported surface.