---
title: "Create a template"
method: POST
path: "/templates"
tags: ["Templates"]
---

# Create a template

`POST /templates`

Create a new template

Scoped OAuth requires: `templates.write`

## Request body

- object
  - `template` EditableTemplate, required
    - `template_type` 'status_update' — The type of template (`status_update` is the only supported template at this time)
    - `name` string — The name of the template
    - `description` string, nullable — Description of the template
    - `templated_fields` object
      - `email_subject` string, nullable — The subject of the e-mail
      - `email_body` string, nullable — The HTML body of the e-mail message
      - `message` string, nullable — The short-message of the template (SMS, Push notification, Slack, etc)

## Response `201`

Template successfully created

- object
  - `template` Template, required — unresolved $ref

## Other responses

- `400` — Caller provided invalid arguments. Please review the response for error details. Retrying with the same arguments will *not* work.
- `402` — Account does not have the abilities to perform the action. Please review the response for the required abilities. You can also use the [Abilities API](#resource_Abilities) to determine what features are available to your account.
- `403` — Caller is not authorized to view the requested resource. While your authentication is valid, the authenticated user or token does not have permission to perform this action.
- `500` — Internal Server Error the PagerDuty server experienced an error.

---

[API](https://skmtc.dev/pagerduty/apis/rest-api.md) · [All operations](https://skmtc.dev/pagerduty/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pagerduty/rest-api/revisions/b679a8f3f02c/schema)
