Video

List template videos

Changed on

Get paginated list of template videos with optional filtering and sorting.

get/v2/template_videos

Request

  • Base URL
    https://api.jogg.ai
  • URL
    https://api.jogg.ai/v2/template_videos
  • Auth
    API key in header x-api-key

Query parameters

pageinteger
page_sizeinteger
status3 | 4 | 5

Filter by status

sort_bystring
sort_order'asc' | 'desc'

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": {
    "data": [
      {
        "video_id": "video_123456",
        "video_name": "My Template Video",
        "status": "completed",
        "created_at": 1732806631,
        "cover_url": "https://res.jogg.ai/cover.jpg",
        "url": "https://res.jogg.ai/video.mp4",
        "duration_seconds": 30.5,
        "error": {
          "code": "ERROR_CODE",
          "message": "Video generation failed"
        }
      }
    ],
    "pagination": {
      "page": 1,
      "page_size": 10,
      "total_items": 100,
      "total_pages": 10
    }
  }
}

Changes