Skip to main content
GET
/
v1
/
rights
/
{rightId}
Fetch a right
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://sandbox.api.enfinitos.com/v1/rights/{rightId}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "ok": true,
  "data": {
    "right": {
      "id": "<string>",
      "orgId": "<string>",
      "basisId": "<string>",
      "parentRightId": "<string>",
      "scope": "<string>",
      "effectiveFrom": "2023-11-07T05:31:56Z",
      "effectiveUntil": "2023-11-07T05:31:56Z",
      "contentHash": "<string>",
      "createdAt": "2023-11-07T05:31:56Z"
    },
    "provenance": {}
  },
  "contractVersion": "<string>"
}

Authorizations

Authorization
string
header
required

API key sent as Authorization: Bearer <api-key>.

Path Parameters

rightId
string
required

Right id (prefixed rgh_).

Response

The right and its provenance chain.

ok
boolean
required
data
object
required

Route-specific payload. Operation responses refine this.

contractVersion
string
required
Allowed value: "v1.0"