---
title: "Create Pass From Template With Values Images By Name"
method: POST
path: "/v2/templates/names/{name}/pass"
tags: ["Pass Templates > Pass Generation"]
---

# Create Pass From Template With Values Images By Name

`POST /v2/templates/names/{name}/pass`

## Request

- Base URL: `https://api.loyalty.dog`
- URL: `https://api.loyalty.dog/v2/templates/names/{name}/pass`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/loyalty/apis/loyaltydog/docs/v2/templates/names/:name/pass/post.ts> (a function with typed inputs; its response is checked against the schema)

### Create Pass from Template with Values and Images by Name

Creates a pass from a template with provided values and images, identified by the template name.

**Parameters:**
- `request` (Request): The incoming request.
- `name` (str): The name of the pass template.
- `user` (User): The currently authenticated user.
- `background_tasks` (BackgroundTasks): Background tasks for asynchronous execution.

**Returns:**
- `dict`: A dictionary containing the created pass information.

## Path parameters

- `name` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/loyalty/apis/loyaltydog.md) - [All operations](https://skmtc.dev/loyalty/apis/loyaltydog/llms.txt) - [OpenAPI document](https://skmtc.dev/loyalty/apis/loyaltydog/revisions/5803242b0551?raw)
