Mirra Voice API Operations

VerifiedCaution

Operations for voice call history, transcripts, and metadata via Mirra Voice SDK REST API. Requires API key and uses curl/jq.

Sby Skills Guide Bot
Data & AIIntermediate
7/28/2026
Claude CodeCursorCodex
#voice-api#transcripts#rest-api#call-history#curl

Recommended for

Automated summary

Queries the Mirra Voice API through curl POST calls to retrieve voice call history, per-call details, transcripts, and formatted summaries.

Strengths

  • Single POST endpoint keyed by resourceId/method keeps operations uniform and easy to chain
  • Clear operation table (history, details, transcript, summary, search, active call) with documented arguments
  • Useful server-side filters: scope, status, group, date range, plus limit/offset pagination
  • JSON responses are shaped to be piped straight into jq

Limitations

  • API_KEY and API_URL are referenced but never defined, so the skill must ask the user for credentials
  • The skill file is cut off after getCallDetails, leaving arguments for getCallTranscript, getCallSummary, searchTranscripts, and getActiveCall undocumented
  • No guidance on error handling, rate limits, or key rotation
When to use it

Use it when someone wants to browse their Mirra voice calls, pull a transcript, or search for a phrase spoken during past conversations.

When not to use it

Skip it if you lack a valid Mirra API key or want a native SDK integration instead of raw REST calls.

Security analysis

Caution
Quality score88/100

The skill performs legitimate REST API calls to retrieve call history and transcripts, using curl and jq. The main concern is that the API key is transmitted to a user-configurable endpoint, which could become an exfiltration vector if the user supplies a malicious URL. No destructive or obfuscated commands are present.

Findings
  • •Sends the user's API key in an x-api-key header to a configurable API_URL; if a custom untrusted URL is provided, the key could be exposed.
How this analysis is made

Examples

Recent ended calls
List my last 5 ended Mirra voice calls with their duration and participant count.
Search transcripts
Search my Mirra call transcripts for any mention of 'pricing' and show me the matching segments with speakers.
Summarize a call
Get the transcript summary for call call_1750459861273_qbhg8we and tell me what was decided.

name: mirra-voice description: "Use Mirra to voice call history, transcripts, and call metadata. Covers all Voice SDK operations via REST API." allowed-tools: Read, Bash(curl:, jq:)

Mirra Voice

Voice call history, transcripts, and call metadata

Prerequisites

You need the user's API key. Ask for these if not provided:

  • API_KEY: Mirra API key (generated in Mirra app > Settings > API Keys)
  • API_URL: Defaults to https://api.fxn.world (only ask if they mention a custom server)

API Call Pattern

All operations use a single POST endpoint with the resource ID and method in the body:

curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
  -H "Content-Type: application/json" \
  -H "x-api-key: ${API_KEY}" \
  -d '{
    "resourceId": "voice",
    "method": "{operation}",
    "params": { ...args }
  }' | jq .

Replace {operation} with the operation name from the table below.

Legacy alternative: POST ${API_URL}/api/sdk/v1/voice/{operation} with args as the request body also works but is not recommended for new integrations.

Available Operations

| Operation | Description | |-----------|-------------| | getCallHistory | List voice calls the user participated in, with filters for scope, status, and date range. Return... | | getCallDetails | Get full metadata and participant list for a specific call. Use the call's agoraCallId (from getC... | | getCallTranscript | Get transcript segments for a voice call. Each segment contains the speaker, text, timing, and co... | | getCallSummary | Get a human-readable formatted transcript summary for a voice call. Returns speaker-attributed te... | | searchTranscripts | Full-text search across transcript segments. Searches the text content of all transcripts the use... | | getActiveCall | Check if there is an active (in-progress) voice call in a specific chat or group. Returns call de... |

Operation Details

getCallHistory

List voice calls the user participated in, with filters for scope, status, and date range. Returns call metadata (no transcript content). Use getCallTranscript or getCallSummary to retrieve transcript text for a specific call.

Arguments:

  • scope (string, optional): Filter by call scope: "direct" (1-on-1 with AI), "group", "user" (user-to-user), or "meeting" (public shareable). Omit to return all scopes.
  • status (string, optional): Filter by call status: "active", "ended", "cancelled". Defaults to all statuses.
  • groupId (string, optional): Filter calls to a specific group by group ID.
  • startDate (string, optional): Filter calls created on or after this date (ISO 8601, e.g. "2025-01-15T00:00:00Z").
  • endDate (string, optional): Filter calls created on or before this date (ISO 8601).
  • limit (number, optional): Maximum number of calls to return (default: 20, max: 100).
  • offset (number, optional): Number of results to skip for pagination (default: 0).

Returns:

AdapterOperationResult: Returns { data: { count, offset, limit, calls[] } }. Each call has: id, agoraCallId, scope, status, createdAt, endedAt, durationMs, participantCount, videoEnabled, meetingTitle.

Example:

curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
  -H "Content-Type: application/json" \
  -H "x-api-key: ${API_KEY}" \
  -d '{"resourceId":"voice","method":"getCallHistory","params":{"status":"ended","limit":5}}' | jq .

Example response:

{
  "count": 2,
  "offset": 0,
  "limit": 5,
  "calls": [
    {
      "id": "6789abc",
      "agoraCallId": "call_1750459861273_qbhg8we",
      "scope": "group",
      "status": "ended",
      "createdAt": "2025-06-01T10:00:00Z",
      "endedAt": "2025-06-01T10:45:00Z",
      "durationMs": 2700000,
      "participantCount": 3,
      "videoEnabled": false,
      "meetingTitle": ""
    }
  ]
}

getCallDetails

Get full metadata and participant list for a specific call. Use the call's agoraCallId (from getCallHistory) or the MongoDB _id.

Arguments:

  • callId (string, required): The agoraCallId or MongoDB _id of the call.

Returns:

AdapterOperationResult: Returns { data: { id, agoraCallId, scope, status, createdAt, endedAt, durationMs, videoEnabled, meetingTitle, participants[] } }. Each participant has: userId, username, isGuest, guestName, joinedAt, leftAt, status.

Example:

curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
  -H "Content-Type: application/json" \
  -H "x-api-key: ${API_KEY}" \
  -d '{"resourceId":"voice","method":"getCallDetails","params":{"callId":"call_1750459861273_qbhg8we"}}' | jq .

Example response:

{
  "id": "6789abc",
  "agoraCallId": "call_1750459861273_qbhg8we",
  "scope": "group",
  "status": "ended",
  "createdAt": "2025-06-01T10:00:00Z",
  "endedAt": "2025-06-01T10:45:00Z",
  "durationMs": 2700000,
  "videoEnabled": false,
  "meetingTitle": "",
  "participants": [
    {
      "userId": "user_001",
      "username": "alice",
      "isGuest": false,
      "guestName": "",
      "joinedAt": "2025-06-01T10:00:00Z",
      "leftAt": "2025-06-01T10:45:00Z",
      "status": "LEFT"
    }
  ]
}

getCallTranscript

Get transcript segments for a voice call. Each segment contains the speaker, text, timing, and confidence. Results are sorted by time. For a human-readable summary instead of raw segments, use getCallSummary.

Arguments:

  • callId (string, required): The agoraCallId or MongoDB _id of the call.
  • mirraTriggeredOnly (boolean, optional): If true, return only segments where a Mirra voice command was detected. Default: false.
  • limit (number, optional): Maximum segments to return (default: 50, max: 200).
  • offset (number, optional): Number of segments to skip for pagination (default: 0).

Returns:

AdapterOperationResult: Returns { data: { callId, count, offset, limit, totalSegments, segments[] } }. Each segment has: id, speakerUserId, speakerUsername, text, startMs, endMs, confidence, isFinal, mirraTriggered.

Example:

curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
  -H "Content-Type: application/json" \
  -H "x-api-key: ${API_KEY}" \
  -d '{"resourceId":"voice","method":"getCallTranscript","params":{"callId":"call_1750459861273_qbhg8we","limit":10}}' | jq .

Example response:

{
  "callId": "call_1750459861273_qbhg8we",
  "count": 2,
  "offset": 0,
  "limit": 10,
  "totalSegments": 42,
  "segments": [
    {
      "id": "seg_001",
      "speakerUserId": "user_001",
      "speakerUsername": "alice",
      "text": "Hey, let's discuss the Q2 roadmap.",
      "startMs": 1200,
      "endMs": 3800,
      "confidence": 0.95,
      "isFinal": true,
      "mirraTriggered": false
    }
  ]
}

getCallSummary

Get a human-readable formatted transcript summary for a voice call. Returns speaker-attributed text in "Speaker: text" format. Useful for AI context, summaries, and recaps. For raw segment data, use getCallTranscript instead.

Arguments:

  • callId (string, required): The agoraCallId or MongoDB _id of the call.
  • maxLength (number, optional): Maximum character length of the summary (default: 2000). Transcript is truncated with "[Transcript truncated...]" if it exceeds this.
  • startMs (number, optional): Only include segments starting at or after this millisecond offset from call start.
  • endMs (number, optional): Only include segments ending at or before this millisecond offset from call start.

Returns:

AdapterOperationResult: Returns { data: { callId, summary, characterCount } }. The summary is a formatted string with "Speaker: text" lines.

Example:

curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
  -H "Content-Type: application/json" \
  -H "x-api-key: ${API_KEY}" \
  -d '{"resourceId":"voice","method":"getCallSummary","params":{"callId":"call_1750459861273_qbhg8we"}}' | jq .

Example response:

{
  "callId": "call_1750459861273_qbhg8we",
  "summary": "alice: Hey, let's discuss the Q2 roadmap.\nbob: Sure, I think we should prioritize mobile performance.\nalice: Agreed. Let's also look at the onboarding flow.",
  "characterCount": 158
}

