List rights
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.api.enfinitos.com/v1/rights', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox.api.enfinitos.com/v1/rights"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.api.enfinitos.com/v1/rights"
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://sandbox.api.enfinitos.com/v1/rights")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.enfinitos.com/v1/rights")
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_bodyfalsecurl --request GET \
--url https://sandbox.api.enfinitos.com/v1/rights \
--header 'Authorization: Bearer <token>'{
"ok": true,
"data": {
"rights": [
{
"id": "<string>",
"orgId": "<string>",
"basisId": "<string>",
"parentRightId": "<string>",
"substrate": "DOOH",
"scope": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveUntil": "2023-11-07T05:31:56Z",
"status": "ACTIVE",
"contentHash": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"nextCursor": 123,
"total": 123
},
"contractVersion": "v1.0"
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}Rights
List rights
List rights in the caller’s tenant, newest first. Requires scope rights:read.
GET
/
v1
/
rights
List rights
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.api.enfinitos.com/v1/rights', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://sandbox.api.enfinitos.com/v1/rights"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.api.enfinitos.com/v1/rights"
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://sandbox.api.enfinitos.com/v1/rights")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.enfinitos.com/v1/rights")
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_bodyfalsecurl --request GET \
--url https://sandbox.api.enfinitos.com/v1/rights \
--header 'Authorization: Bearer <token>'{
"ok": true,
"data": {
"rights": [
{
"id": "<string>",
"orgId": "<string>",
"basisId": "<string>",
"parentRightId": "<string>",
"substrate": "DOOH",
"scope": "<string>",
"effectiveFrom": "2023-11-07T05:31:56Z",
"effectiveUntil": "2023-11-07T05:31:56Z",
"status": "ACTIVE",
"contentHash": "<string>",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"nextCursor": 123,
"total": 123
},
"contractVersion": "v1.0"
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}{
"ok": false,
"error": "AUTH_REQUIRED",
"message": "<string>",
"contractVersion": "v1.0",
"field": "<string>",
"validationErrors": [
{}
],
"requiredScopes": [
"<string>"
],
"keyScopes": [
"<string>"
]
}Authorizations
API key sent as Authorization: Bearer <api-key>.
Query Parameters
Filter by lifecycle status.
Available options:
ACTIVE, SUSPENDED, REVOKED, EXPIRED, WITHDRAWN Filter to a single substrate.
Delivery substrate. The platform runtime recognises every value; which ones ship a dedicated client SDK varies (see the substrate readiness matrix). ANY matches all substrates.
Available options:
DOOH, CTV, MOBILE, STREAMING, AUDIO, MESSAGING, GAMING, GLASSES, AR_CONTACTS, HUD, VOLUMETRIC, HOLOGRAM, WEARABLES, AMBIENT, NEURAL, AUTOMOTIVE, SMART_HOME, ROBOTICS, DRONE, SATELLITE, AVIATION, MARITIME, SOCIAL_FEED, ANY Zero-indexed pagination cursor (slice start). Echo nextCursor from the previous page.
Required range:
x >= 0Max items per page, clamped to [1, 200]. Defaults to 50.
Required range:
1 <= x <= 200