All Products
Search
Document Center

Drive and Photo Service:VideoDRMLicense

Last Updated:May 26, 2026

Acquires a DRM license for a video.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST /v2/file/video_drm_license HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

domain_id

string

Yes

body

object

No

The request body.

drmType

string

Yes

The DRM type.

Valid values:

  • fairplay :

    Apple's FairPlay DRM technology.

  • widevine :

    Google's Widevine DRM technology.

widevine

licenseRequest

string

No

The license request payload.

CAES6B8SQgpACioSENGxDhqCLIVwwCBOyPayyWoSENGxDhqCLIVwwCBOyPayyWpI88aJmwYQARoQdRV32

Response elements

Element

Type

Description

Example

object

The response body.

data

string

The DRM license.

cb9swCy8P50H9KePsxET3jZ1tm41bDs9HTsxbWnsjf3bsf6QGdiS4kZPhDaskimbNyAfNjmhQRmWFt3AhwNF3

states

string

The request status returned by the DRM server.

0

device_info

string

Information about the device that made the license request.

""

Examples

Success response

JSON format

{
  "data": "cb9swCy8P50H9KePsxET3jZ1tm41bDs9HTsxbWnsjf3bsf6QGdiS4kZPhDaskimbNyAfNjmhQRmWFt3AhwNF3",
  "states": "0",
  "device_info": "\"\""
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.