License AuthorizationTest a Callback Authorization URL

Test a Callback Authorization URL

Never calls DRMtoday - POSTs a synthetic request (shaped like DRMtoday's own JSON Callback Authorization request) directly to the given URL and returns the raw result. Use it to verify a callback endpoint before switching mode to CALLBACK or UPFRONT_CALLBACK.

curl -X POST "https://api.5centscdn.com/v2/drm/auth/test-callback" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
  "callbackUrl": "https://example.com/drm/callback",
  "assetId": "2ba1e28f1b9614c18c9318c5293d78df",
  "userId": "test-user",
  "sessionId": "test-session",
  "clientIp": "192.0.2.123"
}'
{
  "result": "success",
  "statusCode": 200,
  "timingMs": 142,
  "requestBody": {
    "asset": "2ba1e28f1b9614c18c9318c5293d78df",
    "user": "test-user",
    "session": "test-session",
    "client": "cdn-dashboard-test",
    "drmScheme": "WIDEVINE_MODULAR",
    "requestMetadata": {
      "remoteAddr": "192.0.2.123",
      "userAgent": "CDN-Dashboard-CallbackTester/1.0"
    }
  },
  "responseBody": "YOUR_CALLBACK_RESPONSE_BODY"
}
POST
/drm/auth/test-callback
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
callbackUrlstring
Required

Callback Authorization URL to test.

Format: uri
assetIdstring

Asset ID to send in the synthetic request. Defaults to test-asset.

userIdstring

User ID to send in the synthetic request. Defaults to test-user.

sessionIdstring

Session ID to send in the synthetic request. Defaults to test-session.

clientIpstring

Client IP address to send in the synthetic request. Defaults to 192.0.2.123.

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
callbackUrlstring
Required

Callback Authorization URL to test.

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

Asset ID to send in the synthetic request. Defaults to test-asset.

Example:
2ba1e28f1b9614c18c9318c5293d78df
userIdstring

User ID to send in the synthetic request. Defaults to test-user.

Example:
test-user
sessionIdstring

Session ID to send in the synthetic request. Defaults to test-session.

Example:
test-session
clientIpstring

Client IP address to send in the synthetic request. Defaults to 192.0.2.123.

Example:
192.0.2.123

Responses

resultstring

Operation outcome. Returns error on a request-level failure such as a connection error.

Allowed values:successerror
statusCodeinteger

HTTP status the callback URL responded with. Only present when result is success.

timingMsinteger

Round-trip time of the callback request in milliseconds.

requestBodyobject

The synthetic Callback Authorization request body that was sent, shaped like DRMtoday's own, built from the assetId, userId, sessionId and clientIp values supplied.

responseBodystring

Raw callback response body returned by your server, truncated to 8KB. Only present when result is success.