Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
List and retrieve projects with the SDK.
royaltyport.projects.list()
import { Royaltyport } from '@royaltyport/sdk'; const royaltyport = new Royaltyport({ apiKey: 'rp_your_token_here', }); const { data: projects } = await royaltyport.projects.list(); for (const project of projects) { console.log(`${project.name} (${project.id})`); }
royaltyport.projects.get(projectId)
projectId
string
import { Royaltyport } from '@royaltyport/sdk'; const royaltyport = new Royaltyport({ apiKey: 'rp_your_token_here', }); const { data: project } = await royaltyport.projects.get('a1b2c3d4-e5f6-7890-abcd-ef1234567890'); console.log(project.name); // "Record Label Ltd" console.log(project.created_at); // "2025-01-15T12:00:00Z"