royalti-api

royalti-api is a skill for Claude Code from Royalti-io/royalti-api-skill. It costs 96 tokens per session (15,237 once invoked), scanned A, original, MIT.

A developer reference for connecting software to the Royalti.io REST API, a web service for managing music-related workspace data and workflows.

In plain words
What is it for?
Use it when building integrations that log in, create or update records, page through results, receive events, search data, or work with Royalti.io music, distribution, billing, and checklist features.
Why use it?
It gives developers the request patterns and data details needed to work with the service without guessing how authentication, errors, or results are handled.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code; mentions Codex; built for openclaw.

Part of the royalti-api plugin — 1 skill shipped together

Good fit Use it when building integrations that log in, create or update records, page through results, receive events, search data, or work with Royalti.io music, distribution, billing, and checklist features.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/royalti-io/royalti-api-skill/royalti-api
Install

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.

Any agent
npx skills add Royalti-io/royalti-api-skill --skill royalti-api
Clone the repo
git clone --depth 1 https://github.com/Royalti-io/royalti-api-skill

Made for: Claude Code.

Or install royalti-api, the plugin that ships this one along with the rest of its 1 skill.

Wrote 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.

agentmods badge for royalti-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/royalti-io/royalti-api-skill/royalti-api.svg)](https://agentmods.dev/skills/royalti-io/royalti-api-skill/royalti-api)
Your own site
<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>
Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 15,237 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 7d ago against content hash 79df286bb08e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

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 \
skills/royalti-api/SKILL.md · 1,677 lines

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

Read the full file on GitHub · 1,677 lines

Files

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.

Changes

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.

  1. 7d ago First seen · 1,677 lines · 96 tokens per session scan A 79df286bb08e

Subscribe to this mod's changes

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.

Related

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…

microsoft/power-platform-skills · 83 tokens

muapi-platform

Setup and utility scripts for muapi.ai — configure API keys, test connectivity, and poll for async generation results.

SamurAIGPT/Generative-Media-Skills · 26 tokens

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…

microsoft/power-platform-skills · 69 tokens

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…

microsoft/power-platform-skills · 91 tokens

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…

microsoft/power-platform-skills · 86 tokens

add-connector

Adds any Power Platform connector to a Power Apps code app. Generic fallback for connectors not covered by a specific skill.

microsoft/power-platform-skills · 27 tokens