Templates

Embed
Preview of the card
<a href="https://shippified.net/docs/ref-templates"><img src="https://shippified.net/docs/_api/public/orgs/5b8789b1-481a-41f5-8e5a-5f30d11f5151/spaces/ae0c5af4-cc84-4899-9078-2faf8e7a6fc5/pages/d182aff4-4470-4816-b067-b6082830e33a/social-card.svg?v=4bd9898cfc89" alt="Templates" width="600" height="315"></a>
GET https://shippified.net/api/templates

List built-in webhook + email templates.

Code samples

cURL
curl -X GET "https://shippified.net/api/templates"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
GET https://shippified.net/api/templates/custom

List your custom templates, newest first (the order they're tried in).

Code samples

cURL
curl -X GET "https://shippified.net/api/templates/custom"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 { items: CustomTemplate[] }
POST https://shippified.net/api/templates/custom

Create a custom template.

Code samples

cURL
curl -X POST "https://shippified.net/api/templates/custom"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

201 Created template.
DELETE https://shippified.net/api/templates/custom/{id}

Delete custom template.

Parameters

id
string
path
required

Code samples

cURL
curl -X DELETE "https://shippified.net/api/templates/custom/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Deleted.
PATCH https://shippified.net/api/templates/custom/{id}

Update a custom template. Partial: fields you omit keep their current values; `source` can't change.

Parameters

id
string
path
required

Code samples

cURL
curl -X PATCH "https://shippified.net/api/templates/custom/{id}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Updated template.
400 A rule or mapping regex doesn't compile.
POST https://shippified.net/api/templates/custom/preview

Preview how a template extracts from a sample payload (same engine as live intake).

Code samples

cURL
curl -X POST "https://shippified.net/api/templates/custom/preview"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Extracted values per mapping.
POST https://shippified.net/api/templates/custom/match-preview

Evaluate detection rules against a sample; pass/fail per rule.

Code samples

cURL
curl -X POST "https://shippified.net/api/templates/custom/match-preview"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 { allPassed, results[] }
POST https://shippified.net/api/templates/custom/detect

Full production parse of a sample, optionally with a draft template: which template wins and the order it would create.

Code samples

cURL
curl -X POST "https://shippified.net/api/templates/custom/detect"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 { shape, ignored, order }
Updated