All Products
Search
Document Center

:GetCustomTemplate

Last Updated:Mar 30, 2026

Gets the details of a Custom Template for Media Processing.

Operation description

This operation gets the details of a specific Custom Template or a Default Template. To get a specific template, provide its TemplateId; all other parameters will be ignored. To get a Default Template, omit the TemplateId and specify the template Type.

Valid values for the Type parameter:

  1. 1: Transcoding Template

  2. 2: Snapshot Template

  3. 3: Animated Image Template

  4. 4: Image Watermark Template

  5. 5: Text Watermark Template

  6. 6: Subtitle Template

  7. 7: AI-powered Intelligent Review template

  8. 8: AI-powered Smart Cover template

  9. 9: AI-powered Content Removal template

If Type is 1 (Transcoding Template), you can specify one of the following values for the Subtype parameter:

  1. 1: Normal transcoding (Normal)

  2. 2: Audio-only transcoding (AudioTranscode)

  3. 3: Remuxing (Remux)

  4. 4: NarrowBand HD 1.0 (NarrowBandV1)

  5. 5: NarrowBand HD 2.0 (NarrowBandV2)

If Type is 2 (Snapshot Template), you can specify one of the following values for the Subtype parameter:

  1. 1: Regular snapshot (Normal)

  2. 2: Image Sprite (Sprite)

  3. 3: WebVTT snapshot (WebVtt)

If Type is 7 (AI-powered Intelligent Review template), you can specify one of the following values for the Subtype parameter:

  1. 1: Video Review (Video)

  2. 2: Audio Review (Audio)

  3. 3: Image Review (Image)

If Type is 9 (AI-powered Content Removal template), you can specify one of the following values for the Subtype parameter:

  1. 1: Logo Removal (VideoDelogo)

  2. 2: Subtitle Removal (VideoDetext)

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

ice:GetCustomTemplate

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

TemplateId

string

No

The template ID.

****96e8864746a0b6f3****

Type

integer

No

The template type. This parameter is required if you do not specify TemplateId.

1

Subtype

integer

No

The subtype of the template.

1

Response elements

Element

Type

Description

Example

object

The response object.

RequestId

string

The request ID.

******11-DB8D-4A9A-875B-275798******

CustomTemplate

object

The container for the template details.

TemplateId

string

The template ID.

****20b48fb04483915d4f2cd8ac****

TemplateName

string

The name of the template.

Test Screenshot Template

Type

integer

The ID of the template type.

2

TypeName

string

The name of the template type.

SnapshotTemplate

Subtype

integer

The ID of the template subtype.

1

SubtypeName

string

The name of the template subtype.

Normal

Status

string

The status of the template.

Normal

IsDefault

boolean

Indicates if the template is a Default Template.

true

TemplateConfig

string

The template configuration, as a JSON-formatted string.

{"Type":"Normal","FrameType":"normal","Time":0,"Count":10}

CreateTime

string

The time the template was created, in YYYY-MM-DDTHH:mm:ssZ format and UTC.

2022-01-01T10:00:00Z

ModifiedTime

string

The time the template was last modified, in YYYY-MM-DDTHH:mm:ssZ format and UTC.

2022-01-01T11:00:00Z

FrontendHint

object

Reserved parameter.

TranscodeTemplateHint

object

Reserved parameter.

BitrateControlType

string

Reserved parameter.

Examples

Success response

JSON format

{
  "RequestId": "******11-DB8D-4A9A-875B-275798******",
  "CustomTemplate": {
    "TemplateId": "****20b48fb04483915d4f2cd8ac****",
    "TemplateName": "Test Screenshot Template",
    "Type": 2,
    "TypeName": "SnapshotTemplate",
    "Subtype": 1,
    "SubtypeName": "Normal",
    "Status": "Normal",
    "IsDefault": true,
    "TemplateConfig": "{\"Type\":\"Normal\",\"FrameType\":\"normal\",\"Time\":0,\"Count\":10}",
    "CreateTime": "2022-01-01T10:00:00Z",
    "ModifiedTime": "2022-01-01T11:00:00Z\n",
    "FrontendHint": {
      "TranscodeTemplateHint": {
        "BitrateControlType": ""
      }
    }
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.