Overview
Retrieve all templates created by your account with pagination support. Results are ordered by creation date (newest first).
Query Parameters
Page number to retrieve (default: 1, minimum: 1).
Number of templates per page (default: 10, minimum: 1, maximum: 100).
Response
Array of template objects.
Total number of templates across all pages.
Template Object
Unique identifier (UUID) for the template.
UUID of the user who owns this template.
The template’s description.
ISO 8601 timestamp when the template was created.
ISO 8601 timestamp when the template was last updated.
Example Response
{
"templates": [
{
"id": "t1e2m3p4-l5a6-7890-abcd-ef1234567890",
"user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
"name": "Text to Image - Standard",
"description": "Basic text-to-image generation with SDXL",
"created_at": "2024-01-15T10:00:00Z",
"updated_at": "2024-01-15T10:00:00Z"
}
],
"total": 1
}
Error Responses
Unauthorized - invalid or missing authentication token.
Notes
- Results are ordered by creation date (newest first)
- Use pagination for accounts with many templates
- The
total field indicates the total count across all pages