v1

latestOpenAPI 3.0.1MIT2026-07-2638658.5 KB
Template

Get specific custom template details

Retrieve detailed information about a specific custom template including its variables.

get/v2/template/custom/{id}

Path parameters

idinteger required
Example:123

Template ID

Response

Success

codeinteger required

Business status code:

  • 0 - Success
  • 10104 - Record not found
  • 10105 - Invalid API key
  • 18020 - Insufficient credit
  • 18025 - No permission to call APIs
  • 40000 - Parameter error
  • 50000 - System error
msgstring required

Response message

Example response

{
  "msg": "Success",
  "data": {
    "template_id": 123,
    "name": "My Template",
    "cover_url": "https://example.com/cover.jpg",
    "preview_url": "https://example.com/preview.mp4",
    "variables": [
      {
        "type": "text",
        "name": "title"
      }
    ]
  }
}