searchTranscripts

Full-text search across transcript segments. Searches the text content of all transcripts the user has access to. Results include the call context and matching segments.

Arguments:

  • query (string, required): Text to search for in transcript content (case-insensitive substring match).
  • groupId (string, optional): Limit search to transcripts from calls in a specific group.
  • startDate (string, optional): Only search transcripts from calls created on or after this date (ISO 8601).
  • endDate (string, optional): Only search transcripts from calls created on or before this date (ISO 8601).
  • limit (number, optional): Maximum number of matching segments to return (default: 20, max: 100).

Returns:

AdapterOperationResult: Returns { data: { query, count, results[] } }. Each result has: segmentId, callId (agoraCallId), speakerUsername, text, startMs, confidence, callCreatedAt.

Example:

curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
  -H "Content-Type: application/json" \
  -H "x-api-key: ${API_KEY}" \
  -d '{"resourceId":"voice","method":"searchTranscripts","params":{"query":"roadmap","limit":5}}' | jq .

Example response:

{
  "query": "roadmap",
  "count": 1,
  "results": [
    {
      "segmentId": "seg_001",
      "callId": "call_1750459861273_qbhg8we",
      "speakerUsername": "alice",
      "text": "Hey, let's discuss the Q2 roadmap.",
      "startMs": 1200,
      "confidence": 0.95,
      "callCreatedAt": "2025-06-01T10:00:00Z"
    }
  ]
}

getActiveCall

Check if there is an active (in-progress) voice call in a specific chat or group. Returns call details if active, or an empty result if no call is in progress.

Arguments:

  • chatInstanceId (string, optional): Check for an active call in a specific chat instance.
  • groupId (string, optional): Check for an active call in a specific group. Provide either chatInstanceId or groupId.

Returns:

AdapterOperationResult: Returns { data: { hasActiveCall, call? } }. If active, call contains: id, agoraCallId, scope, status, createdAt, participantCount, videoEnabled.

Example:

curl -s -X POST "${API_URL}/api/sdk/v2/resources/call" \
  -H "Content-Type: application/json" \
  -H "x-api-key: ${API_KEY}" \
  -d '{"resourceId":"voice","method":"getActiveCall","params":{"groupId":"group_123"}}' | jq .

Example response:

{
  "hasActiveCall": true,
  "call": {
    "id": "6789abc",
    "agoraCallId": "call_1750459861273_qbhg8we",
    "scope": "group",
    "status": "active",
    "createdAt": "2025-06-01T11:30:00Z",
    "participantCount": 2,
    "videoEnabled": false
  }
}

Response Format

All SDK responses return the operation payload wrapped in a standard envelope:

{
  "success": true,
  "data": { ... }
}

The data field contains the operation result. Error responses include:

{
  "success": false,
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message"
  }
}

Tips

  • Use jq . to pretty-print responses, jq .data to extract just the payload
  • For list operations, results are in data.results or directly in data (check examples)
  • Pass --fail-with-body to curl to see error details on HTTP failures
  • Store the API key in a variable: export API_KEY="your-key"

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/mirra-voice-api-operations-ms47vp2o/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/mirra-voice-api-operations-ms47vp2o' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/mirra-voice-api-operations-ms47vp2o/download' --output '.skill-downloads/mirra-voice-api-operations-ms47vp2o/SKILL.md.part' && mv '.skill-downloads/mirra-voice-api-operations-ms47vp2o/SKILL.md.part' '.skill-downloads/mirra-voice-api-operations-ms47vp2o/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Read, Bash(curl:*, jq:*)

Original excerpt: Prerequisites

You need the user's API key. Ask for these if not provided:

  • API_KEY: Mirra API key (generated in Mirra app > Settings > API Keys)
  • API_URL: Defaults to https://api.fxn.world (only ask if they mention a custom server)

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/mirra-voice-api-operations-ms47vp2o/SKILL.md' && test -s '.skill-downloads/mirra-voice-api-operations-ms47vp2o/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/mirra-voice' && cp -R '.skill-downloads/mirra-voice-api-operations-ms47vp2o' '.claude/skills/mirra-voice'

Cursor
test -f '.skill-downloads/mirra-voice-api-operations-ms47vp2o/SKILL.md' && test -s '.skill-downloads/mirra-voice-api-operations-ms47vp2o/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/mirra-voice' && cp -R '.skill-downloads/mirra-voice-api-operations-ms47vp2o' '.cursor/skills/mirra-voice'

Codex
test -f '.skill-downloads/mirra-voice-api-operations-ms47vp2o/SKILL.md' && test -s '.skill-downloads/mirra-voice-api-operations-ms47vp2o/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/mirra-voice' && cp -R '.skill-downloads/mirra-voice-api-operations-ms47vp2o' '.agents/skills/mirra-voice'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/mirra-voice-api-operations-ms47vp2o'

openskills read 'mirra-voice-api-operations-ms47vp2o'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/mirra-voice-api-operations-ms47vp2o/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills