Skip to main content
GET
/
work
/
registrations
/
{id}
Get a registration by ID
curl --request GET \
  --url https://api.royalti.io/work/registrations/{id} \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.royalti.io/work/registrations/{id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.royalti.io/work/registrations/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.royalti.io/work/registrations/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.royalti.io/work/registrations/{id}"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.royalti.io/work/registrations/{id}")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.royalti.io/work/registrations/{id}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "workId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "tenantId": 123,
  "societyCode": "<string>",
  "societyName": "<string>",
  "registrationStatus": "pending",
  "statusDate": "2023-11-07T05:31:56Z",
  "confirmationNumber": "<string>",
  "registrationId": "<string>",
  "notes": "<string>",
  "metadata": {},
  "queuedAt": "2023-11-07T05:31:56Z",
  "submittedAt": "2023-11-07T05:31:56Z",
  "submissionFileId": "<string>",
  "submissionFileHash": "<string>",
  "attempts": 0,
  "lastAttemptAt": "2023-11-07T05:31:56Z",
  "lastErrorMessage": "<string>",
  "isDeadLettered": true,
  "work": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "workTitle": "<string>",
    "iswc": "<string>",
    "submitterWorkNumber": "<string>"
  }
}
{
"status": "error",
"message": "<string>",
"code": "<string>",
"details": {}
}
{
"status": "error",
"message": "<string>",
"code": "<string>",
"details": {}
}
{
"status": "error",
"message": "<string>",
"code": "<string>",
"details": {}
}
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

GET /work/registrations/ Description: Fetches a single WorkRegistration, tenant-scoped through its linked work. Response is the bare registration object (no success/data wrapper). Authorization:
  • Required role: user or higher
Method: GET

Code Examples

const response = await fetch('https://api.royalti.io/work/registrations/{id}', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${token}`,
  },
});

const data = await response.json();
console.log(data);
import requests

response = requests.get(
  'https://api.royalti.io/work/registrations/{id}',
  headers={
    'Authorization': f'Bearer {token}'
  },
)

data = response.json()
print(data)
curl -X GET https://api.royalti.io/work/registrations/{id} \
  -H "Authorization: Bearer YOUR_TOKEN" \

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Path Parameters

id
string<uuid>
required

Response

Registration retrieved

id
string<uuid>
workId
string<uuid> | null
tenantId
integer
societyCode
string

2-3 character society code (e.g. ASCAP, BMI, PRS)

societyName
string
registrationStatus
enum<string>
default:pending
Available options:
pending,
submitted,
registered,
rejected,
conflict,
cancelled
statusDate
string<date-time>
confirmationNumber
string | null
registrationId
string | null

External/society-assigned registration identifier (distinct from the row's own id)

notes
string | null
metadata
object
queuedAt
string<date-time> | null

Set when the row is explicitly queued for PRO submission; null on creation

submittedAt
string<date-time> | null
submissionFileId
string | null
submissionFileHash
string | null
attempts
integer
default:0
lastAttemptAt
string<date-time> | null
lastErrorMessage
string | null
isDeadLettered
boolean
work
object | null

Present when eager-loaded