> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jogg.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Template Video

> Retrieve video information, status, and metadata by video ID

Retrieve video information, status, and metadata by video ID.

## Example Usage

```bash theme={null}
curl --request GET \
  --url 'https://api.jogg.ai/v2/template_video/video_123456789' \
  --header 'x-api-key: YOUR_API_KEY'
```

## Related Guides

<CardGroup cols={2}>
  <Card title="Create Video from Template" href="/api-reference/v2/Video/CreateVideoWithTemplate">
    Create videos from templates
  </Card>

  <Card title="Create Video from Template" href="/api-reference/v2/API Documentation/CreateVideoFromTemplate">
    Complete template video guide
  </Card>
</CardGroup>


## OpenAPI

````yaml GET /v2/template_video/{video_id}
openapi: 3.0.1
info:
  title: JoggAI OpenAPI v2
  description: >
    JoggAI OpenAPI v2 provides a comprehensive suite of endpoints for creating
    and managing AI-powered video content.


    ## Authentication

    All API requests require authentication using an API key provided in the
    `x-api-key` header.


    ## Base URL

    Production: https://api.jogg.ai/v2


    ## Rate Limiting

    API calls are subject to rate limiting based on your subscription plan.


    ## Error Handling

    All endpoints return standard HTTP status codes along with detailed error
    messages in the response body.
  version: 2.0.0
  license:
    name: MIT
servers:
  - url: https://api.jogg.ai
    description: Production server
security:
  - apiKeyAuth: []
tags:
  - name: Video
    description: Video creation and management operations
  - name: Avatar
    description: Avatar management and creation operations
  - name: Voice
    description: Voice and timbre management operations
  - name: Asset
    description: Asset management including music, scripts, and uploads
  - name: Template
    description: Template management operations
  - name: Product
    description: Product management operations
  - name: User
    description: User account operations
  - name: Webhook
    description: Webhook endpoint management for event notifications
paths:
  /v2/template_video/{video_id}:
    get:
      tags:
        - Video
      summary: Get template video status and details
      description: Retrieve video information, status, and metadata by video ID
      parameters:
        - name: video_id
          in: path
          required: true
          description: Video ID
          schema:
            type: string
            example: video_123456789
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/BaseResponse'
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          video_id:
                            type: string
                            description: Video ID
                            example: video_123456789
                          status:
                            type: string
                            description: Video processing status
                            enum:
                              - pending
                              - processing
                              - completed
                              - failed
                            example: completed
                          created_at:
                            type: integer
                            description: Creation timestamp (Unix timestamp)
                            example: 1640995200
                          completed_at:
                            type: integer
                            description: Completion timestamp (Unix timestamp)
                            example: 1640995500
                          data:
                            type: object
                            description: Video data (available when status is completed)
                            properties:
                              video_name:
                                type: string
                                description: Video name
                                example: My Template Video
                              url:
                                type: string
                                description: Video URL
                                format: uri
                                example: https://example.com/video.mp4
                              cover_url:
                                type: string
                                description: Cover image URL
                                format: uri
                                example: https://example.com/cover.jpg
                              duration_seconds:
                                type: number
                                format: float
                                description: Video duration in seconds
                                example: 30.5
                              deducted_credit:
                                type: number
                                format: float
                                description: Credits deducted for this video
                                example: 10.5
components:
  schemas:
    BaseResponse:
      type: object
      required:
        - code
        - msg
      properties:
        code:
          type: integer
          description: |
            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
          example: 0
        msg:
          type: string
          description: Response message
          example: Success
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication. Obtain your key from the JoggAI dashboard.

````