WalletPassAPI Docs

API reference · Templates

Create a template

POST/v1/templatesFreeSafe to retry with Idempotency-Key

A pass design with {{placeholders}} where each pass has its own values. Make passes from it with Create a pass.

Body

The template: name and design, with a rule for any placeholder that isn't required text.

Answer

201Created

keys lists the design's placeholders in the order a pass reads.

Errors

Every error has the same shape: see Errors.

StatusCodeWhen
400validation_errorA field is wrong or unknown, a {{…}} isn't a placeholder, or a rule names one the design doesn't use. field says where, such as design.primaryFields.0.value.
422unknown_issuerNo issuer with that slug here.
409idempotency_conflictThe Idempotency-Key was already used for a different request.
409template_slug_takenThis workspace already has a template with that slug.
  • The design is checked as a pass with sample values, so a mistake is refused now, not when a pass is made from it.