---
title: "List Site Templates"
method: GET
path: "/v1/sites/templates"
tags: ["Site Templates"]
---

# List Site Templates

`GET /v1/sites/templates`

Get list of all Site Templates which can be used to create new sites

## Query parameters

- `created_from.site_id` integer
- `created_from.domain` string
- `tags` string[]
- `page` integer — Page of results to include (default = 1)
- `per_page` integer — How many results to include in each page (default = 10)
- `sort` 'name' | 'created_at' | 'updated_at'
- `direction` 'asc' | 'desc' | 'ASC' | 'DESC' — Direction to sort results in (asc = ascending, desc = descending)

## Response `200`

OK

- ListSiteTemplatesResponse
  - `success` boolean — whether the request succeeded
  - `errors` string[]
  - `messages` string[], nullable
  - `metadata` object
    - `page` integer — Page number of the results
    - `page_size` integer — Number of results per page
    - `total` integer — Total number of results
    - `sort` string — Sorting criteria
    - `direction` 'asc' | 'desc' — Sorting direction
  - `result` object
    - `site_templates` SiteTemplate[]
      - `name` string — Name of the site template
      - `template_id` string, uuid — Unique ID (UUID) of the site template
      - `created_from` object — properties showing what site the template was created from
        - `site_id` integer — Site ID the template was created based on. NOTE: This site cannot be larger than 4Gb
        - `domain` string — Domain the template was created based on
      - `config` WordPressMetadata — properties about the WordPress site
        - `wordpress` object — WordPress properties
          - `version` string — version of WordPress that the site was running
          - `php_version` string, nullable — version of PHP that the site was running
          - `plugins` WordPressPluginOrTheme[]
            - `name` string
            - `title` string
            - `version` string
            - `activated` boolean
          - `themes` WordPressPluginOrTheme[]
            - `name` string
            - `title` string
            - `version` string
            - `activated` boolean
      - `notes` string — Notes about the site template
      - `tags` string[] — Tags which can be used to filter / search site templates
      - `created_at` string, date-time — When the site template was created
      - `updated_at` string, date-time — When the site template was last updated

## Other responses

- `400` — Bad Request
- `401` — Authentication failed
- `403` — Not authorized to access endpoint
- `404` — Given site not found for user
- `405` — Invalid input
- `500` — Internal error

---

[API](https://skmtc.net/rocket/apis/rocket-net-api.md) · [All operations](https://skmtc.net/rocket/apis/rocket-net-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rocket/rocket-net-api/revisions/db0dcbbc5764/schema)
