License AuthorizationUpdate License Authorization settings

Update License Authorization settings

curl -X POST "https://api.5centscdn.com/v2/drm/auth" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "mode": "UPFRONT",
  "callbackUrl": "https://example.com/drm/callback",
  "callbackAdapterId": null,
  "allowCrtTemplateId": "c3d9a1e4-7b2f-4e6a-9d8c-5f1b0a2e7c34"
}'
{
  "result": "success"
}
POST
/drm/auth
POST
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)

Content-Typestring
Required

The media type of the request body

Options: application/json
modestring
Required

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).

Options: DENY, UPFRONT, CALLBACK, UPFRONT_CALLBACK, ALLOW, TEST
callbackUrlstring

Callback Authorization URL. Required when mode is CALLBACK or UPFRONT_CALLBACK.

Format: uri
callbackAdapterIdstring

Optional DRMtoday callback adapter ID.

allowCrtTemplateIdstring

CRT template ID applied to every request. Required when mode is ALLOW.

Format: uuid
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.

Body

application/json
modestring
Required

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. Required when mode is CALLBACK or UPFRONT_CALLBACK.

Example:
https://example.com/drm/callback
callbackAdapterIdstring

Optional DRMtoday callback adapter ID.

Example:
null
allowCrtTemplateIdstring

CRT template ID applied to every request. Required when mode is ALLOW.

Example:
c3d9a1e4-7b2f-4e6a-9d8c-5f1b0a2e7c34

Responses

resultstring

Operation outcome.

Allowed values:successerror