---
title: "List index templates"
method: GET
path: "/v2/templates"
tags: ["Template"]
---

# List index templates

`GET /v2/templates`

## Request

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

Retrieve a list of index templates with optional filtering by aspect ratio.

## Query parameters

- `aspect_ratio` 'portrait' | 'landscape' | 'square'

## Response `200`

Success

- object
  - `code` integer, 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
  - `msg` string, required: Response message
  - `data` object
    - `templates` object[]: List of index templates
      - `id` integer: Template ID
      - `name` string: Template name
      - `cover_url` string, uri: Template cover image URL
      - `preview_url` string, uri: Template preview video URL
      - `aspect_ratio` 0 | 1 | 2: Aspect ratio: * 0 - Portrait [9:16] * 1 - Landscape [16:9] * 2 - Square [1:1]

## Changes

- **2026-11-03** `22021dd81934`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/jogg/apis/joggai-openapi-v2/changes/v2/templates/get.md)

---

[API](https://skmtc.dev/jogg/apis/joggai-openapi-v2.md) - [All operations](https://skmtc.dev/jogg/apis/joggai-openapi-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/jogg/apis/joggai-openapi-v2/revisions/22021dd81934?raw)
