License AuthorizationShow License Authorization settings

Show License Authorization settings

Live DRMtoday settings - never cached locally. mode controls how every license request for this service's assets is authorized.

curl -X GET "https://api.5centscdn.com/v2/drm/auth" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY"
{
  "result": "success",
  "mode": "UPFRONT",
  "callbackUrl": "https://example.com/drm/callback",
  "callbackAdapterId": "JSON_V1",
  "allowCrtTemplateId": "c3d9a1e4-7b2f-4e6a-9d8c-5f1b0a2e7c34"
}
GET
/drm/auth
GET
Base URLstring

Target server for requests. Edit to use your own host.

API Key (header: X-API-Key)
X-API-Keystring
Required

API key (sent in header)

Request Preview
Response

Response will appear here after sending the request

Authentication

header
X-API-Keystring
Required

API Key for authentication. Provide your API key in the header.

Responses

resultstring

Operation outcome.

modestring

License authorization mode. DENY blocks every request. UPFRONT authorizes via a signed CRT JWT presented up front (recommended). CALLBACK authorizes via a live HTTP callback to your server per request. UPFRONT_CALLBACK uses the upfront token and falls back to the callback. ALLOW authorizes everything matching a given CRT template. TEST allows everything (non-production only).

Allowed values:DENYUPFRONTCALLBACKUPFRONT_CALLBACKALLOWTEST
callbackUrlstring

Callback Authorization URL. Used when mode is CALLBACK or UPFRONT_CALLBACK. Omitted from the response when not set.

callbackAdapterIdstring

DRMtoday callback adapter ID.

allowCrtTemplateIdstring

CRT template ID applied to every request. Used when mode is ALLOW. Omitted from the response when not set.