---
title: "Create a credential template"
method: POST
path: "/v1/credential-templates"
tags: ["Credentials"]
---

# Create a credential template

`POST /v1/credential-templates`

Create an issuance template for a credential schema. You provide the schema UUID, template name, and validity duration. Use the returned template UUID when you issue credentials.

## Request body

- object
  - `schema` string, uuid, required — UUID of the schema to bind to this template.
  - `name` string, required — Human-readable template name.
  - `validity_seconds` integer — Credential validity duration, in seconds, applied during issuance.

## Response `201`

The credential template was created.

- object
  - `uuid` string, uuid — Unique identifier of the credential template.
  - `schema` string, uuid — UUID of the schema bound to this template.
  - `name` string — Human-readable template name.
  - `validity_seconds` integer — Credential validity duration, in seconds, applied during issuance.
  - `created_at` string, date-time — Timestamp when the template was created.

---

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