Skip to main content

List Recordings

Returns a paginated list of recordings for a project. Recordings represent sound recordings extracted from contract documents.

Request

GET /v1/recordings

Query Parameters

ParameterTypeRequiredDefaultDescription
projectIdUUIDYesThe project to list recordings for
pageintegerNo1Page number (1-indexed)
perPageintegerNo20Items per page (1–100)
includeProductsstringNofalseSet to true to include associated products for each recording

Headers

HeaderRequiredDescription
AuthorizationYesBearer <token> — must be scoped to the requested project

Response

{
  "data": {
    "items": [
      {
        "id": "rec-1",
        "name": "Rolling in the Deep",
        "duration_ms": 228000,
        "type": "single",
        "artists": ["Adele"],
        "created_at": "2024-01-15T10:00:00Z",
        "updated_at": "2024-06-01T12:00:00Z",
        "products": [
          {
            "name": "21",
            "upc": "123456789012",
            "release_date": "2011-01-24",
            "artists": ["Adele"],
            "source": "spotify",
            "store": "Spotify"
          }
        ]
      }
    ],
    "total_count": 87,
    "page": 1,
    "per_page": 20
  }
}
The products array only appears when includeProducts=true.

Errors

StatusDescription
400Missing projectId or invalid query parameters
403Token is not scoped to the requested project

Example

curl "https://api.royaltyport.com/v1/recordings?projectId=a1b2c3d4-...&page=1&perPage=50" \
  -H "Authorization: Bearer rp_your_token_here"

Get Recording

Returns a single recording by ID.

Request

GET /v1/recordings/{recording_id}

Path Parameters

ParameterTypeRequiredDescription
recording_idstringYesThe recording ID

Query Parameters

ParameterTypeRequiredDefaultDescription
projectIdUUIDYesThe project the recording belongs to
includeProductsstringNofalseSet to true to include associated products

Headers

HeaderRequiredDescription
AuthorizationYesBearer <token> — must be scoped to the requested project

Response

{
  "data": {
    "id": "rec-1",
    "name": "Rolling in the Deep",
    "duration_ms": 228000,
    "type": "single",
    "artists": ["Adele"],
    "created_at": "2024-01-15T10:00:00Z",
    "updated_at": "2024-06-01T12:00:00Z",
    "products": [
      {
        "name": "21",
        "upc": "123456789012",
        "release_date": "2011-01-24",
        "artists": ["Adele"],
        "source": "spotify",
        "store": "Spotify"
      }
    ]
  }
}

Errors

StatusDescription
400Missing projectId
403Token is not scoped to the requested project
404Recording not found

Example

curl "https://api.royaltyport.com/v1/recordings/rec-1?projectId=a1b2c3d4-..." \
  -H "Authorization: Bearer rp_your_token_here"