/mirra:userfrom mirra
Manages user profiles and accounts via Mirra's REST API. Covers get/update profile, preferences, usage stats, sessions, and account deactivation.
Ships in mirra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Internal user profile and account management system
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)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": "user",
"method": "{operation}",
"params": { ...args }
}' | jq .
Replace {operation} with the operation name from the table below.
Legacy alternative:
POST ${API_URL}/api/sdk/v1/user/{operation}with args as the request body also works but is not recommended for new integrations.
| Operation | Description |
|---|---|
getProfile | Get user profile information including username, email, timezone, phone, and usage stats |
updateProfile | Update user profile fields (username, email, timezone, phone) |
updatePreferences | Update user preferences (notification settings, etc) |
getUsageStats | Get token usage statistics, quota, and billing information |
getSessions | Get active sessions/devices (based on push token registrations) |
deactivateAccount | Soft delete user account (set inactive flag) - CAUTION: This marks the account for deletion |
getProfileGet user profile information including username, email, timezone, phone, and usage stats
Returns:
UserProfile: User profile object with all profile fields
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":"user","method":"getProfile","params":{}}' | jq .
updateProfileUpdate user profile fields (username, email, timezone, phone)
Arguments:
username (string, optional): New username (3-30 characters, alphanumeric with underscores/hyphens)email (string, optional): New email addresstimezone (string, optional): IANA timezone identifier (e.g., America/Los_Angeles)phoneNumber (string, optional): Phone number (7-15 digits with optional formatting)Returns:
UserProfile: Updated user profile object
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":"user","method":"updateProfile","params":{}}' | jq .
updatePreferencesUpdate user preferences (notification settings, etc)
Arguments:
timezone (string, optional): Preferred timezone for schedulingsocials (object, optional): Social media links (twitter, discord)Returns:
UserPreferences: Updated user preferences
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":"user","method":"updatePreferences","params":{}}' | jq .
getUsageStatsGet token usage statistics, quota, and billing information
Returns:
UsageStats: Token usage and quota information
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":"user","method":"getUsageStats","params":{}}' | jq .
getSessionsGet active sessions/devices (based on push token registrations)
Returns:
Session[]: Array of active sessions/devices
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":"user","method":"getSessions","params":{}}' | jq .
deactivateAccountSoft delete user account (set inactive flag) - CAUTION: This marks the account for deletion
Arguments:
confirm (boolean, required): Must be true to confirm account deactivationReturns:
void: No return value on success
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":"user","method":"deactivateAccount","params":{"confirm":true}}' | jq .
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"
}
}
jq . to pretty-print responses, jq .data to extract just the payloaddata.results or directly in data (check examples)--fail-with-body to curl to see error details on HTTP failuresexport API_KEY="your-key"What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub oz-networks/mirra-sdk --plugin mirra39 skills in this plugin
/aiUse Mirra to access ai services for chat, decisions, and streaming with multi-provider support. Covers all AI Services SDK operations via REST API./channelsUse Mirra to the places a space publishes to — its corporate x, blog, newsletter — and the drafted copy waiting to go out to them. use listchannels to see what this space.... Covers all Space Channels SDK operations via REST API./contactsUse Mirra to manage user contacts - list, add, remove, search, block, and unblock contacts. Covers all Contacts SDK operations via REST API.Other plugins' skills for the same job