---
title: "Instantiate Collection Template"
method: POST
path: "/v1/templates/collections/{template_id}/instantiate"
tags: ["Templates", "Collection Templates"]
---

# Instantiate Collection Template

`POST /v1/templates/collections/{template_id}/instantiate`

## Request

- Base URL: `https://api.mixpeek.com`
- URL: `https://api.mixpeek.com/v1/templates/collections/{template_id}/instantiate`
- Auth: HTTP bearer and API key in header `X-Namespace`

Instantiate collection template.

## Path parameters

- `template_id` string, required: Template ID

## Request body

- InstantiateCollectionTemplateRequest: Request to instantiate a collection from a template.
  - `collection_name` string, required: Name for the new collection
  - `bucket_ids` string[], nullable: Bucket IDs to use for the collection (for bucket sources)
  - `collection_id` string, nullable: Collection ID to use for the collection (for collection sources)
  - `description` string, nullable: Optional description override for the collection
  - `tags` string[]: Optional tags for the collection

## Response `200`

Successful Response

- InstantiatedCollectionTemplateResponse: Response after instantiating a collection template.
  - `collection_id` string, required: ID of the created collection
  - `collection_name` string, required: Name of the created collection
  - `template_id` string, required: ID of the template used
  - `status` string: Status of the instantiation
  - `created_at` string, date-time: Timestamp when collection was created

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `422`: Unprocessable Entity
- `429`: Too Many Requests
- `500`: Internal Server Error
- `503`: Service Unavailable

## Changes

- **2026-10-09** `61a175e8eb9a`: 1 warning, 5 info
  - removed the optional property `detail` from the response with the `422` status
  - added the non-success response with the status `429`
  - added the non-success response with the status `503`
  - added the optional property `success` to the response with the `422` status
  - …2 more
- **2026-10-04** `38e0822db900`: 1 breaking, 1 info
  - removed the success response with the status `201`
  - added the success response with the status `200`
- **2026-08-09** `5d4c905106b4`: 1 info
  - the endpoint scheme security `BearerAuth AND NamespaceHeader` was added to the API

[Operation history](https://skmtc.dev/mixpeek/apis/mixpeek-api/changes/v1/templates/collections/:template_id/instantiate/post.md)

---

[API](https://skmtc.dev/mixpeek/apis/mixpeek-api.md) - [All operations](https://skmtc.dev/mixpeek/apis/mixpeek-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mixpeek/apis/mixpeek-api/revisions/790bc16455f6?raw)
