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/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<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="Reviewed on agentmods" width="80" 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.5 | $0.00038 | $0.06095 |
| Sonnet 5.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 3mo 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.
- 3mo 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 2mo ago), licensed MIT. It adds 96 tokens to every session and 15,237 once invoked, about $0.0004 per session on Opus 5.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.
royalti-api compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| royalti-apiRoyalti-io/royalti-api-skill | Skill | 4 | 2mo ago | MIT | A | 96 | Claude Code |
| integrate-webapimicrosoft/power-platform-skills | Skill | 1.2k | yesterday | MIT | A | 105 | Claude Code |
| add-cloud-flowmicrosoft/power-platform-skills | Skill | 1.2k | yesterday | MIT | A | 91 | Claude Code |
| integrate-backendmicrosoft/power-platform-skills | Skill | 1.2k | yesterday | MIT | A | 86 | Claude Code |
| generate-codeful-mcp-toolmicrosoft/power-platform-skills | Skill | 1.2k | yesterday | MIT | A | 71 | Claude Code |
| add-connectormicrosoft/power-platform-skills | Skill | 1.2k | yesterday | MIT | A | 27 | Claude Code |
| agentica-claude-proxyparcadei/Continuous-Claude-v3 | Skill | 4.0k | 14d ago | MIT | A | 19 | Claude Code |