Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add Royalti-io/royalti-api-skill --skill royalti-apigit clone --depth 1 https://github.com/Royalti-io/royalti-api-skillWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/royalti-io/royalti-api-skill/royalti-api)<a href="https://agentmods.dev/skills/royalti-io/royalti-api-skill/royalti-api"><img src="https://agentmods.dev/badge/skills/royalti-io/royalti-api-skill/royalti-api.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00096 | $0.15237 |
| Opus 5 | $0.00048 | $0.07619 |
| Sonnet 5 | $0.00019 | $0.03047 |
| Haiku 4.5 | $0.00010 | $0.01524 |
Grade A, and why
royalti-api scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -X POST https://api.royalti.io/auth/login \ How it starts
The opening of the file, as written. The whole thing — 1,677 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Royalti API v2.6 — Developer Reference
Pattern reference for integrating with the Royalti.io REST API.
Base URL: https://api.royalti.io
Current Version: 2.6.4
Architecture: Multi-tenant (workspace-scoped)
1. Authentication
Token Types
| Token | Prefix | Expiry | Use Case |
|---|---|---|---|
| JWT Access Token | — | 6 hours | All API requests |
| JWT Refresh Token | — | 1 day | Obtain new access tokens |
| Workspace API Key | RWAK |
Never (revocable) | Programmatic workspace access |
| User API Key | RUAK |
Never (revocable) | Programmatic user access |
Two-Step JWT Login
# Step 1: Login — returns refresh token + workspace list
curl -X POST https://api.royalti.io/auth/login \
-H "Content-Type: application/json" \
-d '{ "email": "[email protected]", "password": "secret" }'
# Response:
# {
# "refresh_token": "eyJ...",
# "workspaces": [{ "id": "ws_abc", "name": "My Label", ... }]
# }
# Step 2: Exchange refresh token for access token (scoped to a workspace)
curl https://api.royalti.io/auth/authtoken?currentWorkspace=ws_abc \
-H "Authorization: Bearer <refresh_token>"
# Response:
# { "data": { "access_token": "eyJ..." } }
Using the Access Token
All subsequent requests include the access token:
curl https://api.royalti.io/artist/ \
-H "Authorization: Bearer <access_token>"
API Key Authentication
API keys can be used instead of JWT tokens. Pass them in the Authorization header:
# Workspace API key
curl https://api.royalti.io/artist/ \
-H "Authorization: Bearer RWAK_abc123..."
# User API key
curl https://api.royalti.io/asset \
-H "Authorization: Bearer RUAK_def456..."
API Key Auth Resolution (Internals)
Understanding how RWAK/RUAK keys resolve to a workspace context helps debug auth errors:
1. Token prefix detected as RWAK/RUAK (not JWT)
2. ApiKeys table lookup → finds TenantId
3. Tenants table lookup → finds workspace (must be status='active')
4. Tenants.user field → used to find the owner TenantUser via TenantUser.findByPk()
5. Owner TenantUser populates req.user for all downstream handlers
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 1,677 lines · 96 tokens per session scan A 79df286bb08e
royalti-api is a skill published in the GitHub repository Royalti-io/royalti-api-skill (4 stars, last pushed 15d ago), licensed MIT. It adds 96 tokens to every session and 15,237 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
add-server-logic
Creates, edits, and manages Power Pages Server Logic files — server-side JavaScript that runs securely on the Power Pages runtime. Orchestrates the full lifecycle: gathering requirements, fetching documentation, implementing code, configuring site settings, and deploying. Use when the user wants to add server-side…
muapi-platform
Setup and utility scripts for muapi.ai — configure API keys, test connectivity, and poll for async generation results.
integrate-webapi
Integrates Power Pages Web API into a site's frontend code with proper permissions and deployment. Orchestrates the full integration lifecycle: code integration, table permissions setup, and deployment for Dataverse CRUD operations. Use when the user wants to add Web API calls, connect to Dataverse, or add data…
add-cloud-flow
Integrates Power Automate cloud flows into a Power Pages site. Lists available flows, suggests relevant ones based on intent, identifies scenarios and web roles, creates metadata files, and generates client-side code to call flows. Handles both new flow registration and adding already-registered flows to additional…
integrate-backend
Analyzes the user's business problem and recommends the right backend integration approach — Web API, AI Web API (generative summaries / grounded search), Server Logic, Cloud Flows, or a combination — for a Power Pages site, then routes to the appropriate specialized skill. Use when the user wants to add backend…
add-connector
Adds any Power Platform connector to a Power Apps code app. Generic fallback for connectors not covered by a specific skill.