Skip to main content

List Entitlement API

Overview​

The Entitlement List API allows a client application to retrieve a user's NFT-based entitlements for a specific tenant.

An entitlement represents access granted via an NFT (for example: rental, purchase, access pass, or digital asset ownership).

Returns a paginated list of entitlement actions for a user within a tenant.

Each record represents a blockchain entitlement operation (e.g. mint, rent, claim, burn) and may include:

  • Operation type (op)
  • Transaction ID
  • Status
  • Minted NFTs
  • Product details
  • Purchase metadata (if available)
  • Rental lifecycle data (state, expiry, watch start) -- for rental entries only

Endpoint​

POST /tnt/:tid/entitlement/list/:addr

Authentication​

This API requires TenantAuth authorization -- a Tenant or Content admin CSAT.

Include in header:

Authorization: Bearer <access_token>

Path Parameters​

NameTypeRequiredDescription
tidstringYesTenant ID
addrstringYesUser wallet address

Query Parameters​

NameTypeRequiredDescription
offsetintegerNoPaging offset (default: 0)
countintegerNoMaximum results to return
start_tsintegerNoStart time (Unix timestamp). Default: 0
end_tsintegerNoEnd time (Unix timestamp). Default: current time
search_indexstringNoiq__ ID of a title catalog search index to use instead of the tenant's configured one; takes precedence over the body field

Request Body​

FieldTypeRequiredDescription
include_revokedboolNoWhether to include fully-revoked entitlements; default false
skusarray of stringNoIf non-empty, only return entitlements containing any of these SKUs
rental_statesarray of stringNoFilter by rental state (upcoming, playable, expired)
actionsarray of stringNoRestrict to specific operation types (e.g. nft-rent, nft-buy); omit for all
search_indexstringNoiq__ ID of a title catalog search index; the query parameter takes precedence

Example Request​

# List all entitlements, with paging offset and count
curl -X POST "https://<fabric-authority-url>/tnt/<tenantId>/entitlement/list/<addr>?offset=0&count=5" \
-H "Authorization: Bearer <tenant-token>" \
-H "Content-Type: application/json" \
-d '{}'
# Filter by one or more SKUs
curl -X POST "https://<fabric-authority-url>/tnt/<tenantId>/entitlement/list/<addr>" \
-H "Authorization: Bearer <tenant-token>" \
-H "Content-Type: application/json" \
-d '{
"skus": ["<sku-1>", "<sku-2>"]
}'

Example Response​

{
"contents": [
{
"tenant": "<tenantId>",
"site": "<siteId>",
"wallet_addr": "0xabc123...",
"op": "nft-rent",
"trans_id": "3pp:<tenantId>:pi_3pp_xyz",
"status": "complete",
"timestamp": 1765832948,
"num_minted": 1,
"num_burned": 0,
"metadata": {
"customer_id": "cus_abc123",
"description": "Example rental",
"title_iq": "iq__abc123",
"title": "Example Title",
"title_type": "feature",
"ip_title_id": "TVOD-001",
"billing_ids": ["BILLING_001"]
},
"status_op": "nft-rent:<siteId>:pi_3pp_xyz",
"products": [
{
"sku": "<sku-1>",
"quant": 1
}
],
"minted": [
{
"name": "Example Title",
"contract_addr": "0xcontract123...",
"token_id": "454"
}
],
"rental": {
"state": "playable",
"start": "2026-05-01T00:00:00Z",
"expiry": "2026-06-02T00:00:00Z",
"first_played_at": "2026-05-02T14:30:00Z"
}
}
],
"paging": {
"offset": 0,
"limit": 1,
"total": 10,
"start_ts": 0,
"end_ts": 1772581531
}
}

Response Fields​

Paging​

FieldDescription
offsetCurrent page offset
limitPage size
totalTotal matching entitlement records
start_tsStart time used
end_tsEnd time used

Entitlement Record (contents[])​

FieldDescription
tenantTenant ID
siteSite / collection identifier
wallet_addrUser wallet address
opOperation type (e.g. nft-rent, nft-buy, nft-claim)
trans_idTransaction ID associated with operation
statusOperation status (complete, etc.)
timestampUnix timestamp of operation
num_mintedNumber of NFTs minted in this operation
num_burnedNumber of NFTs burned
status_opComposite status string
metadataPurchase and title metadata (if correlated with payment)
productsProducts associated with this operation
mintedNFTs minted during this operation
rentalRental lifecycle data -- present only for nft-rent entries

A subscription's token is listed as an nft-buy entry with no subscription status. A subscription's status, end, and grace period are returned by Create Entitlement and Update Subscription.


Minted NFTs (minted[])​

FieldDescription
nameNFT name
contract_addrNFT contract address
token_idNFT token ID

Products (products[])​

FieldDescription
skuProduct SKU
quantQuantity

Metadata (metadata)​

Contains the user-supplied metadata from the entitlement add request, plus title catalog fields when available. Internal processing fields are excluded.

Standard fields (when payment data is available):

FieldDescription
customer_idThird-party customer ID (if provided at add time)
descriptionUser-supplied description (if provided at add time)
(custom)Any additional fields passed in metadata on add

Title catalog fields (when the tenant has a title catalog configured):

FieldDescription
title_iqContent fabric iq__ identifier for the title
titleDisplay title
title_typeTitle type (e.g. feature, episode)
ip_title_idIP title identifier
billing_idsArray of billing IDs associated with the matched SKU(s)

Rental Object (rental)​

Present only when op is nft-rent. Describes the current lifecycle state of the rental.

FieldTypeDescription
statestringSee rental states table below
startISO8601 timestampWhen the rental window opened
expiryISO8601 timestampWhen the rental expires; see below
first_played_atISO8601 timestampWhen the user first began watching; omitted if not yet recorded

Rental States​

StateMeaning
upcomingBefore start -- rental purchased but watch window not yet open
playableWithin start_watch window (not yet started) or within active_for playback window
expiredPast expiry -- token has been or will be revoked by the sweep

first_played_at being non-nil indicates the user has started watching. The playable state covers both the pre-play window (waiting to start) and in-progress playback.

Rental State Filter (rental_states)​

entitlement/list accepts a rental_states array in the request body. Three concrete states are accepted:

ValueReturns
upcomingRentals not yet open
playableWithin start window or in-progress playback
expiredPast expiry

Multiple values may be combined: ["upcoming", "expired"]. Omit the field or pass an empty array to return all states. When a rental state filter is active, non-rental entitlements are excluded from the results.

expiry is first_played_at + active_for once first_played_at is set; otherwise it is the watch deadline, start + start_watch, because a rental not started by its deadline expires there with no playback window.


Common Error Messages​

MessageMeaning
invalid time rangeThe provided timestamps are invalid
invalid search_index: must be an iq__ idsearch_index is not an iq__ ID
invalid addressThe wallet address is not valid